Repository navigation
ci(release): count recovery runs in promotion gates - #625
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.
Recovery dispatches previously inherited the workflow ref's SHA in promotion gates. Read the existing
release-revisionartifact from each trusted dispatch to identify its exact SHA and channel branch, and require a public release/manifest, successful CI, all four server smoke targets, and completedpublish-desktop. Missing, expired, incomplete or mismatched evidence fails closed; push/schedule attribution stays unchanged. Reusing this artifact supports the already completed recovery run without changing historical titles or reading dispatch inputs.Run number takes precedence over attempt: recovery run 335 beats cancelled attempt 2 of older push run 333. Newer identified failures still block readiness. Keep the tiny revision artifact for 90 days and document attribution, retention, and why no-release reruns still cancel expensive outstanding builds. The promotion summary identifies the selected recovery and its exact-SHA gate even when an independent hold blocks promotion.
Authenticated read-only dry run (
GITHUB_REPOSITORY=itsoltech/canopy PROMOTION_PATH=next-main DRY_RUN=true BURN_IN_DAYS=0 bun scripts/promote.ts, executed withnice): candidate31c7f87825b9756d8b1adf677f506519f248f770; recovery 43398584998, attempt 1; exact-SHA gate passed. Final decision remainsNothing ready to promotebecause the existing #618 follow-up holds320a6c83d79c796def5c329edb3b00378986b3ceand its suffix. That hold was preserved as requested. The default 72-hour burn-in also remains enforced without the diagnostic zero-soak setting. Fixture coverage verifiesReady/0.2.0when independent holds are absent.Validation:
f65a9ac8239f872395dcae333d869b1f376c6493: four test shards (each withcheck:tmp), aggregate Typecheck/tests/builds, static checks, Web/Linux builds and commitlint. PR marked ready.nice: install, gen:check, typecheck, lint, format:check and web build pass; 47 focused promotion tests pass. Working tree is clean.check:tmpis not clean. The initial run hit unchanged harness test timeouts. A retry with--timeout 30000hit unchangedask-user.test.ts(internal 5-second RPC deadline; reproduced in isolation),bot-outgoing-files.test.ts(missing pending approval), andbot-view-deltas.test.ts(15-second timeout). Stopped the already failed retry after full CI passed; temp-directory cleanup reported nothing left. No unrelated runtime/test changes were made.actionlintwas unavailable: the installed shim has no configured version. No release-branch pushes, tags or workflow dispatches.