ci: repin the toolchain action and cover what the mutants run then found

Merged
KI
21d ago
+102-12

Problem

Two CI failures that block each other:

  1. The workflows check fails on every new commit, first seen on #108 (job). zizmor's impostor-commit audit reports all eight uses of dtolnay/rust-toolchain@b725eda525362e7cf34af9a7243cac1e3f01a7ec # stable: "commit with no history in referenced repository".
  2. Repinning touches mutants.yml, so the mutants workflow runs, for the first time since #102 to #106. It found mutants of one guard in read_frame that nothing catches: one on macOS (job) and three on Linux (job).

Fixing either alone leaves the other red, so this PR carries both, and the test from #110, which it supersedes.

Root cause

  1. dtolnay/rust-toolchain rebuilds its stable branch as one "toolchain: stable" commit on top of master whenever master moves. master moved on 2026-11-15 (dtolnay/rust-toolchain#190), so stable now points at 39008827e6b4, and b725eda5 is not reachable from any branch. Nothing in this repository changed.
  2. When the descriptors a message carries do not fit, macOS fails recvmsg with EMFILE or EMSGSIZE. read_frame turns that into a malformed-frame error for the broker, which refuses descriptors (Descriptors::Refuse), and passes the OS error on for a client. #102 tested the broker side only, so on macOS a guard of true went unnoticed; with it, a client whose own table is full would blame the broker. Linux never fails recvmsg this way (it sets MSG_CTRUNC, checked after the call), so on Linux the arm is unreachable and all three mutants of its guard are equivalent.

Change

  • All eight pins (ci.yml, fuzz.yml, mutants.yml, release.yml) move to 39008827e6b4319a349e9a42dfc90579dd25f1ca, the head of stable, keeping the # stable comment.
  • A test in broker_attached_descriptors.rs (from #110): a fake broker queues an open response carrying a descriptor while the client's table is full. On macOS the error must name EMFILE and not "could be received"; on Linux it is the truncation error. Either way the next request fails closed.
  • .github/mutants/missed-linux.txt lists the three Linux mutants with that reason. The macOS list is unchanged.

Safety and compatibility

The action does not change. Comparing the two commits' trees blob by blob, every file is identical except the action repository's own .github/workflows/ci.yml, where #190 deleted a Windows test. action.yml is byte-identical. The new commit's parent is the current master head, and GitHub shows it signed and verified, authored by David Tolnay, as the old one was. This will recur whenever the action's master moves; each recurrence needs the same repin.

No library or binary code changes.

Verification

  • uvx zizmor==1.32.0 .github/workflows (the version CI runs, with a GitHub token): "No findings to report" (31 suppressed). uvx --from actionlint-py==1.7.12.25 actionlint: exit 0.
  • The new test passes on macOS. With the guard replaced by true by hand, it fails: broker connection lost (peer attached more descriptors than could be received); all filesystem operations fail closed.
  • Replaying the workflow's comparison against the failed runs' misses: the Linux misses now equal missed-linux.txt, and the macOS misses equal missed-macos.txt once the guard mutant is caught.
  • cargo test --locked: 136 passed. cargo fmt --all --check and cargo clippy --locked --all-targets -- -D warnings clean, on macOS; clippy also for x86_64-unknown-linux-gnu, and cargo +1.85.0 check --locked --all-targets passed on the test branch.

Not verified locally: the test's Linux branch and the mutants runs themselves; this PR's CI runs both.

Documentation and release

None needed.