Description
Problem and evidence
The native Windows ARM64 smoke step invokes wavec build and immediately reads test1.o, without checking the native command exit code. In #502 the visible failure is consequently a ReadAllBytes exception for a missing object, and the compiler exit status is absent from the log.
Relevant code at e204bbebbbede0086fbb670d43a65b9cf38f0231: .github/workflows/rust.yml:933-950, particularly the & $compiler invocations and object read. $ErrorActionPreference = "Stop" does not provide the explicit native-command status handling this step needs.
The log proves the object is absent; it does not record enough information to assign a compiler exit code or root cause to this particular command. Native access violations are already tracked in #493 and should stay there.
Scope
Capture/check the native exit code immediately after each compiler invocation in this smoke step, including version/default-target commands, and stop with the command/phase and exit status before attempting artifact inspection. Keep compiler stdout/stderr visible. When compilation succeeds, still validate artifact existence and ARM64 COFF/PE machine types.
Acceptance
- A fake native command that exits nonzero with no output causes an actionable failure before
ReadAllBytes. - A zero-exit command that produces no object reports a distinct missing-artifact failure.
- Successful compiler and ARM64 artifact checks retain the current behavior.
- Validation uses PowerShell; a tiny fake native process is sufficient for the failure paths and requires no LLVM build.
This is a good first issue for CI error reporting. It must not be presented as fixing the underlying compiler crash in #493.
Activity
AbhirupKarmakar commentedon Oct 3, 2026
I think the smoke step relies on
$ErrorActionPreference = "Stop"to catch failures from nativewavecinvocations, but PowerShell does not reliably turn a nonzero native exit into a terminating error. The script then reads the expected object and reports a misleading missing-file error, losing the compiler exit code. I would capture/check$LASTEXITCODEimmediately after each native command and stop with the phase and exit status before inspecting artifacts, while retaining the existing artifact checks. I’d like to take this issue if that approach fits your expectations.