Skip to content

[CHORE] sync-main-to-dev failed after push to main (release 0.3.1) #459

Closed

Description

@c-vigo

Chore Type

CI / Build change

Description

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).

Changelog category

Fixed (once the workflow is green again).

Additional context

Activity

  1. added
    chore
    priority:blocking
    area:ci
    on Mar 27, 2026
  2. self-assigned this
    on Mar 27, 2026
  3. c-vigo commented on Mar 27, 2026

    @c-vigo
    ContributorAuthor

    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)
    • check job: succeeded (used setup-env from main)
    • sync job: failed at step 5 with:
      • Warning: 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']
      • Error: retry: command not found (exit 127)

    Key commit

    3aa4f4c fix(ci): centralize release retry helper via setup-env (Refs: #365):

    • Added install-python input to .github/actions/setup-env/action.yml
    • Added the retry() shell helper function (exported via BASH_ENV)
    • This commit reached main via the release 0.3.1 PR (chore: release 0.3.1 #342)
    • 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:

    1. 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.
    2. Inline the retry helper directly in sync-main-to-dev.yml so it does not depend on the checked-out setup-env.
    3. 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.

  4. added a commit that references this issue on Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:cichorepriority:blocking

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions