Repository navigation
ci(desktop): allow manual dispatch of Desktop Swift CI - #11585
Merged
Merged
Conversation
`plan-desktop-release.py` requires this workflow's checks on the exact source SHA before a desktop release can be tagged. With only `push` and `pull_request` triggers, any SHA whose run did not happen is permanently unreleasable: push events cannot be replayed, and for a commit already on `main` neither a force-push nor a PR close/reopen creates one. This bit today. The workflow was manually disabled for part of the afternoon; several changes merged to `main` during that window with no checks, and the planner could not resolve a releasable SHA. It polls for up to 5400s before failing, so two release runs consumed the full window and ended cancelled with `tag-release` skipped. Re-enabling the workflow did not help, because enabling does not backfill runs for commits that already merged. The failure is also quiet: an absent required check reports nothing, so PRs read as CLEAN and the release train appears healthy while it cannot tag anything. No job logic changes. `DIFF_BASE` already falls back to `git rev-parse HEAD^` when `github.event.pull_request.base.sha` is empty, and the `github.event.action != 'closed'` guard passes for dispatch. Failure-Class: none Co-Authored-By: Claude Opus 5 <[email protected]>
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.
Problem
plan-desktop-release.pygates every desktop release on this workflow's checks existing for the exact source SHA:Until today this workflow had no manual trigger, only
pushandpull_request. That makes the gate unrecoverable whenever a run does not happen: push events cannot be replayed, and for a commit already onmainneither a force-push nor a PR close/reopen produces one. The SHA stays permanently unreleasable, and the only remedy is to land an unrelated commit purely to movemainforward.That is not hypothetical. This workflow was disabled manually for part of today. During that window several changes merged to
mainwith no checks, so the planner could not resolve a releasable SHA. It polls every 30s for up to 5400s and then fails — two release runs burned the full window and endedcancelledwithtag-releaseskipped. Re-enabling the workflow did not fix it, because enabling does not retroactively create runs for commits that already merged.Meanwhile the release train looked healthy: builds were dispatched, PRs showed
mergeStateStatus: CLEAN, and no check reported failure. A required check that is absent is materially different from one that fails, and only the second is visible.Change
Adds
workflow_dispatchso the evidence can be re-minted for any SHA without inventing a commit.No job logic changes. The
changesjob already tolerates the dispatch event:github.event.pull_request.base.shais empty, soDIFF_BASEfalls through to the existinggit rev-parse HEAD^fallback, andgithub.event.actionis empty so the!= 'closed'guard passes.Verification
Merging this is itself the test: it pushes
main, which must produceDesktop Swift Build & TestsandDesktop Swift Release Compilefor the new SHA and unblock the planner. After that the trigger can be exercised directly withgh workflow run desktop-swift-ci.yml.Failure-Class: none