Skip to content

ci: harden release dispatch and publish ordering - #337

Merged
c-vigo merged 12 commits into
devfrom
release/336-harden-release-orchestration
Mar 17, 2026
Merged

c-vigo merged 12 commits into
devfrom
release/336-harden-release-orchestration

Conversation

@c-vigo

@c-vigo c-vigo commented Mar 17, 2026 •

Copy link
Copy Markdown
Contributor

Description

This PR hardens release orchestration to reduce flaky cross-repo timing failures, and fixes the workspace changelog sync regression.

It combines:

Type of Change

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

Modifiers

  • Breaking change (!)

Changes Made

  • .github/workflows/release.yml

    • Keeps smoke dispatch asynchronous (no downstream completion wait in upstream workflow)
    • Scopes destructive rollback to upstream release stages only
    • Hardens downstream RC prerelease lookup with bounded retries
    • Retries transient API/network failures (404 propagation, 429, 5xx, timeout/network/TLS patterns)
    • Fails fast on non-retryable auth/permission failures (401/403/bad credentials/missing scopes)
  • assets/smoke-test/.github/workflows/repository-dispatch.yml

    • Adds concurrency controls to avoid overlapping runs for the same release tag
  • scripts/manifest.toml

    • Removes duplicate root CHANGELOG.md sync entry that caused overwrite behavior
  • tests/test_integration.py

    • Hardens changelog ownership regression coverage:
      • root CHANGELOG.md must keep workspace ## Unreleased
      • root must not include versioned ## [ release headings
      • .devcontainer/CHANGELOG.md must include generic semver release headings
  • assets/workspace/CHANGELOG.md

    • Synced after manifest correction
  • CHANGELOG.md

  • assets/workspace/.devcontainer/CHANGELOG.md

    • Updates under Unreleased for user-visible behavior changes

Changelog Entry

Changed

  • Release orchestration hardening and changelog sync regression fix (#336, #333)
    • Improve downstream release gate resilience and error classification
    • Keep smoke dispatch validation asynchronous without destructive rollback coupling
    • Fix duplicate changelog sync mapping and strengthen regression test coverage

Testing

  • Pre-commit hooks pass on all commits
  • Full local test suite run (just test)

Manual / Targeted Verification

  • Attempted targeted pytest for test_smoke_workspace_changelog_available_in_devcontainer_and_root
  • Local run blocked by missing dependency in this environment:
    • ModuleNotFoundError: No module named 'testinfra'

Additional Notes

  • Changes were kept atomic and review-driven:
    • b91ae2e test hardening for changelog ownership assertions
    • a0b2fd9 transient retry expansion + auth fail-fast handling for release API lookup

Refs: #336, #333

@c-vigo c-vigo self-assigned this Mar 17, 2026
@c-vigo
c-vigo requested a review from Copilot March 17, 2026 11:08

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

This PR hardens the release orchestration path to reduce timing-related failures between upstream publishing and downstream smoke-test dispatch, and fixes a workspace manifest duplication that was overwriting the workspace template’s root changelog.

Changes:

  • Add bounded retries for the final-release downstream RC pre-release visibility gate.
  • Reorder final GitHub Release creation to happen after artifact publication/signing/attestations.
  • Remove duplicate CHANGELOG.md sync entry and regenerate the workspace changelog output; add concurrency control for smoke-test dispatch runs.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
.github/workflows/release.yml Adds retry logic for downstream pre-release gate, changes publish ordering, makes smoke-test dispatch fire-and-forget, and adjusts rollback dependencies.
assets/smoke-test/.github/workflows/repository-dispatch.yml Adds a concurrency group to prevent overlapping dispatch handling for the same tag.
scripts/manifest.toml Removes the duplicate CHANGELOG.md sync entry that caused workspace root output to be overwritten.
assets/workspace/CHANGELOG.md Regenerates the workspace template’s root changelog content after the manifest fix.
assets/workspace/.devcontainer/CHANGELOG.md Adds an Unreleased entry documenting the release hardening changes for downstream consumers.
CHANGELOG.md Adds an Unreleased entry documenting the release hardening changes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/release.yml Resolved
Comment thread .github/workflows/release.yml Resolved
@c-vigo

c-vigo commented Mar 17, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for the review — I addressed both inline comments in follow-up commits 74e22e7 and 01c35af.

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

This PR hardens the release workflow orchestration to reduce timing/race failures between upstream publish and downstream smoke-test dispatch, and fixes a workspace sync manifest issue that caused the workspace root changelog to be overwritten.

Changes:

  • Add bounded retries for the downstream RC pre-release visibility gate and reorder final GitHub Release creation to occur after artifact publication/signing.
  • Make smoke-test dispatch asynchronous (no downstream completion polling), add concurrency control to the downstream dispatch workflow, and scope rollback to pre-publish/publish failures.
  • Remove duplicate CHANGELOG.md sync entry and regenerate workspace changelog outputs to preserve distinct root vs .devcontainer changelog roles.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
.github/workflows/release.yml Adds downstream RC gate retries, changes smoke-test dispatch semantics, and moves final GitHub Release creation to end of publish ordering.
assets/smoke-test/.github/workflows/repository-dispatch.yml Adds workflow-level concurrency grouping to prevent overlapping dispatches per tag.
scripts/manifest.toml Removes duplicate root CHANGELOG.md sync entry to prevent overwriting workspace-owned changelog.
tests/test_integration.py Updates integration test expectations to reflect distinct root vs .devcontainer changelog roles.
docs/RELEASE_CYCLE.md Updates release-cycle documentation to reflect new smoke-test/rollback semantics.
CHANGELOG.md Adds unreleased entry documenting the hardened release semantics.
assets/workspace/.devcontainer/CHANGELOG.md Syncs the new unreleased entry into the devcontainer changelog copy.
assets/workspace/CHANGELOG.md Regenerates workspace root changelog as a stub (workspace-owned) after manifest fix.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/test_integration.py Resolved
Comment thread .github/workflows/release.yml Resolved
@c-vigo
c-vigo enabled auto-merge March 17, 2026 12:29
@c-vigo
c-vigo merged commit 14a01ff into dev Mar 17, 2026
12 checks passed
@c-vigo
c-vigo deleted the release/336-harden-release-orchestration branch March 17, 2026 12:32
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