Repository navigation
ci(flake-hunt): offer every pass of the contract matrix - #216
Merged
Merged
Conversation
flake-hunt.yml could not repeat the csrfoff, mail, oracle or e2e cells: its pass list was written by hand and the oracle and e2e passes need tools (uv; Node, the built app and Chromium) that only contract-cell.yml installed. - The pass choice lists every pass of scripts/contract-all.sh, and test-check-flake-hunt-cell.sh holds both choice lists equal to the matrix, with controls for a pass lost, a pass gained, a target lost, and a matrix that gains a pass. - .github/scripts/check-flake-hunt-cell.sh replaces the inline input check and runs before anything is built: a target and pass are accepted only when they are a cell of contract-all.sh (read the way plan-cells.sh reads it), and the error names the passes the target does run. The iteration count is 1 to 50 as before. - The pass-specific setup and the host-tool preflight move out of contract-cell.yml into .github/actions/contract-pass-tools, which both workflows use. plan-ci.py treats the action as part of the cells' harness (runs everything). Test: 128 cases, generated over every target x every pass contract.sh knows; 13 hand mutants of the check script all killed (one equivalent mutant led to removing a redundant lower-bound test). Refs: #49 Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts: # .github/scripts/tests/test_plan_ci.py
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.
The last open item from the CI/CD review:
flake-hunt.ymlcould not repeat thecsrfoff,oracleore2ecells (and, it turned out,maileither).What changes
passchoice now lists every pass ofscripts/contract-all.sh.test-check-flake-hunt-cell.shholds both choice lists (targets and passes) equal to the matrix, so a pass added to the matrix and not to the workflow failsci-scripts..github/scripts/check-flake-hunt-cell.shreplaces the inline check. It accepts a target and pass only when they are a cell ofcontract-all.sh, read the same wayplan-cells.shreads it. It refuses anything else and names the passes that target does run, e.g.worker-cf runs: main sweeper panic cron mail worker bindings oracle e2e. Iterations are 1 to 50, as before.contract-cell.ymlinto.github/actions/contract-pass-tools, which both workflows use.plan-ci.pytreats the new action likesetup-rust, so changing it runs everything. Because this PR changescontract-cell.yml, its own CI runs all 25 cells through the moved steps, oracle and e2e included.Evidence
contract.shknows, plus iteration counts, usage errors, a matrix that gains or drops a pass, and drift controls. Run under dash.-lt 1test could never fail, so it was removed.ci-scriptsanddepsjobs passes (40/40), includinglint-all-workflows.shandactionlint.Limit, documented rather than coded
The job stops at 120 minutes. A
worker-cf e2eiteration takes about 9 minutes (nightly run 43798891735), so an e2e hunt fits about 12 iterations.cicd.mdsays so.🤖 Generated with Claude Code