Repository navigation
ci: let a release candidate wait for a pending verify run and retry only its journey jobs - #1856
Merged
Merged
Conversation
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.
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.
verifyrun was stillpendingbehind another main run failed invalidate, and someone had to wait and dispatch again (v1.0.3 run 40695678072, v1.0.4 run 40979641871).validatenow 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 endscancelledand still refuses the candidate.receiptjob no longer waits foragent-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 privateselectthat accepts such a run is with-hide/hide-private#363.스크린샷 없음: no screen changes (release workflow and its script only).
Review
receiptno longer needingagent-journeymeans a failed run can now carry a receipt. The publisher takes only a successful run (checkRunin the privateselect), so this changes nothing it accepts..github/workflows/release-candidate.yml- failure path:validate's timeout goes 5 -> 50 minutes, and the receipt'sneedschanges what a rerun reruns.scripts/release-candidate.mjs-sourcenow reads the run itself throughgh apiinstead of a file the step wrote.candidate_workflow_shapin to a main head that includes this; nothing here touchesrelease/policy.json. OK to merge after hide-private#356 and v1.0.4?Evidence
node --test scripts/tests/release-candidate.test.mjs13/13 andpytest scripts/tests/test_release_candidate.py8/8 pass; with the old script and workflow the same tests fail (the Node suite cannot importawaitStartedVerification; the Python receipt/journey test fails onneeds).cancelled(replaced) is refused; pending for 45 minutes is refused; a wrong run is refused at the first read without waiting.agent-journey.ymland requires that none of its uploads is a release artifact name (hide-*), which is what lets the private side accept a journey-only rerun.started_atand keeps their artifacts'created_at, so the attempt that made each artifact can be read. The private rule is built on that.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, head21741cf6a506f23b0169b7506b1f18aff470dcaf.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).