Repository navigation
fix(ci): harden setup-env uv sync retry path - #371
Merged
c-vigo merged 3 commits intoMar 19, 2026
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR hardens the CI setup-env composite action to reduce release pipeline flakiness caused by intermittent uv sync --frozen --all-extras crashes when setup-env is executed multiple times in the same job (issue #370), and documents the fix in the changelog for the 0.3.1 release branch.
Changes:
- Add a guarded
uv syncexecution path that retries once after clearing uv cache and removing.venvon failure. - Add a
0.3.1changelog entry documenting the release pipeline stabilization fortest-imagesetup. - Mirror the changelog entry into the workspace template’s synced
.devcontainer/CHANGELOG.md.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
.github/actions/setup-env/action.yml |
Adds a one-time retry path for uv sync after cache + venv cleanup to mitigate exit-139 crashes. |
CHANGELOG.md |
Documents the fix under 0.3.1 (Fixed) with reference to #370. |
assets/workspace/.devcontainer/CHANGELOG.md |
Keeps the workspace-template changelog copy in sync with the root changelog entry. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
c-vigo
added a commit
that referenced
this pull request
Mar 19, 2026
## Description Fixes a release pipeline regression where `setup-env` could crash with exit 139 when invoked multiple times in the same job. The retry-helper `BASH_ENV` merge now avoids self-referencing recursion, and changelogs are updated for issue tracking on release `0.3.1`. ## Type of Change - [ ] `feat` -- New feature - [x] `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 guard to skip retry-helper merge when `PREV_BASH_ENV` already equals `RETRY_HELPER` - Prevent `setup-env-retry.sh` from sourcing itself recursively on repeated setup invocations - `CHANGELOG.md` - Add `Fixed` entry for issue `#374` in `## [0.3.1] - TBD` - `assets/workspace/.devcontainer/CHANGELOG.md` - Sync mirrored changelog entry for issue `#374` ## Changelog Entry ### Fixed - **Release setup-env no longer self-sources retry helper via BASH_ENV** ([#374](#374)) - Guard the retry-helper merge logic in `.github/actions/setup-env/action.yml` to skip merging when `PREV_BASH_ENV` already equals `RETRY_HELPER` - Prevent infinite `source` recursion and exit 139 crashes when `setup-env` is invoked multiple times in one job ## Testing - [ ] Tests pass locally (`just test`) - [ ] Manual testing performed (describe below) ### Manual Testing Details N/A ## Checklist - [x] My code follows the project's style guidelines - [x] 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`) - [x] I have updated `CHANGELOG.md` in the `[Unreleased]` section (and pasted the entry above) - [x] 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 This addresses a regression chain related to the earlier `uv sync` stabilization work in `#370`/`#371`; root cause and implementation plan were documented on issue `#374` comments before this patch. Refs: #374, #370
Merged
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
Fix release pipeline instability where
uv sync --frozen --all-extrascrashes with exit139duringtest-imagesetup after a prior setup run in the same job.Type of Change
fix-- 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
.github/actions/setup-env/action.ymluv syncwith guarded execution that captures failure exit code.venv, then retryuv synconceCHANGELOG.md0.3.1Fixed entry for issue#370assets/workspace/.devcontainer/CHANGELOG.mdChangelog Entry
Fixed
.github/actions/setup-env/action.ymlto retryuv sync --frozen --all-extrasonce after clearing uv cache and removing stale.venvsetup-envis executed multiple times in the same jobTesting
just test)Manual Testing Details
N/A
Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
Target base branch for this PR is
release/0.3.1.Refs: #370