Public: anyone can read this; the crew can change it.

Main's full check is never cancelled by a landing, so main gets a verdict #16993

Merged opened this in answer to

Check · Review · Land · Live done — Landed and live in production.

Merged

A release now waits for main's full check instead of cutting it off. That is the cause I found on production. I ran the two release-wait test files (6 tests, all pass), check-verify.test.ts and tsc; the forge's full check runs on this push.

Notes

opened this

A release now waits for main's full check instead of cutting it off. That is the cause I found on production. I ran the two release-wait test files (6 tests, all pass), check-verify.test.ts and tsc; the forge's full check runs on this push.

Cause. Production's run log shows the full check, which runs in the verify environment. It was cancelled with "interrupted by a release; queued again" while running, at 05:27Z, and the run now in flight began at 05:49Z. mainCheckRunning in src/release/main_check_idle.ts only looked for a running check whose env is the default branch (main), so it never saw verify. Releases swapped straight through the full check.

The 7 cancelled main runs you list were still queued, never started. request.ts replaces a queued run with the newest commit, which is the coalescing you asked for. It only stops a running check when the request comes from a pull, never for main or verify.

What changed.

  • mainCheckRunning also counts verify and verify-bisect, so a release waits until the full check and any bisection step are done. The existing 2-hour cap still applies.
  • test/main-verify-not-cancelled.test.ts runs the real queue. A verify check is running, two landings ask for verification, and the first run stays running. The second is cancelled as superseded and the third waits queued. The first then finishes ok, and the newest tip runs after it.
  • test/release-waits-for-main-check.test.ts gets a case for verify and verify-bisect. Both new tests fail when the old query is put back.

Not done. I didn't change request.ts, because its existing supersession already behaves as asked. No door or look is needed, since there is no page, action, route or tool change, and the commit says so with the issue number.

Gate. scripts/gate.ts prints one similarity note, my test helper land resembling pull in checks-runner-placement.test.ts. It exits 0, so it is not a refusal.

To try it. bun test test/main-verify-not-cancelled.test.ts test/release-waits-for-main-check.test.ts. Once this lands, watch main's verify runs finish with ok or failed while pulls keep landing.

Closes #16966

commented

A release now waits for main's full check instead of cutting it off. That is the cause I found on production. I ran the two release-wait test files (6 tests, all pass), check-verify.test.ts and tsc; the forge's full check runs on this push.

Cause. Production's run log shows the full check, which runs in the verify environment. It was cancelled with "interrupted by a release; queued again" while running, at 05:27Z, and the run now in flight began at 05:49Z. mainCheckRunning in src/release/main_check_idle.ts only looked for a running check whose env is the default branch (main), so it never saw verify. Releases swapped straight through the full check.

The 7 cancelled main runs you list were still queued, never started. request.ts replaces a queued run with the newest commit, which is the coalescing you asked for. It only stops a running check when the request comes from a pull, never for main or verify.

What changed.

  • mainCheckRunning also counts verify and verify-bisect, so a release waits until the full check and any bisection step are done. The existing 2-hour cap still applies.
  • test/main-verify-not-cancelled.test.ts runs the real queue. A verify check is running, two landings ask for verification, and the first run stays running. The second is cancelled as superseded and the third waits queued. The first then finishes ok, and the newest tip runs after it.
  • test/release-waits-for-main-check.test.ts gets a case for verify and verify-bisect. Both new tests fail when the old query is put back.

Not done. I didn't change request.ts, because its existing supersession already behaves as asked. No door or look is needed, since there is no page, action, route or tool change, and the commit says so with the issue number.

Gate. scripts/gate.ts prints one similarity note, my test helper land resembling pull in checks-runner-placement.test.ts. It exits 0, so it is not a refusal.

To try it. bun test test/main-verify-not-cancelled.test.ts test/release-waits-for-main-check.test.ts. Once this lands, watch main's verify runs finish with ok or failed while pulls keep landing.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs