|
4 | 4 |
|
5 | 5 | Test suite structure and test case documentation. |
6 | 6 |
|
7 | | -## `integration/test_feedback.py` |
| 7 | +## `integration/conftest.py` |
| 8 | +Shared fixtures and helpers for staged integration tests. |
| 9 | + |
| 10 | +**Functions:** |
| 11 | +- `repo_root() -> Path` - Return repository root path. |
| 12 | +- `run_id() -> str` - Return deterministic run identifier for staged artifacts. |
| 13 | +- `artifact_root(repo_root: Path, run_id: str) -> Path` - Return base path for staged integration artifacts. |
| 14 | +- `configure_integration_environment(repo_root: Path) -> None` - Set environment variables needed by the integration suite. |
| 15 | +- `cleanup_spark_session() -> None` - Stop Spark session after tests complete. |
| 16 | +- `seed_path(artifact_root: Path, dataset_kind: str) -> Path` - Return seed directory path for a dataset kind. |
| 17 | +- `model_run_path(artifact_root: Path, model_type: str) -> Path` - Return model-specific run directory path. |
| 18 | +- `checkpoint_file(work_dir: Path, phase_name: str) -> Path` - Return path to a checkpoint file. |
| 19 | +- `copy_seed_to_model_run(seed_dir: Path, model_dir: Path) -> None` - Copy a seed workdir into a model run workdir and rewrite checkpoint paths. |
| 20 | +- `assert_stage_prereqs(stage: str, artifact_root: Path) -> None` - Assert required artifacts from prior stages exist. |
| 21 | +- `build_seed_workflow(work_dir: Path, dataset_input: Path, intent: str, experiment_id: str) -> Any` - Run stages 1-3 and pause after baseline creation. |
| 22 | +- `resume_workflow(work_dir: Path, allowed_model_types: list[str], pause_points: list[str] | None, enable_final_evaluation: bool, max_iterations: int) -> Any` - Resume a staged integration workflow from existing checkpoints. |
| 23 | +- `load_predictor_class(model_dir: Path, model_type: str) -> type` - Load predictor class from packaged model/predictor.py. |
| 24 | +- `load_prediction_input(repo_root: Path, dataset_kind: str, n_rows: int) -> pd.DataFrame` - Load a small feature sample used for predictor checks. |
| 25 | + |
| 26 | +--- |
| 27 | +## `integration/test_stage1_seed.py` |
| 28 | +Stage 1 integration tests: build reusable checkpoints through phase 3. |
| 29 | + |
| 30 | +**Functions:** |
| 31 | +- `test_build_seed_checkpoint(dataset_kind: str, artifact_root, repo_root) -> None` - Build a seed run and pause after baseline creation. |
| 32 | + |
| 33 | +--- |
| 34 | +## `integration/test_stage2_search.py` |
| 35 | +Stage 2 integration tests: resume from seeds and pause after phase 4. |
| 36 | + |
| 37 | +**Functions:** |
| 38 | +- `test_resume_from_seed_and_run_search_only(model_type: str, artifact_root) -> None` - Copy a seed, resume from checkpoints, and pause after search models. |
| 39 | + |
| 40 | +--- |
| 41 | +## `integration/test_stage3_eval_predict.py` |
| 42 | +Stage 3 integration tests: run evaluation/packaging and validate predictors. |
| 43 | + |
| 44 | +**Functions:** |
| 45 | +- `test_resume_and_run_eval_then_predict(model_type: str, artifact_root, repo_root) -> None` - Resume from stage 2 checkpoints, run to completion, and validate predictor inference. |
| 46 | + |
| 47 | +--- |
| 48 | +## `unit/agents/test_feedback.py` |
8 | 49 | Tests for user feedback integration in agents. |
9 | 50 |
|
10 | 51 | **`TestFeedbackFormatting`** - Test the format_user_feedback_for_prompt helper function. |
|
0 commit comments