Skip to content

Scripts: run remaining workspace test targets after a failure - #1029

Open
jmal423 wants to merge 1 commit into
xcl-dev:mainfrom
jmal423:tests/continue-workspace-targets
Open

jmal423 wants to merge 1 commit into
xcl-dev:mainfrom
jmal423:tests/continue-workspace-targets

Conversation

@jmal423

@jmal423 jmal423 commented Nov 24, 2026 •

Copy link
Copy Markdown

While testing #872, the intermittent #718 library failure stopped the workspace run before the integration targets. This left no result for those targets even though the test binaries were independent.

What is in it

  • Pass Cargo's --no-fail-fast in scripts/test.ps1 so subsequent test binaries still run after a test failure. Cargo's exit code still reaches the caller.

Tested

  • Native Windows 11 Pro build 26200, Ryzen 7 7800X3D, RX 9070 XT driver 32.0.32029.2010, Rust 1.99.1 MSVC, debug.

  • Verified the existing native-stderr regression test under both Windows PowerShell 5.1 and PowerShell 7. Ran the old and new scripts under both shells against the same temporary Cargo package with two integration targets. The first intentionally fails. Before: exit 101, second target never ran. After: exit 101, second target ran and passed.

  • scripts/test.ps1 --nocapture on XCL with XCL_ADAPTER=9070 and XCL_REQUIRE_GPU=wave64,mesh: 727 passed, 0 failed, 41 ignored. Initial run: two debug-layer tests printed SKIPPED. Reran on the same clean head cc39af1 after installing Windows Graphics Tools: 727 passed, 0 failed, 41 ignored; zero explicit GPU SKIPPED lines. Both previously skipped debug-layer tests executed. Retail sample variables remained unset.

  • Combined this head with Scripts: cover test runner failures and missing Cargo #296 at 29e66d4 using git merge-tree (clean). Its PowerShell fixture passed all four scenarios under both Windows PowerShell 5.1 and PowerShell 7: successful run, build failure, test failure and missing Cargo. That fixture checks call order and exit codes; the real two-target Cargo case above checks continuation.

Regression run

  • Script-only change. No runtime files changed.

Not tested

  • Retail game and sample-dependent checks (sample variables unset); release build.

AI use

  • OpenAI Codex (GPT-6) made the change, ran the tests and drafted this PR.

Copilot AI balanced review requested due to automatic review settings November 24, 2026 10:33

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@DavidM1911

Copy link
Copy Markdown
Contributor

Independent check.

cargo test --workspace --no-fail-fast -- --test-threads=4: --no-fail-fast is a cargo flag and is correctly placed before -- (after -- it would go to libtest, which does not accept it). Behaviour confirmed locally: on main, a single failing target no longer aborts the remaining workspace test binaries. One-line change, no test needed.

AI use: review by Devin (Cognition, SWE-2); no code changes.

@AlexandreSchuelter

Copy link
Copy Markdown

A real case for this change: on RDNA2, where main has a known xcl --lib failure (the packed-mip test fixed by #470 / #1028), scripts/test.ps1 on main stops after the lib target and never runs the integration tests.

Tested

  • AMD Radeon RX 6900 XT (Navi 21), driver 32.0.21045.29003; Ryzen 7 5800X3D; Windows NT 10.0.26300; Windows PowerShell 5.1
  • Rust 1.100.0 stable-x86_64-pc-windows-msvc, debug; XCL_NETWORK=0, XCL_REQUIRE_GPU=wave64
  • scripts/test.ps1, sums of every test result: line:
Tree Exit Test targets run Passed Failed Ignored
main 47efa2e 101 1 (xcl --lib only) 695 3 21
this PR (cc39af1) merged onto 47efa2e 101 all 738 3 41
  • Same 3 lib failures on both trees; with this PR the 43 tests in the later targets run and pass, and the script still exits 101 and ends with error: 1 target failed: -p xcl --lib.

Not tested

  • PowerShell 7, release build, sample-data tests (XCL_SAMPLE_* unset)

AI use: Claude Code (Claude Opus 5.5) ran the script on both trees and wrote this report; the runs are real, on the hardware above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

off-goal Does not bear on the current goal (world loading); waits until it is reached

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants