Repository navigation
fix(tests): clear inherited proof-law staleness blocking PR wave - #1090
Conversation
Six pre-existing test failures on master were blocking every newly opened PR. All trace to incomplete cleanup after earlier work: 1. test_benchmark_campaign / test_scenario_projections: BENCHMARK scenario catalog grew to include reader-api and daemon-convergence but tests still asserted the old 3-element set and the new operation_targets had no declared OperationSpec. Added benchmark.reader.api and benchmark.daemon.convergence specs and updated the test set. 2. test_every_command_has_help_claim and test_every_json_command_has_envelope_claim: asserted the existence of cli.command.help, cli.command.no_traceback, cli.command.plain_mode, and cli.command.json_envelope proof claims. Those were retired in PRs #1069 / #594 because the intent is now pinned by pytest contract evidence tests (test_json_envelope_contract, test_plain_output_contract, test_help_contract, test_cli_error_boundaries). Both stale law files removed. 3. test_every_subject_of_a_fully_bound_kind_is_selected[cli.command]: parametrize fixture asserts no claim selects any cli.command subject because the claims above are retired. Removed cli.command and cli.json_command from _FULLY_BOUND_KINDS — pytest contract suites cover the CLI surface directly. Verification: pytest --ignore=tests/integration,benchmarks,fuzz → 6841 passed, 2 xfailed, 0 failed (was 6 failed). Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more 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 (7)
✨ 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 |
Summary
Six pre-existing test failures on master were blocking every newly opened PR in the #1058 wave (#1081, #1086, #1087, #1088, #1089). All trace to incomplete cleanup after earlier proof-runner retirement work.
Problem
pytest --ignore=tests/integration,benchmarks,fuzzonorigin/master@fc3c43f3exits with 6 failures:tests/unit/devtools/test_benchmark_campaign.py::test_compile_benchmark_campaigns_indexes_by_nametests/unit/devtools/test_benchmark_campaign.py::test_benchmark_scenario_index_tracks_authored_catalogtests/unit/devtools/test_scenario_projections.py::test_all_projection_operation_targets_are_declaredtests/proof/laws/completeness/test_every_command_has_help_claim.py::*tests/proof/laws/completeness/test_every_json_command_has_envelope_claim.py::*tests/proof/laws/anti_dead_code/test_every_subject_has_at_least_one_claim.py::test_every_subject_of_a_fully_bound_kind_is_selected[cli.command]Multiple parallel agents inherited and flagged these failures; they cannot be cleared at PR scope because each PR is supposed to follow the "no inherited debt" rule.
Solution
Benchmark catalog drift —
BENCHMARK_SCENARIOSgrew to includereader-apianddaemon-convergence(real entries with pytest paths). Two tests still asserted the old 3-element set, and the newoperation_targets(benchmark.reader.api,benchmark.daemon.convergence) had no declaredOperationSpec. Added the two missingOperationSpecrows inpolylogue/operations/specs.pyand updated the test assertions.Stale proof-law tests —
tests/proof/laws/completeness/test_every_command_has_help_claim.pyandtest_every_json_command_has_envelope_claim.pyasserted the existence ofcli.command.{help,no_traceback,plain_mode,json_envelope}proof claims. Those were intentionally retired in PRs refactor(proof): retire CLI proof runners covered by pytest (#594) #1069/refactor(verification): replace proof reports with standard evidence #594 (proof-runner cleanup) because the intent is now pinned by pytest contract evidence tests undertests/unit/cli/(test_json_envelope_contract.py,test_plain_output_contract.py,test_help_contract.py,test_cli_error_boundaries.py). The law tests are stale debt — both files deleted.`_FULLY_BOUND_KINDS` parametrize drift — same retirement removed all claims selecting
cli.command/cli.json_commandsubjects. Removed both kinds from_FULLY_BOUND_KINDSintest_every_subject_has_at_least_one_claim.py— the CLI contract suites cover the surface directly now.Generated docs —
docs/test-quality-workflows.mdanddocs/verification-catalog.mdregen as part of the new OperationSpec rows.Verification
Ref #1058 #594 #1069