fix(curation,dataset): query check_runs_latest in coverage and dataset SQL - #678
Conversation
|
kstonekuan
left a comment
There was a problem hiding this comment.
Thanks, the change is right. Please add the two regression tests from #676 so this can't quietly regress: a check passes, then errors on a replay, and the episode drops out of default_dataset_sql's result and out of coverage. test_a_step_that_errored_on_its_latest_run_is_planned_for_retry in tests/test_stage_planning.py shows how to set up the pass-then-error sequence.
|
@kstonekuan, I added both requested pass-then-error regression tests in 06bf4bc. They verify that a noncritical check's replay error removes the episode from the default dataset and withdraws its coverage while retaining the coverage denominator. Both tests fail with the original queries and pass with the fix; the policy documentation is updated too. Validation: 2,506 tests passed, 8 skipped; lint, formatting, type checks, and Markdown links passed. Please review the updated PR when you have a chance. |
kstonekuan
left a comment
There was a problem hiding this comment.
LGTM, thanks for the tests and the doc updates. Merging.
Fixes #676.
Datasets and coverage now read the latest check result from
check_runs_latest, so a noncritical check that passes and then errors on replay withdraws the episode from the default dataset and withdraws its coverage. Adds separate regression tests for dataset selection and coverage, and updates the catalog guide and dataset policy docstring.Validation in an isolated Ubuntu WSL checkout with Python 3.12.3, the locked development environment, pinned FFmpeg, and Python development headers:
.venv/bin/python -m pytest -q tests/test_dataset.py tests/test_catalog_curation.py tests/test_stage_planning.py— 235 passed.uv run --locked --no-sync pytest -q -n 4 --tb=short— 2,506 passed, 8 skipped..venv/bin/ruff check,.venv/bin/ruff format --check,.venv/bin/ty check, andgit diff --check— passed.check_runsqueries are temporarily restored, and pass with the fix.