Skip to content

ci(release): count recovery runs in promotion gates - #625

Merged
nixuuu merged 2 commits into
devfrom
ci/count-recovery-runs
Nov 13, 2026
Merged

nixuuu merged 2 commits into
devfrom
ci/count-recovery-runs

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Recovery dispatches previously inherited the workflow ref's SHA in promotion gates. Read the existing release-revision artifact 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 completed publish-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 with nice): candidate 31c7f87825b9756d8b1adf677f506519f248f770; recovery 43398584998, attempt 1; exact-SHA gate passed. Final decision remains Nothing ready to promote because the existing #618 follow-up holds 320a6c83d79c796def5c329edb3b00378986b3ce and 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 verifies Ready / 0.2.0 when independent holds are absent.

Validation:

  • All CI checks are green on f65a9ac8239f872395dcae333d869b1f376c6493: four test shards (each with check:tmp), aggregate Typecheck/tests/builds, static checks, Web/Linux builds and commitlint. PR marked ready.
  • Local checks using nice: install, gen:check, typecheck, lint, format:check and web build pass; 47 focused promotion tests pass. Working tree is clean.
  • Local full check:tmp is not clean. The initial run hit unchanged harness test timeouts. A retry with --timeout 30000 hit unchanged ask-user.test.ts (internal 5-second RPC deadline; reproduced in isolation), bot-outgoing-files.test.ts (missing pending approval), and bot-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.
  • Optional actionlint was unavailable: the installed shim has no configured version. No release-branch pushes, tags or workflow dispatches.

@nixuuu
nixuuu marked this pull request as ready for review November 13, 2026 09:53
@nixuuu
nixuuu merged commit c44ce49 into dev Nov 13, 2026
13 checks passed
@nixuuu
nixuuu deleted the ci/count-recovery-runs branch November 13, 2026 09:56
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