Test 01 - Load Outcome
Purpose
Load outcome/register data into the working repository. This prepares the repository structure and signals needed by later tests (samples generation, model fitting and evaluation).
Required Inputs
From configs/env.sh and the test invocation environment:
WORK_DIR: Working folder where the repository and outputs will be writtenFIRST_WORK_DIR: Path to the reference / silent run (used for copying inputs when running the silent/external run)OUTCOME_INPUT_FILES_PATH: Path(s) or pattern to the raw outcome input files thatload_outcomes.pyexpects
How to Run
From your TestKit folder, execute:
Or include as part of the full suite:
Check ${WORK_DIR}/rep and ${WORK_DIR}/ETL for the loaded repository and ETL artifacts.
What This Test Does
- Runs the Python ETL loader to parse and import the provided outcome files.
- If the repository hasn't been marked as loaded (no
${WORK_DIR}/rep/loading_done), or whenOVERRIDE> 0, it makes${WORK_DIR}/ETL/rep_configs/load_with_flow.shexecutable and runs it to build the repository files. - Writes a simple marker file
${WORK_DIR}/rep/loading_doneto indicate successful load.
Output Location
- Repository:
${WORK_DIR}/rep(look for a*.repositorydirectory) - ETL and temporary files:
${WORK_DIR}/ETL,${WORK_DIR}/tmp - Load marker:
${WORK_DIR}/rep/loading_done
How to Interpret Results
- Verify
${WORK_DIR}/repcontains the expected*.repositorydirectory and related data files. - Check
${WORK_DIR}/rep/loading_doneexists after a successful run. - Inspect the stdout/stderr and any logs printed by
load_outcomes.pyandload_with_flow.shfor errors.
Make sure the ETL was done correction, same as in Test 01 - Generate Repository
Common failure modes and suggestions
- Missing input files or incorrect
OUTCOME_INPUT_FILES_PATH:- Ensure input files exist and are in the format expected by
load_outcomes.py.
- Ensure input files exist and are in the format expected by
- Missing helper scripts or broken ETL config in
${FIRST_WORK_DIR}/ETL:- Confirm the ETL folder contains
rep_configs/load_with_flow.shand helper modules used by the Python loader.
- Confirm the ETL folder contains
- Python environment/package errors when running
load_outcomes.py:- Ensure the required Python packages are installed in the environment.
Test Results Review
Primary files to inspect after running this test:
${WORK_DIR}/ETL(copied ETL configs and scripts)