Repository navigation
ci: a viewer deploy or release whose commit's CI run a later push cancelled ends its wait at once instead of at the 80-minute timeout - #1914
Merged
Conversation
…celled ends its wait at once instead of at the 80-minute timeout
DrunkOnJava
marked this pull request as ready for review
November 13, 2026 15:07
Owner
Author
|
Self-approved as rvt-rs-review[bot] under Griffin's 2026-11-12 answer ("You are allowed to self-approve"). rvtDevelop was sent this head at 15:33 UTC and had not answered 40 minutes later. I re-read the delta as a second reader would: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The wait for a commit's CI (
.github/actions/wait-for-check, used by the viewer deploy and the release preflight) ends at once when the push CI run of that commit was cancelled, instead of at its 80-minute timeout. The viewer deploy leaves such a commit out (the later commit's deploy ships the viewer); the release preflight fails it.Motivation
On 13 November 2026 five merges landed in about 35 minutes. CI's push runs share one group with no cancel-in-progress (
ci.ymlconcurrency), so a run still pending when the next push arrives is cancelled, and a cancelled run never makesCI passed. The viewer deploy ofcc5a417dwaited for that check from 13:31 UTC, and the deploy of every later commit (f8e20536among them, whose CI had passed at 13:50) sat behind it in theviewer-refs/heads/maingroup until the run was cancelled by hand at about 14:30.RELEASE.mdalready named the release-side cost ("a slow or superseded run costs the whole wait").Changes
.github/actions/wait-for-check/wait.sh:ci_cancelledasks for the push run of the CI workflow on the commit while no completed check exists; a completed, cancelled run ends the wait (an API failure is not an answer and the wait goes on). Withsuperseded-skips: "true"the step succeeds withresult=superseded; by default it fails with the reason..github/actions/wait-for-check/action.yml: inputssuperseded-skips(default"false") andci-workflow(defaultCI), and the new result..github/workflows/deploy-viewer.yml: passessuperseded-skips: "true"and skips the Pages deployment onsuperseded.publish.ymlkeeps the default: a release is not cut from a commit whose CI was cancelled.tools/ci/test_wait_for_check.pyand a step inci.yml: the real script runs against a stubghthat answers from canned API responses and applies the script's own--jqfilters withjq.RELEASE.md: the sentence about a superseded run.Testing
Unit tests are banned in this repository; this is the script run as a process, with only the GitHub API simulated.
python3 tools/ci/test_wait_for_check.py: 9 of 9 pass on the new script. Run against the script onmain(WAIT_FOR_CHECK_SCRIPT), the two cancelled-CI cases fail with the symptom above ("CI passeddid not finish ... within 5 minutes") and the seven others pass.tools/ci/check-workflows.pyandtools/ci/test_check_workflows.pypass; the three changed YAML files load.Not measured against GitHub: the next burst of merges (the cancelled-run path); the success path is unchanged.
Audit-honesty checklist
RELEASE.md)changelog.d/: none, CI onlyLegal and contribution hygiene
Breaking changes
None. A caller that does not pass
superseded-skipsbehaves as before except that it fails at once on a cancelled CI run.Related issues
None filed: a CI defect found while landing #1911.