Repository navigation
fix(ci): decouple sync-main-to-dev sync job from dev setup-env - #469
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR fixes sync-main-to-dev workflow failures caused by the sync job checking out dev and then invoking a setup-env composite action that may be older than the workflow on main, leading to missing inputs/helpers (notably retry).
Changes:
- Remove
./.github/actions/setup-envusage from thesyncjob and inline-export theretryhelper viaBASH_ENV. - Add a workflow comment documenting the “checked out
devvs workflow onmain” chicken-and-egg constraint. - Add a matching
## Unreleased“Fixed” changelog entry in both root and workspace-template changelogs.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
.github/workflows/sync-main-to-dev.yml |
Removes setup-env from the sync job and exports retry inline to avoid depending on dev’s action implementation. |
CHANGELOG.md |
Records the fix under ## Unreleased → Fixed (issue #459). |
assets/workspace/.devcontainer/CHANGELOG.md |
Mirrors the same changelog entry for workspace template parity. |
💡 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
Fixes the
sync-main-to-devworkflow failing on the sync job whenmainhas a newersetup-env(e.g.install-pythonand theretryhelper) thandev: that job checks outdev, so it was loading an older composite action and then runningretrywithout it defined (exit 127). The sync job no longer calls./.github/actions/setup-env; it exports the sameretryshell helper inline (aligned withsetup-env) and documents the chicken-and-egg constraint. Root and workspace template changelogs include the #459 entry.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
.github/workflows/sync-main-to-dev.ymlsetup-envfrom the sync job (post-ref: devcheckout).retryto$RUNNER_TEMP/sync-main-to-dev-retry.sh, setBASH_ENV(same semantics assetup-env).setup-envmust not run after checking outdev.CHANGELOG.md## Unreleased.assets/workspace/.devcontainer/CHANGELOG.mdChangelog Entry
Fixed
retryshell helper used bysetup-envso the job works whenmain's workflow expects helpers not yet ondevTesting
just test)Manual Testing Details
N/A — GitHub Actions workflow change; validation is the next green
sync-main-to-devrun onmainafter merge.Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
N/A
Refs: #459