Repository navigation
ci(release): detach non-blocking E2E - #11031
Conversation
📝 WalkthroughWalkthroughThe release workflow now creates a draft release when necessary, publishes it, and dispatches tag-scoped E2E afterward with retries and failure warnings. Its status messaging reflects that post-publication E2E cannot change the release result. The E2E workflow run name includes the selected ref, and a Vitest suite validates the dispatch and input contracts. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
.github/workflows/release-cut.yml (1)
786-809: 🩺 Stability & Availability | 🟠 Major | ⚡ Quick winMake publication depend on draft creation.
create-releaseis not inpublish-release.needs, so publication can start before the draft exists and fail its draft-state check. Addcreate-releaseas apublish-releasedependency.Proposed fix
publish-release: needs: - cut + - create-release - build - build-mac - terminal-rendering-golden
🧹 Nitpick comments (1)
config/scripts/release-e2e-dispatch-contract.test.mjs (1)
22-25: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winCover the three-attempt retry guarantee.
The warning assertion passes even if dispatch is reduced to one attempt. Assert the retry loop so this release behavior remains contractual.
Proposed test addition
expect(dispatchStep.run).toContain('--raw-field "ref=refs/tags/$TAG"') + expect(dispatchStep.run).toContain('for attempt in 1 2 3') + expect(dispatchStep.run).toContain('[[ "$attempt" -eq 3 ]] || sleep') expect(dispatchStep.run).toContain('::warning::Failed to dispatch post-release E2E')
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: 756443f7-b427-4620-a988-ab40943f96ac
📒 Files selected for processing (3)
.github/workflows/e2e.yml.github/workflows/release-cut.ymlconfig/scripts/release-e2e-dispatch-contract.test.mjs
|
Review follow-up:
|
* ci(release): detach non-blocking E2E * test(release): pin E2E dispatch retries
Summary
Cut Releaseworkflow's in-line job graph.publish-releasesucceeds.The release-blocking topology is unchanged: publication still requires platform builds, signing, asset verification, and terminal-rendering golden checks. This removes roughly 145 runner-minutes from each
Cut Releaserun and prevents flaky diagnostic E2E failures from making successfully published releases appear failed.Screenshots
No visual change.
Testing
pnpm lintpnpm typecheckpnpm test— focused workflow suites passed locally; full sharded suite runs in PR CIpnpm build— PR CI's package job builds and smoke-tests the packaged appgit diff --checkAI Review Report
Reviewed the release authority graph, publish ordering, failure behavior, retries, concurrency, tag reproducibility, and GitHub token scope. Review flagged that retry behavior should be explicitly contractual; added assertions for the three-attempt loop and retry delay. It also flagged a possible draft-creation race, but verified this is prevented transitively: both
buildandbuild-macneedcreate-release, whilepublish-releaseneeds both build jobs.Cross-platform review confirmed the dispatcher intentionally runs on Ubuntu and changes no application shortcuts, labels, filesystem paths, native packaging, SSH behavior, or Electron platform logic. Existing macOS, Linux, Windows, SSH, signing, and terminal golden release jobs are unchanged.
Security Audit
actions: write; unspecified permissions remain disabled.mainchanges.GITHUB_TOKEN; no new secret or third-party action is introduced.No security follow-up is required.
Notes
ELI5: the release truck used to carry an optional inspection team, so a flaky inspector could paint the delivery red even after it shipped. Now every required safety check completes and the package publishes first, then the optional team inspects that exact package in a separate lane.