Skip to content

[release] Guard the preview workflow version assertions in PR CI #3281

Closed

Description

@Xuepoo

Priority: P2 | Area: release | Labels: fix,P2,area:release | Milestone: v0.1.0 | RFC: none | Task: CTX-1916

The #3275/#3278 repairs fixed the newline-anchored version assertions in release.yml and preview.yml, but the static guard only covers release.yml: scripts/check-release-windows-verify.sh parses the release workflow, so a fresh newline-anchored pattern could reappear in .github/workflows/preview.yml and CI would stay green.

Scope: extend the static gate (or add a sibling check) so every version/channel assertion in both workflows is proven to tolerate the .Trim()-ed bitty --version output, and fail closed when an assertion cannot be parsed. Fixtures must cover the preview file. Keep the check offline and free of host paths.

Filed while reviewing #3278, which had to stop claiming Closes #3276 because the guard-coverage half is not delivered by that PR.

Activity

  1. added this to the v0.1.0 milestone on Nov 20, 2026
  2. added
    fix
    P2
    area:release
    on Nov 20, 2026
  3. Xuepoo commented on Nov 20, 2026

    @Xuepoo
    ContributorAuthor

    Two hardening items deferred from the #3277/#3278 review rounds, to pick up together with the preview-pattern guard coverage:

    1. Derived-pattern blind spot (#3277 residual, Minor). scripts/check-release-windows-verify.sh models single-line literal assignments. A pattern derived from another assertion variable — $final = $pattern + "(?:\r\n|\n)", or .Replace(...) — currently escapes the scan and false-passes. No such construct exists in todays release.yml/preview.yml (all four sites are one-line $pattern = …\Abitty … assignments), so it fails closed only by accident. Harden by failing when an operand definition references another assertion variable instead of continuing.

    2. Fragment-only message pin (#3278 residual, Minor). scripts/tests/check-release-smoke-fail-closed.test.sh:161-162 pins the mismatch message by fragment, so a revert that interpolates unresolved $shim/$appCom (instead of the resolved paths) still passes. Pin the resolved-path interpolation specifically.

    Also carry the reviewer-verified evidence boundary: the ~\-expansion proof for the Scoop assertion ran on Linux PowerShell 7, so the joint which/prefix output pair, current-junction normalization, and Scoop version behaviour stay unproven until the Windows leg executes.

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

    P2area:releasefix

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions