Skip to content

Preserve actual exit codes and failure reasons in Wave case JSON reports #576

Closed

Description

@LunaStev

Evidence

Windows ARM64 cases in PR #574 report 135 failures, each with console exit 3221225477 (0xC0000005). The JSON builder cannot retain that evidence: nonzero-result branches return (0, None), and the report serializes only name/status when detail is absent.

Sources: nonzero classification, JSON serialization.

I reproduced this through the actual main() function with one injected case command that prints compiler failed to stderr and exits 7. The command correctly fails the suite, but the complete JSON test row is:

{"name": "failed", "status": "fail"}

The test command used a real Python subprocess; only discovery/compiler selection was injected. This source-audit reproduction is independent of the native compiler crash.

Acceptance

  • Failed rows retain actual and expected exit status and an actionable reason, including native crash codes without truncation.
  • Artifact-contract failures retain their reason rather than only status: fail.
  • Timeout and skip reasons continue to work; existing summary/name/status fields remain compatible.
  • Focused fake-command tests validate serialized failure rows. Keep output excerpts bounded if included.

This is about per-test failure evidence. #462 separately covers target/suite identity, and #369 covers expected-output fixtures. Do not duplicate those tasks or claim this fixes #493.

Activity

  1. added
    bug
    good first issue
    needs testing
    ci
    on Sep 11, 2026
  2. self-assigned this
    on Sep 22, 2026
  3. added a commit that references this issue on Sep 23, 2026
    509a1e4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugcigood first issueneeds testing

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions