Repository navigation
det sweep: shared files prove only the cases they can move (Fixes #5885) - #5886
Merged
Merged
Conversation
26 of 30 sampled PR full sweeps came from the planner's catch-all
('X is not inside one existing case directory'). Now:
- det_mutation/ and det_mutation_survivors/ are no det input (no det
proof tool reads them);
- det_sweep_baseline.json and infeasible_outcomes.json prove the cases
whose entries changed between the merge base and HEAD (a changed
family text: the cases citing it); any other change is still full;
- corpora.json proves the cases on corpora whose pin changed;
- a harness / oracle file proves the cases using its component, by the
map the evidence records are fingerprinted with (evidence.COMPONENTS,
#4731); <input>:core or a component every case uses stays full;
- cics_task_filecontrol.py joins GENERATOR (#5448 split it out of the
transaction forge like cics_task_containers.py) with a test that
every cics_task_* module the forge imports is listed.
The nightly full sweep stays the backstop.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Owner
Author
|
No description provided. |
Owner
Author
|
No description provided. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #5885.
Problem: 26 of 30 sampled PR full sweeps came from the planner's catch-all rule ("X is not inside one existing case directory"), not from a translator or core-harness change. A full sweep adds roughly 280 runner-min to a PR, and Det Sweep is about 40% of runner time.
What changes (
tests/tools/det_sweep_plan.py):det_mutation/anddet_mutation_survivors/are no longer det inputs. No det proof tool reads them; onlydet_mutation.pyandevidence_report.pydo.KEYED):det_sweep_baseline.jsonandinfeasible_outcomes.jsonre-prove only the cases whose entries differ between the merge base and HEAD. A changed infeasible-outcome family text re-proves the cases that cite that family.infeasible_outcomes.checkalready validates the whole file's form on every det run.corpora.jsonchange re-proves the cases on corpora whose pin changed.evidence.COMPONENTS, evidence: finer-grained fingerprints — a case goes stale only when the harness/runtime parts it uses change #4731). Examples:db2/**andequivalence_db2.py→ Db2 cases;ims/ggdli.candequivalence_ims.py→ IMS cases;cics/**→ online cases.<input>:core(e.g.equivalence.py), or a component every case uses (the LE models), is still a full sweep.cics_task_filecontrol.pyjoinsGENERATOR. Split the CICS file-control family out of the forge and the stub (Part of #5274) #5448 split it out of the transaction forge likecics_task_containers.pybut left it off the list, so it never got the port diff. A new test fails if anothercics_task_*split is missed.Safety net: unchanged. The nightly Det Sweep on main is still a full sweep, and Evidence Refresh still runs the Db2 cases, so a missed narrowing is caught within a day. This is the same model the port-diff narrowing (#4814) relies on.
Replay on the 30 real full-sweep diffs (merge base...head, via the API):
infeasible_outcomes.json)det_mutation)equivalence.py,equivalence_inputs.py,det_port.py, guardrail, workflow)Checks:
test_det_sweep_fast.py: 73 passed, with new tests for each rule and its full fallback;test_shepherd_gh.pyalso passes.ruff_audit --ci: no new findings.mypy_audit --ci: no new errors.🤖 Generated with Claude Code