Repository navigation
Conversation
Signed-off-by: Paul Otto <219596+potto007@users.noreply.github.com> Github-Issue: #246
Signed-off-by: Paul Otto <219596+potto007@users.noreply.github.com> Github-Issue: #246
Signed-off-by: Paul Otto <219596+potto007@users.noreply.github.com> Github-Issue: #246
Signed-off-by: Paul Otto <219596+potto007@users.noreply.github.com> Github-Issue: #246
Signed-off-by: Paul Otto <219596+potto007@users.noreply.github.com> Github-Issue: #246
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the
Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
Summary
This adds an advisory mutation check on pull requests, which runs cargo-mutants over the lines a PR changes in the workflow-layer files and grades each mutant with the
pr_chaostests, the same setup the nightly run uses. It lives in its own workflow, so it never feeds the requiredcheckjob inci.yml, and a surviving mutant leaves it green.The tool and action pins match
chaos-nightly.yml: cargo-mutants 27.1.0, cargo-nextest 0.9.151, and the same SHAs for rust-toolchain, rust-cache and install-action. The scope and the grading come from.cargo/mutants.tomland[profile.mutants], so the PR check and the nightly run cannot drift apart on which files they mutate. I pinned the diff prefixes because cargo-mutants found no mutants in a diff written with git's mnemonici/andw/prefixes, which adiff.mnemonicPrefixsetting turns on.docs/src/contributing.mdgets a "Diff mutation check" section next to "Nightly chaos".Refs #246
Evidence
src/wf.rsgets no mutation feedback until the nightly run, which grades all 2,183 mutants across 8 shards and took 4 hours on its slowest one.After: throwaway draft test: exercise the diff mutation check (throwaway, do not merge) #332 rewrote
relaysinsrc/wf.rswith no change in behavior, and mutants-diff graded the 7 mutants in that change in 7 minutes on a cold cache, with 6 caught and 1 missed:src/wf.rs:298:9: delete match arm "blocker" in relays. The job finished green with the missed mutant listed in its summary, https://github.com/OttoOps/t3-codemode/actions/runs/45641439082, so a survivor does not block the merge. I closed test: exercise the diff mutation check (throwaway, do not merge) #332 unmerged.checkjob does not wait on mutants-diff, andci.ymlis unchanged, so Tier 1 time on a PR with no workflow-layer change stays where it was. On test: exercise the diff mutation check (throwaway, do not merge) #332 thecirun finished at 15:13 UTC, and mutants-diff kept grading until 15:14. On this PR, which touches only.github/anddocs/, mutants-diff starts because its own files changed and stops at the scope step in 6 seconds, before the toolchain installs, in https://github.com/OttoOps/t3-codemode/actions/runs/45641836930..github/scripts/*.share clean,cargo fmt --checkandcargo clippy --all-targets -- -D warningsare clean, andcargo test --lockedpasses.mutants-summary.shin diff mode prints the zero table and "The changed lines hold no mutants." for an empty outcomes folder, and a missing folder still exits 1 in both modes.cargo mutants --in-diffwith the pinned prefixes lists 7 mutants for therelaysrewrite. With git'si/andw/prefixes it lists none.Merge Danger
Door: two-way
Deleting
mutants-diff.ymland the scope script undoes it, and the summary script's nightly mode is unchanged.Blast Radius: CI-minutes
A PR that rewrites a lot of
src/board.rscan produce hundreds of mutants at about 5 seconds each, on one runner with a 120-minute timeout. Expect many survivors there, because the chaos tests do not reach the board's rendering code. A new push to the PR cancels the run in progress.Compatibility
None. The execute globals, the wf protocol, the board API, the config format and the service install are unchanged.
Publication checks
This PR adds no secrets or tokens, no personal data or private repository names, and no machine-specific absolute paths. The workflow needs no secrets and runs with
contents: read, so it behaves the same on pull requests from forks.Contribution provenance
Paul Otto authored the change with Claude Code and signed off each commit himself. It adds no third-party sources beyond the pinned GitHub Actions and cargo tools the nightly workflow already uses.