Skip to content

fix: stabilize linker outputs, test cleanup, and Darwin pipes - #574

Merged
LunaStev merged 6 commits into
wavefnd:masterfrom
LunaStev:fix/ci-runtime-stability
Sep 11, 2026
Merged

LunaStev merged 6 commits into
wavefnd:masterfrom
LunaStev:fix/ci-runtime-stability

Conversation

@LunaStev

Copy link
Copy Markdown
Member

Summary

Fix linker argument handling and companion output publication, preserve AArch64 assembly immediates in test contracts, clean up generated test processes, and collect both Darwin pipe return descriptors. The fixes are separated into issue-specific commits.

Motivation

For #493, add finer module-construction tracing, a minimal no-import input, explicit GNU/MSVC IR and object probes, and bounded native LLDB stack collection with release symbols. The native Windows ARM64 access violation still requires a runner trace before selecting a root-cause fix; this PR does not close that issue.

Target and compatibility impact

Entry options follow the selected native, compiler-driver, MSVC, or WebAssembly linker dialect. MSVC images and companion outputs retain their final basenames. Test cleanup uses POSIX process groups or Windows Job Objects. Darwin ARM64 and amd64 pipe wrappers return zero and store both descriptors on success, or return a negative error without publishing a pair.

The existing macOS streaming workload remains enabled and is also exercised by the Rust regression on either native macOS architecture. No language syntax changes are introduced.

Validation

Passed locally on Linux:

  • cargo fmt --all --check
  • ./tools/check_std_policy.sh
  • cargo clippy --locked --workspace --all-targets --jobs 2 -- -D warnings
  • RUSTDOCFLAGS="-D warnings" cargo doc --locked --workspace --no-deps --jobs 2
  • cargo build --locked --release --jobs 2
  • cargo test --locked --workspace --all-targets --jobs 2: 191 passed.
  • python3 -m unittest tools.test_case_manifest tools.test_test_contracts tools.test_run_tests tools.test_process_tree: 32 passed; one native Windows test excluded on Linux.
  • python3 tools/check_wave_corpus.py --wavec target/release/wavec --run-std-examples: 276 corpus checks and 26 std example executions passed.
  • Python syntax checks, workflow YAML parsing, and git diff --check.

Targeted regressions reproduced the entry, MSVC companion, assembly-immediate, descendant-cleanup, and Darwin return-register defects before their fixes. Both Darwin targets emit Mach-O objects. ARM64 GNU/MSVC IR and object probes pass when cross compiled on Linux. Native macOS and Windows verification is pending CI.

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/.

Resolve wavefnd#572 by keeping the entry symbol semantic until linker selection. Cover MSVC, ELF, Darwin, WebAssembly and explicit compiler/linker paths, and verify both MSVC COFF targets link.

Signed-off-by: LunaStev <[email protected]>
Resolve wavefnd#536 by staging named DLL, import library and debug outputs together. Honor explicit companion paths, preserve embedded DLL/PDB names, and restore previous artifacts on publication failure. Cover exported DLL consumption for amd64 and ARM64, failed replacement, and native ARM64 CI execution.

Signed-off-by: LunaStev <[email protected]>
Resolve wavefnd#563 by selecting comment syntax from the effective compiler target. Cover AArch64 ELF, COFF and Mach-O immediates and comments while retaining x86, RISC-V and LoongArch literal matching.

Signed-off-by: LunaStev <[email protected]>
Address wavefnd#507 by owning each test in a POSIX session or Windows Job Object and retaining timeout diagnostics. Exercise descendant cleanup through the corpus and cases runners, including native Windows CI.

Signed-off-by: LunaStev <[email protected]>
Address wavefnd#570 by capturing x0/x1 on ARM64 and rax/rdx on amd64, publishing the descriptor pair only on success. Check return registers across both Darwin backends and execute the guarded kqueue streaming regression on native macOS.

Signed-off-by: LunaStev <[email protected]>
Prepare wavefnd#493 diagnosis with no-import and existing failure inputs, separate GNU/MSVC IR/object probes, bounded LLDB backtraces, and retained release symbols. Add finer module-construction trace points without changing lowering behavior; the native access violation still requires a runner trace before choosing a fix.

Signed-off-by: LunaStev <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment