Skip to content

fix(ci): repair MSVC checks and preserve case execution reports - #698

Merged
LunaStev merged 13 commits into
wavefnd:masterfrom
LunaStev:fix/ci-validation-and-reporting
Sep 23, 2026
Merged

LunaStev merged 13 commits into
wavefnd:masterfrom
LunaStev:fix/ci-validation-and-reporting

Conversation

@LunaStev

@LunaStev LunaStev commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

Summary

Repair Windows MSVC CI checks and preserve actionable case results when builds, probes, or programs fail. The first ten commits address one issue each in dependency order; three follow-up commits repair failures exposed by the Windows CI run.

  • Match the response-file fixture to the dynamic MSVC CRT and remove the retired GNU target from ARM64 diagnostics.
  • Propagate required diagnostic failures, retain reports after probe timeouts, and run independent Windows checks when their prerequisites succeeded.
  • Reject failed or empty runtime case selection before execution.
  • Record target and suite identity, exact exit codes, bounded output, and failure phases in case reports. Add separate QEMU and WebAssembly runtime reports so successful compilation cannot stand in for execution results.
  • Normalize platform check names and ordering across build, cases, and release workflows.

Motivation

The existing checks could fail for fixture configuration reasons, hide later independent evidence, or produce reports that did not distinguish compilation from runtime success. Each issue is addressed in its own commit:

  1. Fixes Match the response-file C fixture CRT to the dynamic MSVC link mode #693
  2. Fixes Stop probing retired Windows GNU targets in the native ARM64 diagnostic job #694
  3. Fixes Propagate required tool-probe failures from native ARM64 diagnostics #579
  4. Fixes Write the native MSVC result report when a prerequisite probe times out #671
  5. Fixes Preserve independent Windows MSVC checks after native audit failures #695
  6. Fixes Fail QEMU and WebAssembly case steps when runtime-source selection fails #696
  7. Fixes Include target and suite identity in Wave case JSON reports #462
  8. Fixes Preserve actual exit codes and failure reasons in Wave case JSON reports #576
  9. Fixes Include QEMU and WebAssembly execution outcomes in uploaded case reports #697
  10. Fixes Normalize CI job names and platform ordering across build, cases, and release workflows #692

Target and compatibility impact

Changes affect CI workflows and Python validation/reporting tools. Compiler language behavior and target ABIs are unchanged. Case JSON reports retain summary and test results while adding documented selection, phase, and diagnostic fields. QEMU and WebAssembly jobs upload separate compile and runtime reports.

Display names now follow a consistent operation/OS/architecture/mode convention; job IDs and artifact/toolchain spellings remain stable. Repository protection and rulesets were checked: no required status-check contexts currently need renaming.

Validation

  • python3 -m unittest tools.test_check_msvc_native tools.test_diagnose_windows_arm64 tools.test_case_execution tools.test_run_tests tools.test_process_tree tools.test_runtime_selection tools.test_runtime_cases tools.test_case_manifest tools.test_test_contracts: 74 tests, 73 passed and one Windows-only test skipped on Linux.
  • Python syntax checks passed for the changed tools and test modules.
  • actionlint v1.7.12 passed for the three changed workflows, with only its unknown-label diagnostic for the existing windows-11-vs2026-arm runner suppressed; optional shellcheck and pyflakes integrations were disabled.
  • Bash syntax checks passed for workflow scripts; workflow comparison confirmed that the final naming/reordering commit preserves job execution configuration.
  • git diff --check passed.

Actual Windows MSVC, QEMU, and WebAssembly execution remains for GitHub CI. No full Cargo build or Windows VM validation was repeated for these Python/workflow changes.

Windows CI follow-up

The first CI run exposed three additional failures in the existing acceptance paths. The follow-up commits canonicalize temporary fixture paths before comparing resolved DLL providers (Windows may expose an 8.3 RUNNER~1 alias), distinguish nested delayed-import symbol records from DLL records in llvm-readobj output, and give the MSVC codegen fixtures their own standard-library installation. Missing, duplicate, and truncated import records still fail inspection.

Validation for the follow-up:

  • 32 Python tests passed: python3 -m unittest tools.test_windows_package tools.test_msvc_package_tools tools.test_run_tests tools.test_check_msvc_native tools.test_diagnose_windows_arm64.
  • The previously failing msvc_native_fixtures_compile_and_arm64_hfas_match_clang test passed with cargo test --locked --no-default-features --features llvm-target-core64 --jobs 2 --test codegen_regressions msvc_native_fixtures_compile_and_arm64_hfas_match_clang -- --exact (local LLVM 21.1.8 prefix configured).
  • Constructed real amd64 and ARM64 PE files with delayed DLL imports using Clang/LLD 21.1.8. The original inspector reproduced the CI error; the revised inspector returned the expected dependency for both architectures.
  • Python syntax checks, cargo fmt --all --check, and git diff --check passed.

The updated native Windows CI run remains the end-to-end validation. No separate issues were created for these follow-up fixes.

ARM64X runtime follow-up

The subsequent run passed every check except Windows ARM64 package acceptance. Its report shows a successful detached build followed by rejection of the installed vcruntime140.dll during import inspection. LLVM emits an additional HybridObject view for ARM64X binaries; the inspector now validates that wrapper and its import records while resolving dependencies from the native PE view. ARM64EC-only imports do not become native ARM64 dependencies. Existing PE machine checks and malformed-import rejection remain in force.

  • Reproduced the failure with a real ARM64X DLL built using LLVM 21.1.8; the revised inspector succeeds.
  • 23 tests passed: python3 -m unittest tools.test_windows_package tools.test_msvc_package_tools tools.test_run_tests, including hybrid regular/delayed imports and malformed wrappers.
  • Inspected all eight ARM64 executables from the failed CI artifact successfully using the updated parser and LLVM 21.1.8.
  • Python syntax and diff whitespace checks passed. Native Windows package execution remains for the new CI run.

Checklist

  • Commits include a DCO Signed-off-by line.
  • Tests cover new behavior or the PR explains why no test is needed.
  • User-facing changes include documentation or diagnostics updates.
  • The change preserves the license boundary between the compiler and std/.

@LunaStev
LunaStev merged commit 509a1e4 into wavefnd:master Sep 23, 2026
25 checks passed
@LunaStev LunaStev mentioned this pull request Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment