Skip to content

CLI tag publication tests inherit the runner ref and reject valid fixtures #3970

Closed

Description

@yannickmonney

Observed failure

The actual tag-bound CLI publication for v0.5.64 at ebf4546fb1455a236c1046f3d73ef78c2e1d0109 fails unit tests, although that exact source passed its release-candidate CLI validation.

The Linux publication log records 1,465 pass / 19 skip / 3 fail. All three failures are release artifact identity > CLI release tag ... is validated before the build in tools/cli/src/lib/compose/services/compose-parity.test.ts:1069, for v0.5.42, 0.5.42 and v0.5.42-rc.1. Each expected exit 0 and received 1. The candidate actually ran the same tests with Bun 1.4.2 and passed them; this is not a cached-pass assertion.

Root cause

The real workflow correctly rejects a dispatch tag that disagrees with RELEASE_TAG, and checks the resolved tag commit against GITHUB_SHA. The synthetic tag-validation cases override RELEASE_TAG and TEST_TAG_SOURCE but inherit the outer runner’s GITHUB_REF/GITHUB_SHA through their shell helper. During publication the inherited ref is refs/tags/v0.5.64, so the synthetic v0.5.42 cases hit the correct mismatch rejection. The candidate event used a branch ref, which does not hit this comparison.

Acceptance

Make the fixture’s complete GitHub event/ref/source identity explicit and independent of its caller. Keep the real exact-tag/exact-source publication guards unchanged. Prove the actual extracted shell under synthetic tag and branch environments, retaining positive valid-tag cases and negative mismatched-tag/resolved-source controls. Run the affected suite with an outer release-tag environment as well as normal context; demonstrate that the old fixture fails and the correction passes. Sweep similar release fixtures for the same inherited-event defect without unrelated rewrites. Use ordinary checks and a focused PR. No production request, real release dispatch, credential change or destructive test is needed.

Release handling

The image Release workflow completed, but this version’s full publication is incomplete until all required CLI artifacts exist. Keep v0.5.64 and its failure evidence intact; do not move its tag or use a main/branch dispatch as tag-bound deployment proof. Per .github/RELEASING.md, a deterministic defect is fixed on main and a new validated candidate/version explicitly replaces the failed publication. Root owns that coordinated decision and the existing Ops deployment path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions