Skip to content

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
DrunkOnJava merged 1 commit into
mainfrom
ci/wait-for-check-superseded
Nov 13, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
ci/wait-for-check-superseded

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

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.yml concurrency), so a run still pending when the next push arrives is cancelled, and a cancelled run never makes CI passed. The viewer deploy of cc5a417d waited for that check from 13:31 UTC, and the deploy of every later commit (f8e20536 among them, whose CI had passed at 13:50) sat behind it in the viewer-refs/heads/main group until the run was cancelled by hand at about 14:30. RELEASE.md already named the release-side cost ("a slow or superseded run costs the whole wait").

Changes

  • .github/actions/wait-for-check/wait.sh: ci_cancelled asks 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). With superseded-skips: "true" the step succeeds with result=superseded; by default it fails with the reason.
  • .github/actions/wait-for-check/action.yml: inputs superseded-skips (default "false") and ci-workflow (default CI), and the new result.
  • .github/workflows/deploy-viewer.yml: passes superseded-skips: "true" and skips the Pages deployment on superseded. publish.yml keeps the default: a release is not cut from a commit whose CI was cancelled.
  • tools/ci/test_wait_for_check.py and a step in ci.yml: the real script runs against a stub gh that answers from canned API responses and applies the script's own --jq filters with jq.
  • 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 on main (WAIT_FOR_CHECK_SCRIPT), the two cancelled-CI cases fail with the symptom above ("CI passed did not finish ... within 5 minutes") and the seven others pass.
  • tools/ci/check-workflows.py and tools/ci/test_check_workflows.py pass; the three changed YAML files load.
  • This PR's CI.

Not measured against GitHub: the next burst of merges (the cancelled-run path); the success path is unchanged.

Audit-honesty checklist

  • README / docs reflect the current state after this PR (RELEASE.md)
  • A user-visible change has its entry as a fragment under changelog.d/: none, CI only
  • Commit messages describe WHAT changed and WHY
  • No emojis in code, docs, or commit messages
  • No private paths, personal email addresses, or internal jargon in committed files

Legal and contribution hygiene

  • I agree this work is licensable under Apache-2.0
  • This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content
  • No new test fixtures

Breaking changes

None. A caller that does not pass superseded-skips behaves as before except that it fails at once on a cancelled CI run.

Related issues

None filed: a CI defect found while landing #1911.

…celled ends its wait at once instead of at the 80-minute timeout
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 13, 2026 15:07
@DrunkOnJava

Copy link
Copy Markdown
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: ci_cancelled and the superseded result in wait.sh, the two new action inputs, the deploy step's condition in deploy-viewer.yml, and tools/ci/test_wait_for_check.py, which runs the real script against a stub gh. Full CI is green on this head, including the new failure-first step.

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) November 13, 2026 16:03
@DrunkOnJava
DrunkOnJava merged commit 73afa53 into main Nov 13, 2026
66 checks passed
@DrunkOnJava
DrunkOnJava deleted the ci/wait-for-check-superseded branch November 13, 2026 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant