Skip to content

fix(ci): ensure release retry steps do not require implicit uv - #366

Merged
c-vigo merged 2 commits into
release/0.3.1from
bugfix/365-release-automatic-rollback
Mar 19, 2026
Merged

c-vigo merged 2 commits into
release/0.3.1from
bugfix/365-release-automatic-rollback

Conversation

@c-vigo

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

Copy link
Copy Markdown
Contributor

Description

Fix release workflow retry failures from issue #365 by removing implicit runtime assumptions and centralizing retry behavior. This update moves retry setup to the shared setup action, adds an explicit uv-only setup mode for jobs that do not need Python bootstrap, and aligns all release retry calls on one helper path.

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

  • .github/actions/setup-env/action.yml
    • Add install-python and python-version inputs to support uv-only usage where Python setup is unnecessary
    • Export shared retry helper via BASH_ENV so retry behavior is centralized and reused across steps/jobs
    • Replace internal uv run retry usage in setup-env tool installation paths with shared retry
  • .github/workflows/release.yml
    • Use ./.github/actions/setup-env in validate, finalize, publish, smoke-test, and rollback jobs
    • Replace release workflow uv run retry invocations with shared retry --retries ... -- <command> calls
    • Remove duplicated inline retry() definitions from smoke-test and rollback job steps
  • CHANGELOG.md
    • Add/update fixed entry for #365 reflecting the centralized retry + uv-only setup approach
  • assets/workspace/.devcontainer/CHANGELOG.md
    • Sync generated changelog changes through manifest hook

Changelog Entry

Fixed

  • Release workflow no longer fails when retry tooling is unavailable (#365)
    • Extend .github/actions/setup-env/action.yml with a reusable retry shell function exported via BASH_ENV as the retry single source of truth
    • Add setup-env input support for uv-only usage by allowing Python setup to be disabled when jobs only need retry tooling
    • Switch release workflow retry calls from uv run retry to shared retry and remove duplicated inline retry implementations

Testing

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

Manual Testing Details

N/A

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

Copilot review comments on the previous revision were addressed in commit 3aa4f4c by standardizing setup and retry across release jobs.

Refs: #365

@c-vigo
c-vigo requested a review from Copilot March 19, 2026 08:32

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’s retry behavior by ensuring retry tooling is available in jobs that call it (and by avoiding uv in no-checkout jobs), addressing release/rollback failures reported in #365.

Changes:

  • Provision uv + dependencies in validate and publish, and make finalize environment setup unconditional so uv run retry is always available where used.
  • Replace uv run retry with an inline shell retry() helper in the no-checkout smoke-test and rollback jobs.
  • Add a changelog “Fixed” entry documenting the workflow reliability fix (synced into the workspace template changelog).

Reviewed changes

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

File Description
.github/workflows/release.yml Ensures retry functionality works across release paths; removes uv dependency from no-checkout jobs via inline retry helper.
CHANGELOG.md Documents the workflow fix under the active release section.
assets/workspace/.devcontainer/CHANGELOG.md Syncs the same changelog entry into the workspace template.

💡 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
Comment thread .github/workflows/release.yml Resolved
@c-vigo
c-vigo merged commit a67d541 into release/0.3.1 Mar 19, 2026
13 checks passed
@c-vigo
c-vigo deleted the bugfix/365-release-automatic-rollback branch March 19, 2026 09:02
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