Repository navigation
refactor(core): remove dead validation_families, audit sync/async (#805) - #933
Conversation
…ON_FAMILY enum (#805) - Remove ScenarioProjectionSourceKind.VALIDATION_FAMILY enum value dead since validation lane DSL collapse in #901. - Remove validation_families field from AuthoredScenarioCatalog, QualityRegistry, and validation_catalog.py. The field always returned () after #901 flattened the ValidationLaneFamily DSL. - Remove _render_validation_family_table and "Validation Families" section from render_quality_reference.py. - Delete tests/unit/devtools/test_validation_family_models.py tested the deleted devtools.validation_family_models module. - Fix #805 regression: propagate execution metadata (path_targets, artifact_targets, operation_targets) into LaneEntry fields during _build_lane_entry. Previously fields defaulted to () and execution metadata was lost after DSL collapse removed ExecutableScenario inheritance chain. - Update tests for removed types. - Document 10 intentional sync/async divergences between SQLiteArchiveMixin and SQLiteQueryStoreArchiveMixin in async_sqlite_archive.py module docstring. Co-Authored-By: Claude Opus 4.7 <[email protected]>
|
Warning Rate limit exceeded
To continue reviewing without waiting, purchase usage credits in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (8)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
This PR removes the (now-unused) “validation family” abstraction from the devtools quality/validation catalogs and updates projections + documentation rendering to treat composites as ordinary validation lanes.
Changes:
- Deleted the old validation-family tests and removed validation-family handling from quality registry + quality reference rendering.
- Updated scenario projections to drop the
validation-familysource kind and instead project the relevant composite validation lane (with optionalfamily=metadata). - Improved validation lane metadata aggregation by merging execution-derived targets into compiled lane entries.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| tests/unit/devtools/test_validation_family_models.py | Removes tests for the deleted validation-family DSL/models. |
| tests/unit/devtools/test_render_quality_reference.py | Updates fixtures/assertions to use validation lanes instead of families in the rendered reference. |
| tests/unit/devtools/test_quality_registry.py | Removes assertions that depended on validation-family registry surfaces/projections. |
| polylogue/scenarios/projections.py | Removes VALIDATION_FAMILY from ScenarioProjectionSourceKind. |
| devtools/validation_catalog.py | Drops build_validation_family_entries and merges execution metadata targets into lane entries. |
| devtools/render_quality_reference.py | Removes the “Validation Families” section and related snapshot counters. |
| devtools/quality_registry.py | Removes the validation_families property. |
| devtools/authored_scenario_catalog.py | Removes validation_families from the authored scenario catalog and construction. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| @@ -13,7 +13,6 @@ | |||
|
|
|||
| class ScenarioProjectionSourceKind(str, Enum): | |||
| EXERCISE = "exercise" | |||
Structural simplification slice for #805. The validation-family DSL had become parallel scaffolding with no remaining live consumers, and several sync/async helper pairs had drifted into near-duplicates documented as such only in code review. - Deletes the dead `validation_families` test plus its supporting catalog and projection wiring (`devtools/render_quality_reference.py`, `polylogue/scenarios/projections.py`, `tests/unit/devtools/*`). - Documents the remaining sync/async divergences inline at the call sites instead of through a synthetic abstraction layer. - Net effect: 1 insert, 120 deletions across 5 files, with no behavior change in the affected validation lanes. Refs #805
Structural simplification slice for #805. The validation-family DSL had become parallel scaffolding with no remaining live consumers, and several sync/async helper pairs had drifted into near-duplicates documented as such only in code review. - Deletes the dead `validation_families` test plus its supporting catalog and projection wiring (`devtools/render_quality_reference.py`, `polylogue/scenarios/projections.py`, `tests/unit/devtools/*`). - Documents the remaining sync/async divergences inline at the call sites instead of through a synthetic abstraction layer. - Net effect: 1 insert, 120 deletions across 5 files, with no behavior change in the affected validation lanes. Refs #805
Removed dead code, consolidated types, documented sync/async divergences. 8 files +35/-167.