Skip to content

Turn the mutants gate and the Go Windows job back on for pull requests into next #2017

Backlog

Description

@coderdan

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-cross in .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:

  1. Untested lines. A change can add a line that no test checks, and nothing reports it.
  2. 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:

  1. 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 into main.
  2. Run the Windows job on every pull request again: remove the condition marked with this issue's number in .github/workflows/tests-golang.yml.
  3. Run the mutants gate over everything that changed while it was off. Dispatch mutants.yml by hand on next. A dispatched run tests each crate whole. Fix each mutant that survives by adding a test.
  4. Dispatch tests-golang.yml on next and fix anything that fails on Windows.
  5. Remove the notes that point at this issue: in mutants.yml (the header, the on: comment, the job's if: comment), in tests-golang.yml (the header and the OS list), in .cargo/mutants.toml, in the mutants:stack-auth exemption in scripts/__tests__/crates-ci.test.mjs, and in AGENTS.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

  1. added
    github-actions
    on Nov 28, 2026
  2. coderdan commented on Nov 28, 2026

    @coderdan
    ContributorAuthor

    #2018 turns these two jobs off. The conditions to restore are marked with this issue's number in .github/workflows/mutants.yml and .github/workflows/tests-golang.yml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    SDKgithub-actions

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions