Repository navigation
ci: evidence-refresh det sweep proves cases, and fails loudly when it doesn't (#4270) - #4641
Merged
Merged
Conversation
…s loudly on a failed sweep (#4270) Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
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.
Part of #4270.
Root cause
evidence-refresh.ymlinstalled GitGalaxy withpip install -e ./gitgalaxy, without thetranslatorextra. The det translator parses COBOL withtree-sitter-language-pack(gitgalaxy/tools/cobol_to_java/det/source.pyraises "needs tree-sitter-language-pack: pip install gitgalaxy[translator]"). CI'sdet-sweep.ymlinstalls-e "./gitgalaxy[translator]"and proves 37/40. In run 37661913700 every case failed to translate, so the sweep printeddet: 0/40 proven(allNOT PROVEN, no coverage line). The harness swallows the per-case traceback, so the run log shows no error text; the cause rests on the install-step diff against det-sweep.yml, and the fix is confirmed by the verification run below.It stayed silent because the sweep ran with
--no-ratchet(exit 0), the step iscontinue-on-error, and the ledger step ranif: always(). The ledger rewrite then ran on an all-failed sweep, rewrote nothing, and the job went green.Fix
[translator]extra, as det-sweep.yml does.--no-ratchetfrom the sweep. It now applies the det_sweep_baseline ratchet and exits 1 when a case stops proving, or a baselined one starts proving. The existing "Fail when a re-proof failed" step then fails the job.steps.ledger_sweep.outcome == 'success'), so it never rewrites from a sweep that failed the ratchet. (--aggregatewas not used: it also checks the ledger itself, which is stale before the rewrite.)Verification
Dispatched on this branch: https://github.com/squid-protocol/gitgalaxy/actions/runs/37665076537 (success).
det: 37/40 proven,sweep: as expected(the 3 not proven are the baselined ones: carddemo-cardupdate, carddemo-intcalc-generated, mortgage-mpmt). The ledger step rewrotedet_sweep_coverage.json. That run opened the bot PR #4640 against main fromauto/evidence-refresh; it is left for the owner.🤖 Generated with Claude Code