Skip to content

ci(flake-hunt): offer every pass of the contract matrix - #216

Merged
aRustyDev merged 2 commits into
mainfrom
ci/flake-hunt-passes
Nov 16, 2026
Merged

aRustyDev merged 2 commits into
mainfrom
ci/flake-hunt-passes

Conversation

@aRustyDev

Copy link
Copy Markdown
Owner

The last open item from the CI/CD review: flake-hunt.yml could not repeat the csrfoff, oracle or e2e cells (and, it turned out, mail either).

What changes

  • Every pass of the matrix is offered. The pass choice now lists every pass of scripts/contract-all.sh. test-check-flake-hunt-cell.sh holds both choice lists (targets and passes) equal to the matrix, so a pass added to the matrix and not to the workflow fails ci-scripts.
  • Pairings are checked against the matrix, before the build. .github/scripts/check-flake-hunt-cell.sh replaces the inline check. It accepts a target and pass only when they are a cell of contract-all.sh, read the same way plan-cells.sh reads 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.
  • One place prepares a pass. uv (oracle), Node + the built app + Chromium (e2e) and the host-tool preflight move from contract-cell.yml into .github/actions/contract-pass-tools, which both workflows use. plan-ci.py treats the new action like setup-rust, so changing it runs everything. Because this PR changes contract-cell.yml, its own CI runs all 25 cells through the moved steps, oracle and e2e included.

Evidence

  • The new test has 128 cases, generated over every target × every pass contract.sh knows, plus iteration counts, usage errors, a matrix that gains or drops a pass, and drift controls. Run under dash.
  • All 13 hand mutants of the check script are killed. A 14th turned out to be equivalent: the -lt 1 test could never fail, so it was removed.
  • Locally, every command of the ci-scripts and deps jobs passes (40/40), including lint-all-workflows.sh and actionlint.

Limit, documented rather than coded

The job stops at 120 minutes. A worker-cf e2e iteration takes about 9 minutes (nightly run 43798891735), so an e2e hunt fits about 12 iterations. cicd.md says so.

🤖 Generated with Claude Code

aRustyDev and others added 2 commits November 16, 2026 01:02
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
@aRustyDev
aRustyDev merged commit a2221cc into main Nov 16, 2026
70 of 72 checks passed
@aRustyDev
aRustyDev deleted the ci/flake-hunt-passes branch November 16, 2026 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant