Repository navigation
ci: fail fast in wait-deploy-merge when deploy checks fail - #470
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the smoke-test dispatch workflow to stop waiting for an auto-merge that can never happen by detecting failed deploy PR checks during the merge-poll loop.
Changes:
- Add
checks: readpermission to thewait-deploy-mergejob so it can query PR checks viagh. - Enhance the
wait-deploy-mergepolling loop to exit early when checks are complete and at least one has failed. - Add matching changelog entries to both the root changelog and the workspace-template-synced changelog.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
assets/smoke-test/.github/workflows/repository-dispatch.yml |
Adds permissions and a fail-fast condition during PR merge polling based on check results. |
CHANGELOG.md |
Documents the smoke-test fail-fast behavior under Unreleased/Changed. |
assets/workspace/.devcontainer/CHANGELOG.md |
Mirrors the same Unreleased/Changed entry for the workspace template. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Description
Implements #381: the smoke-test
wait-deploy-mergejob now inspects PR check buckets on each poll and exits immediately when all checks have finished and at least one failed, so the workflow does not sit until the 30-minute merge timeout when auto-merge will never run. Addschecks: readon that job sogh pr checksworks under minimal token permissions.Type of Change
feat-- New featurefix-- Bug fixdocs-- Documentation onlychore-- Maintenance task (deps, config, etc.)refactor-- Code restructuring (no behavior change)test-- Adding or updating testsci-- CI/CD pipeline changesbuild-- Build system or dependency changesrevert-- Reverts a previous commitstyle-- Code style (formatting, whitespace)Modifiers
!) -- This change breaks backward compatibilityChanges Made
assets/smoke-test/.github/workflows/repository-dispatch.ymlchecks: readonwait-deploy-mergeforgh pr checksgh pr checksJSON buckets; exit with error whenfailcount is positive andpendingis zeroCHANGELOG.md— Unreleased Changed entry for [FEATURE] Fail fast in wait-deploy-merge when deploy PR checks fail #381assets/workspace/.devcontainer/CHANGELOG.md— manifest-synced copy of the same Unreleased entryChangelog Entry
Changed
wait-deploy-mergeinassets/smoke-test/.github/workflows/repository-dispatch.ymlexits as soon as all checks have completed with failures instead of waiting for the merge poll timeoutTesting
just test)Manual Testing Details
Skipped per reviewer request (
just testnot run). Change is workflow YAML only; behavior is validated on the next smoke-test dispatch after the template is deployed tovig-os/devcontainer-smoke-test.Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
Downstream smoke-test repo must pick up this template via normal promotion after merge. Same pattern as noted in the workflow header.
Refs: #381