You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[CHORE] sync-main-to-dev failed after push to main (release 0.3.1) #459
area:ciCI/CD, GitHub Actions, workflowschoreGeneral tasks (e.g. update dependencies, contact a manufacturer, read a paper)priority:blockingBlocks other work or a release
The sync-main-to-dev.yml workflow failed when main was updated by merge of release 0.3.1 (PR #342).
Acceptance criteria
sync-main-to-dev completes successfully for the same class of trigger (push to main that should open/update the sync PR), or any intentional behaviour change is tracked separately.
Implementation notes
(None.)
Related issues
(None found for this run id.)
Priority
Critical (selected: blocking — dev may not receive main until this is resolved).
RCA: sync-main-to-dev failed after push to main (release 0.3.1)
Summary
The sync-main-to-dev workflow failed at the "Re-check if dev is still behind main" step (sync job, step 5) with retry: command not found (exit 127). Root cause is a version skew between main and dev in the setup-env composite action.
Evidence
Failing run (23611588823)
Trigger: push to main (release 0.3.1 merge, commit c639954)
Was NOT on dev before the sync (confirmed: git merge-base --is-ancestor 3aa4f4c 6b611c1 returns NO, where 6b611c1 is the dev-side parent of the manual sync merge 458d01b)
Version skew mechanism
The sync-main-to-dev.yml workflow file on main references features that only exist in main's setup-env:
check job: default checkout → main code → setup-env from main → has install-python and retry → works
sync job: explicit ref: dev checkout → setup-env from dev → dev's setup-env lacks install-python and retry → retry: command not found → exit 127
This is a chicken-and-egg problem: the workflow that syncs main to dev depends on features that only exist on main and have not been synced to dev yet.
Why 0.3.0 succeeded (run 23060324149)
At that time, the sync workflow did not use retry or install-python. Those were added during the 0.3.1 cycle on a bugfix branch that went directly to main, never passing through dev.
Fix direction
The sync job should not depend on setup-env features that might not exist on dev. Options:
Remove setup-env from the sync job — it only needs git and gh (both pre-installed on ubuntu-22.04). Inline a minimal retry function or remove retry wrappers for simple git/gh commands.
Inline the retry helper directly in sync-main-to-dev.yml so it does not depend on the checked-out setup-env.
Run setup-env from main before checking out dev (add a second checkout step).
Option 1 is the cleanest since the sync job genuinely does not need Python, uv, just, or other tools from setup-env.
area:ciCI/CD, GitHub Actions, workflowschoreGeneral tasks (e.g. update dependencies, contact a manufacturer, read a paper)priority:blockingBlocks other work or a release
Activity
chore: sync main into dev after 0.3.1 release (#458)
c-vigo commentedon Mar 27, 2026
RCA: sync-main-to-dev failed after push to main (release 0.3.1)
Summary
The
sync-main-to-devworkflow failed at the "Re-check if dev is still behind main" step (sync job, step 5) withretry: command not found(exit 127). Root cause is a version skew betweenmainanddevin thesetup-envcomposite action.Evidence
Failing run (23611588823)
main(release 0.3.1 merge, commitc639954)setup-envfrommain)Unexpected input(s) 'install-python', valid inputs are ['sync-dependencies', 'install-podman', 'install-node', 'node-version', 'install-devcontainer-cli', 'install-hadolint', 'install-just', 'install-taplo', 'install-bats']retry: command not found(exit 127)Key commit
3aa4f4cfix(ci): centralize release retry helper via setup-env (Refs: #365):install-pythoninput to.github/actions/setup-env/action.ymlretry()shell helper function (exported viaBASH_ENV)mainvia the release 0.3.1 PR (chore: release 0.3.1 #342)devbefore the sync (confirmed:git merge-base --is-ancestor 3aa4f4c 6b611c1returns NO, where6b611c1is the dev-side parent of the manual sync merge458d01b)Version skew mechanism
The
sync-main-to-dev.ymlworkflow file onmainreferences features that only exist inmain'ssetup-env:maincode →setup-envfrommain→ hasinstall-pythonandretry→ worksref: devcheckout →setup-envfromdev→dev'ssetup-envlacksinstall-pythonandretry→retry: command not found→ exit 127This is a chicken-and-egg problem: the workflow that syncs
maintodevdepends on features that only exist onmainand have not been synced todevyet.Why 0.3.0 succeeded (run 23060324149)
At that time, the sync workflow did not use
retryorinstall-python. Those were added during the 0.3.1 cycle on a bugfix branch that went directly tomain, never passing throughdev.Fix direction
The
syncjob should not depend onsetup-envfeatures that might not exist ondev. Options:setup-envfrom thesyncjob — it only needsgitandgh(both pre-installed onubuntu-22.04). Inline a minimal retry function or remove retry wrappers for simple git/gh commands.retryhelper directly insync-main-to-dev.ymlso it does not depend on the checked-outsetup-env.setup-envfrommainbefore checking outdev(add a second checkout step).Option 1 is the cleanest since the sync job genuinely does not need Python, uv, just, or other tools from
setup-env.fix(ci): decouple sync-main-to-dev sync job from dev setup-env
ci(ci): clarify inline retry vs setup-env BASH_ENV
fix(ci): decouple sync-main-to-dev sync job from dev setup-env (#469)
ci: downstream promote-release, GHCR cleanup, and RC prune (#472)
chore: release 0.3.2 (#486)