Skip to content

ci: pin rust2-surface-check success with an explicit exit 0 - #1565

Merged
caomengxuan666 merged 1 commit into
mainfrom
ci/surface-check-exit-0
Nov 11, 2026
Merged

caomengxuan666 merged 1 commit into
mainfrom
ci/surface-check-exit-0

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Cherry-pick of the surface-check exit fix from the closed #1554 branch (build/rust2-ci-packaging @ 637c293) — it never reached main because #1554 was closed, and today's #1564 merge run re-manifested the failure: the surface check printed "RUST2 SURFACE CHECK: consistent — x64 0x8664 + arm64 0xAA64, rust2=ON, commands=true;false, toolchain=1.99.1" with every assertion green, then the step exited 1 anyway.

Cause: pwsh steps propagate the LAST native command's $LASTEXITCODE; the probe helpers (rustc queries, file tests) leave a stale 1 behind after all assertions pass. The fix pins the success path with an explicit exit 0.

The check's substance was green on the last run (PE machine headers
match per arch, rust2=ON, true/false behavior correct) but the step
still exited 1: pwsh steps propagate the LAST native command's
$LASTEXITCODE, and the probe helpers leave a stale 1 behind after all
assertions pass. Pin the success path.
@caomengxuan666
caomengxuan666 merged commit 504e711 into main Nov 11, 2026
10 checks passed
@caomengxuan666
caomengxuan666 deleted the ci/surface-check-exit-0 branch November 18, 2026 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant