Skip to content

fix(ci): decouple sync-main-to-dev sync job from dev setup-env - #469

Merged
c-vigo merged 2 commits into
devfrom
bugfix/459-sync-main-to-dev-ci
Mar 27, 2026
Merged

c-vigo merged 2 commits into
devfrom
bugfix/459-sync-main-to-dev-ci

Conversation

@c-vigo

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

Copy link
Copy Markdown
Contributor

Description

Fixes the sync-main-to-dev workflow failing on the sync job when main has a newer setup-env (e.g. install-python and the retry helper) than dev: that job checks out dev, so it was loading an older composite action and then running retry without it defined (exit 127). The sync job no longer calls ./.github/actions/setup-env; it exports the same retry shell helper inline (aligned with setup-env) and documents the chicken-and-egg constraint. Root and workspace template changelogs include the #459 entry.

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/workflows/sync-main-to-dev.yml
    • Remove setup-env from the sync job (post-ref: dev checkout).
    • Add Export retry helper step: write retry to $RUNNER_TEMP/sync-main-to-dev-retry.sh, set BASH_ENV (same semantics as setup-env).
    • Add a short comment explaining why setup-env must not run after checking out dev.
  • CHANGELOG.md
  • assets/workspace/.devcontainer/CHANGELOG.md
    • Mirror the same Fixed entry for downstream workspace template parity.

Changelog Entry

Fixed

  • sync-main-to-dev sync job no longer depends on dev's setup-env (#459)
    • Inline the same retry shell helper used by setup-env so the job works when main's workflow expects helpers not yet on dev

Testing

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

Manual Testing Details

N/A — GitHub Actions workflow change; validation is the next green sync-main-to-dev run on main after merge.

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

N/A

Refs: #459

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 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-env usage from the sync job and inline-export the retry helper via BASH_ENV.
  • Add a workflow comment documenting the “checked out dev vs workflow on main” 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.

Comment thread .github/workflows/sync-main-to-dev.yml Resolved
@c-vigo
c-vigo enabled auto-merge March 27, 2026 12:50
@c-vigo
c-vigo merged commit 14e8bc7 into dev Mar 27, 2026
11 checks passed
@c-vigo
c-vigo deleted the bugfix/459-sync-main-to-dev-ci branch March 27, 2026 12:55
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