Skip to content

ci: fail fast in wait-deploy-merge when deploy checks fail - #470

Merged
c-vigo merged 2 commits into
devfrom
feature/381-wait-deploy-merge-fail-fast
Mar 27, 2026
Merged

c-vigo merged 2 commits into
devfrom
feature/381-wait-deploy-merge-fail-fast

Conversation

@c-vigo

@c-vigo c-vigo commented Mar 27, 2026

Copy link
Copy Markdown
Contributor

Description

Implements #381: the smoke-test wait-deploy-merge job 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. Adds checks: read on that job so gh pr checks works under minimal token permissions.

Type of Change

  • feat -- New feature
  • fix -- Bug fix
  • docs -- Documentation only
  • chore -- Maintenance task (deps, config, etc.)
  • refactor -- Code restructuring (no behavior change)
  • test -- Adding or updating tests
  • ci -- CI/CD pipeline changes
  • build -- Build system or dependency changes
  • revert -- Reverts a previous commit
  • style -- Code style (formatting, whitespace)

Modifiers

  • Breaking change (!) -- This change breaks backward compatibility

Changes Made

  • assets/smoke-test/.github/workflows/repository-dispatch.yml
    • Grant checks: read on wait-deploy-merge for gh pr checks
    • After MERGED/CLOSED handling, parse gh pr checks JSON buckets; exit with error when fail count is positive and pending is zero
  • CHANGELOG.md — Unreleased Changed entry for [FEATURE] Fail fast in wait-deploy-merge when deploy PR checks fail #381
  • assets/workspace/.devcontainer/CHANGELOG.md — manifest-synced copy of the same Unreleased entry

Changelog Entry

Changed

  • Smoke-test dispatch fails fast when deploy PR checks fail (#381)
    • wait-deploy-merge in assets/smoke-test/.github/workflows/repository-dispatch.yml exits as soon as all checks have completed with failures instead of waiting for the merge poll timeout

Testing

  • Tests pass locally (just test)
  • Manual testing performed (describe below)

Manual Testing Details

Skipped per reviewer request (just test not run). Change is workflow YAML only; behavior is validated on the next smoke-test dispatch after the template is deployed to vig-os/devcontainer-smoke-test.

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly (edit docs/templates/, then run just docs)
  • I have updated CHANGELOG.md in the [Unreleased] section (and pasted the entry above)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

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

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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: read permission to the wait-deploy-merge job so it can query PR checks via gh.
  • Enhance the wait-deploy-merge polling 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.

@c-vigo
c-vigo enabled auto-merge March 27, 2026 13:16
@c-vigo
c-vigo merged commit 8644d29 into dev Mar 27, 2026
11 checks passed
@c-vigo
c-vigo deleted the feature/381-wait-deploy-merge-fail-fast branch March 27, 2026 13:22
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.

2 participants