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
[release] Guard the preview workflow version assertions in PR CI #3281
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.
Two hardening items deferred from the #3277/#3278 review rounds, to pick up together with the preview-pattern guard coverage:
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.
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.
Activity
Xuepoo commentedon Nov 20, 2026
Two hardening items deferred from the
#3277/#3278review rounds, to pick up together with the preview-pattern guard coverage:Derived-pattern blind spot (
#3277residual, Minor).scripts/check-release-windows-verify.shmodels 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 todaysrelease.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.Fragment-only message pin (
#3278residual, Minor).scripts/tests/check-release-smoke-fail-closed.test.sh:161-162pins 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 jointwhich/prefixoutput pair,current-junction normalization, and Scoop version behaviour stay unproven until the Windows leg executes.