Repository navigation
Description
Background
Most work towards the stable Stack Encrypt Rust release goes into the next branch, through pull requests. A pull request into next runs several CI workflows. Two of them are slow:
- The mutants gate (
.github/workflows/mutants.yml). The gate changes small pieces of the code the pull request touched, and checks that a test fails each time. The gate's check is named "Mutants gate". - The Go SDK's Windows job (
go-binding-crossin.github/workflows/tests-golang.yml). The job runs the Go tests on Windows, beside the same job on macOS.
To make pull requests into next cheaper while the milestone is in progress, both are turned off for those pull requests for a while. The pull request that does this links to this issue.
Problem
While both are off, nothing checks these two things on a pull request into next:
- Untested lines. A change can add a line that no test checks, and nothing reports it.
- Windows. A change can break the Go SDK on Windows, and nothing reports it until a run on
main.
Both will be found later, when they are harder to trace back to the change that caused them.
Proposal
Before the stable release:
- Turn the mutants gate back on for every pull request: restore the condition given in the comment on the job's
if:in.github/workflows/mutants.yml. For now the gate runs only on a pull request intomain. - Run the Windows job on every pull request again: remove the condition marked with this issue's number in
.github/workflows/tests-golang.yml. - Run the mutants gate over everything that changed while it was off. Dispatch
mutants.ymlby hand onnext. A dispatched run tests each crate whole. Fix each mutant that survives by adding a test. - Dispatch
tests-golang.ymlonnextand fix anything that fails on Windows. - Remove the notes that point at this issue: in
mutants.yml(the header, theon:comment, the job'sif:comment), intests-golang.yml(the header and the OS list), in.cargo/mutants.toml, in themutants:stack-authexemption inscripts/__tests__/crates-ci.test.mjs, and inAGENTS.md("Mutation testing" and the CI bullet).
Step 3 must finish before the release pull request (next into main). The restored condition skips the mutants gate on that pull request, which is safe only once every line in it has been tested.
Activity
coderdan commentedon Nov 28, 2026
#2018 turns these two jobs off. The conditions to restore are marked with this issue's number in
.github/workflows/mutants.ymland.github/workflows/tests-golang.yml.ci: say what must run before the mutants gate's release skip is safe