Skip to content

Preserve native compiler failures in the Windows ARM64 PowerShell smoke step #505

Closed

Description

@LunaStev

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.

Failing native ARM64 job

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

  1. added
    bug
    build
    good first issue
    cross-platform
    ci
    on Sep 7, 2026
  2. AbhirupKarmakar commented on Oct 3, 2026

    @AbhirupKarmakar
    Contributor

    I think the smoke step relies on $ErrorActionPreference = "Stop" to catch failures from native wavec invocations, 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 $LASTEXITCODE immediately 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.

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

    bugbuildcicross-platformgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions