Skip to content

ci: let a release candidate wait for a pending verify run and retry only its journey jobs - #1856

Merged
yansfil merged 2 commits into
mainfrom
ci/release-flow-retries
Oct 30, 2026
Merged

yansfil merged 2 commits into
mainfrom
ci/release-flow-retries

Conversation

@yansfil

@yansfil yansfil commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Closes with-hide/hide-private#357
Related: with-hide/hide-private#362 (closed by the private companion with-hide/hide-private#363), with-hide/hide-private#359

Summary

Two things cost a whole release candidate run (about 30 minutes) for no reason.

  • A pending verify run (#357). A candidate dispatched while its source's main verify run was still pending behind another main run failed in validate, and someone had to wait and dispatch again (v1.0.3 run 40695678072, v1.0.4 run 40979641871). validate now reads that run every 30 s and waits up to 45 minutes for it to start, and the job summary says how long. A run that a later merge replaces ends cancelled and still refuses the candidate.
  • A journey-only flake (Overview 요청 보기: 에이전트마다 시킨 일, 나온 것, 지금 할 일 #362, public half). The receipt job no longer waits for agent-journey, so when only journey cells fail, Re-run failed jobs reruns just those cells and every artifact the publisher takes stays one attempt's. The run still succeeds only when the journey passes. The private select that accepts such a run is with-hide/hide-private#363.

스크린샷 없음: no screen changes (release workflow and its script only).

Review

  • 판단해 주세요: 45 minutes as the wait limit (main verify runs queue at about 15 minutes each); the issue suggested it.
  • 판단해 주세요: receipt no longer needing agent-journey means a failed run can now carry a receipt. The publisher takes only a successful run (checkRun in the private select), so this changes nothing it accepts.
  • 조심해서 볼 파일: .github/workflows/release-candidate.yml - failure path: validate's timeout goes 5 -> 50 minutes, and the receipt's needs changes what a rerun reruns.
  • 조심해서 볼 파일: scripts/release-candidate.mjs - source now reads the run itself through gh api instead of a file the step wrote.
  • 질문: these take effect at the next release once the lead moves the private candidate_workflow_sha pin to a main head that includes this; nothing here touches release/policy.json. OK to merge after hide-private#356 and v1.0.4?

Evidence

  • 확인한 것: node --test scripts/tests/release-candidate.test.mjs 13/13 and pytest scripts/tests/test_release_candidate.py 8/8 pass; with the old script and workflow the same tests fail (the Node suite cannot import awaitStartedVerification; the Python receipt/journey test fails on needs).
  • 확인한 것: the new tests drive the wait on a fake clock: pending, pending, in_progress is taken after two 30 s waits; pending then cancelled (replaced) is refused; pending for 45 minutes is refused; a wrong run is refused at the first read without waiting.
  • 확인한 것: a test reads agent-journey.yml and requires that none of its uploads is a release artifact name (hide-*), which is what lets the private side accept a journey-only rerun.
  • 확인한 것: GitHub's API for real "Re-run failed jobs" run 40671390899: attempt 2 lists the jobs it did not rerun with their attempt 1 started_at and keeps their artifacts' created_at, so the attempt that made each artifact can be read. The private rule is built on that.
  • 확인하지 못한 것: a real dispatch of release-candidate.yml (not run: v1.0.4 is being released). Neither the wait against a real pending run nor a real journey-only rerun has been run end to end.
Verification record

Base a891332c5, head 21741cf6a506f23b0169b7506b1f18aff470dcaf.
Local: node --test scripts/tests/release-candidate.test.mjs (13 pass), python3 -m pytest scripts/tests/test_release_candidate.py scripts/tests/test_package_typecheck.py scripts/tests/test_candidate_runner.py (28 pass, 53 subtests); verify run 40991560938 success, actionlint .github/workflows/release-candidate.yml (clean), scripts/check-no-workstation-identity.sh (pass).

@yansfil
yansfil merged commit bf8b5f5 into main Oct 30, 2026
64 checks passed
@yansfil
yansfil deleted the ci/release-flow-retries branch October 30, 2026 05:37
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