ADR-0035: The reusable workflow runs on the runner its caller names, and takes the map another job made
Status: Accepted Date: 2026-10-20
Context
ADR-0011 gives the reusable workflow the action's inputs less
shard. Each of its jobs ran on ubuntu-latest, written into the workflow.
A project could not run the gate on an Arm runner, a larger runner, or its own
runners, without copying the workflow.
GitHub picks a job's runner from the job's runs-on, before any step runs.
runs-on takes a label or a list of labels, and an expression in it can read
the called workflow's inputs.
A proof key holds the architecture the runner's PHP reports (ADR-0007), so the plan, the shards, the survivors job and the verdict judge alike only on one kind of machine.
ADR-0006 lets the job that runs the suite under coverage hand the
plan its map. The workflow takes that map as an artifact of the run, which it
names in an input of its own, coverage.
Decision
- The reusable workflow takes two inputs of its own besides the action's
less
shard:coverage, the artifact that holds the map, andruns-on. runs-onis the runner every job of the workflow runs on. It is a string: a label, such asubuntu-24.04-arm, or a JSON list of labels a runner must all have, such as["self-hosted", "linux"], read as a list where it starts with[. It defaults toubuntu-latest.- Every job runs on it, not only the shards, so every proof of a run is keyed on one architecture, and a project with only its own runners needs no GitHub-hosted one.
- Nothing names a runner in the workflow besides it.
- The action takes no
runs-on. It runs on the runner of the job that uses it, which that job'sruns-onnames, so that is where its caller sets it. - The gate's own CI names its runner only by measurement. The
runnerssuite ofbench.yml, on demand, plans the gate's own mutants once and runs the same three shards onubuntu-latestand onubuntu-24.04-armat once.ci.ymlnames the Arm runner only where its shards are faster there. In run 39437343869 the three shards took 5,866 s, 2,899 s and 1,777 s onubuntu-latestand 4,243 s, 1,682 s and 1,533 s onubuntu-24.04-arm, 29% less in all, and judged every mutant alike. Soci.ymlandrelease.ymlboth nameubuntu-24.04-arm, the one runner, so that their proofs are keyed alike.
Alternatives considered
| Alternative | Why not |
|---|---|
| A runner for the shards alone | The shards' proofs and the plan's would be keyed on two architectures, and a project with only its own runners would still need GitHub's for the rest. |
A runs-on input on the action | A job's runner is chosen before its steps run, so the action could not act on it. |
| Two inputs, one label and one list | One string read as a list where it starts with [ says the same thing with nothing to keep in step. |
Consequences
- Changing the runner's architecture changes every proof's key once, so the first run after it mutates what it reaches without carrying proofs.
- A caller that names no runner runs as before.