ci: the typecheck takes a first-wave slot instead of queueing behind the legs #2512

Merged
jaylouisw merged 1 commit from fix/1124-0202 into main 2026-11-24 02:52:57 +00:00
Owner

Fixes #2500

typecheck was the last job in .forgejo/workflows/ci.yml, on the argument that docker, both legs and this job are exactly the four jobs this runner takes at once, so nothing queues behind it. That holds on an idle host. Over the 37 runs since the job landed (10054-10196) its task was created a median 19 s after its own run's legs (p90 50 s, worst 56 s), and in 9 of them it was the last check in the run to report; arm lists it in needs, so the merge gate could not even be created until that status existed (run 10187: arm 100 s after the last leg).

Change. The job (with its comment) moves to just after docker and before test - shortest job first, 16-18 s against 52-63 s for a leg - so it owns a slot in the first dispatch wave. Nothing else moves.

Coverage unchanged, proven rather than asserted. The file is a permutation of the same lines: 1,989 lines, identical multiset; 817 non-comment lines, zero differences. Parsing both revisions shows docker, test, typecheck and arm with the same steps, same pinned runtimes (v22.23.5 / v24.22.3), same PF_TEST_CONCURRENCY (12 / 10), same status names and the same arm.needs - only their order changed, docker,test,typecheck,arm -> docker,typecheck,test,arm.

The typecheck comment said "It is dispatched last and that is safe now", which is the claim the measurement contradicts, so it now carries the numbers and the reason - the same shape docker's ordering comment already uses.

Gates

node scripts/syntax-check.js     561 files (552 JS, 9 TS): all OK
node scripts/run-tests.js        477 suites, 16,015 assertions, 0 failed
python3 yaml.safe_load(...)      jobs docker, typecheck, test, arm; arm.needs unchanged

No script, test, gate or status name was touched.

Fixes #2500 `typecheck` was the last job in `.forgejo/workflows/ci.yml`, on the argument that `docker`, both legs and this job are exactly the four jobs this runner takes at once, so nothing queues behind it. That holds on an idle host. Over the 37 runs since the job landed (10054-10196) its task was created a median 19 s **after** its own run's legs (p90 50 s, worst 56 s), and in 9 of them it was the last check in the run to report; `arm` lists it in `needs`, so the merge gate could not even be created until that status existed (run 10187: arm 100 s after the last leg). **Change.** The job (with its comment) moves to just after `docker` and before `test` - shortest job first, 16-18 s against 52-63 s for a leg - so it owns a slot in the first dispatch wave. Nothing else moves. **Coverage unchanged, proven rather than asserted.** The file is a permutation of the same lines: 1,989 lines, identical multiset; 817 non-comment lines, zero differences. Parsing both revisions shows `docker`, `test`, `typecheck` and `arm` with the same steps, same pinned runtimes (v22.23.5 / v24.22.3), same `PF_TEST_CONCURRENCY` (12 / 10), same status names and the same `arm.needs` - only their order changed, `docker,test,typecheck,arm` -> `docker,typecheck,test,arm`. The typecheck comment said "It is dispatched last and that is safe now", which is the claim the measurement contradicts, so it now carries the numbers and the reason - the same shape `docker`'s ordering comment already uses. **Gates** ``` node scripts/syntax-check.js 561 files (552 JS, 9 TS): all OK node scripts/run-tests.js 477 suites, 16,015 assertions, 0 failed python3 yaml.safe_load(...) jobs docker, typecheck, test, arm; arm.needs unchanged ``` No script, test, gate or status name was touched.
ci: the typecheck takes a first-wave slot instead of queueing behind the legs (#2500)
Some checks failed
CI / Typecheck (pull_request) Successful in 19s
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 12s
CI / Server smoke and Docker build (pull_request) Successful in 50s
CI / Test (Node 22) (pull_request) Successful in 52s
CI / Test (Node 24) (pull_request) Failing after 53s
CI / Arm auto-merge (pull_request) Successful in 6s
125c9c743d
`typecheck` was the last job in `ci.yml`, on the argument that `docker`, both legs and this job are
exactly the four jobs this runner takes at once, so nothing queues behind it. That holds on an idle
host. Measured from `/actions/tasks` over the 37 runs since the job landed (10054-10196), its task was
created a median 19 s AFTER its own run's legs (p90 50 s, worst 56 s), and in 9 of those runs it was
the last check in the run to report. `arm` lists it in `needs`, so the merge gate could not be created
until that status existed: 100 s after the last leg on run 10187.

The job moves to just after `docker` and before `test` - shortest job first, 16-18 s against 52-63 s
for a leg - so it owns a slot in the first dispatch wave. Nothing else moves.

Coverage unchanged, proven rather than asserted: the file is a permutation of the same lines (1,989
lines, identical multiset; 817 non-comment lines, zero differences), and parsing both revisions shows
`docker`, `test`, `typecheck` and `arm` with the same steps, same pinned runtimes, same
`PF_TEST_CONCURRENCY`, same status names and the same `arm.needs` - only their order changed,
`docker,test,typecheck,arm` -> `docker,typecheck,test,arm`.

The comment that said "It is dispatched last and that is safe now" was the claim the measurement
contradicts, so it now carries the numbers and the reason, the same way `docker`'s own ordering
comment does.

Gates:
  node scripts/syntax-check.js     561 files (552 JS, 9 TS): all OK
  node scripts/run-tests.js        477 suites, 16,015 assertions, 0 failed
  python3 -c yaml.safe_load(...)   jobs docker, typecheck, test, arm; arm.needs unchanged
jaylouisw force-pushed fix/1124-0202 from 125c9c743d
Some checks failed
CI / Typecheck (pull_request) Successful in 19s
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 12s
CI / Server smoke and Docker build (pull_request) Successful in 50s
CI / Test (Node 22) (pull_request) Successful in 52s
CI / Test (Node 24) (pull_request) Failing after 53s
CI / Arm auto-merge (pull_request) Successful in 6s
to e2e2dca3bf
All checks were successful
CI / Typecheck (pull_request) Successful in 35s
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 15s
CI / Server smoke and Docker build (pull_request) Successful in 58s
CI / Test (Node 22) (pull_request) Successful in 1m4s
CI / Test (Node 24) (pull_request) Successful in 1m8s
CI / Arm auto-merge (pull_request) Successful in 5s
2026-11-24 02:48:26 +00:00
Compare
forgejo-actions scheduled this pull request to auto merge when all checks succeed 2026-11-24 02:51:40 +00:00
jaylouisw deleted branch fix/1124-0202 2026-11-24 02:53:02 +00:00
Sign in to join this conversation.
No description provided.