You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add unit tests for Windows ARM64 diagnostic probe logging #654
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