Skip to content

Add unit tests for Windows ARM64 diagnostic probe logging #654

Closed

Description

@LunaStev

Current evidence

tools/diagnose_windows_arm64.py uses probe() to run a command through the shared process-tree helper, capture stdout/stderr, record native exit codes in decimal and hexadecimal, handle timeouts and launch failures, write a per-probe log, print the same evidence, and return a status used by the higher-level diagnostic flow.

The probe() function itself is portable and can be tested without a Windows ARM64 machine, but its success and failure paths currently have no focused unit coverage.

Scope

  • Add Python unit tests for probe() using temporary directories and small local commands.
  • Cover successful output capture, a nonzero exit code, timeout handling, and an OSError/missing-command path.
  • Assert that the generated log contains the label, command, relevant output/error text, and exit or timeout information.
  • Keep the native ARM64 PE validation, compiler matrix, and LLDB invocation in main() unchanged.

Completion criteria

  • Focused tests run on ordinary CI/development hosts with the Python standard library only.
  • Tests do not require Windows ARM64, LLVM, LLDB, or a Wave compiler build.
  • Existing diagnostic log format remains useful for the native workflow.

Activity

  1. added
    good first issue
    needs testing
    on Sep 15, 2026
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

    good first issueneeds testing

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions