Scripts: run remaining workspace test targets after a failure #1022

Closed
jmal423 wants to merge 1 commit from upstream-pr/1029 into main
jmal423 commented 2026-11-24 10:33:55 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by jmal423 on 2026-11-24T10:33:55Z.


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 #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.
<!-- greyfinch-sync:ivall/xcl:issue:5470485048 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1029). Originally posted by [jmal423](https://github.com/jmal423) on 2026-11-24T10:33:55Z. --- 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 #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-pull-request-reviewer[bot] commented 2026-11-24 10:34:12 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by copilot-pull-request-reviewer[bot] on 2026-11-24T10:34:12Z.

Review: COMMENTED


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.

<!-- greyfinch-sync:ivall/xcl:review:6037628251 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1029#pullrequestreview-6037628251). Originally posted by [copilot-pull-request-reviewer[bot]](https://github.com/apps/copilot-pull-request-reviewer) on 2026-11-24T10:34:12Z. **Review:** COMMENTED --- 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 commented 2026-11-24 12:05:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T11:26:59Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7130111754 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1029#issuecomment-7130111754). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-24T11:26:59Z. --- 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 commented 2026-11-24 12:05:48 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by AlexandreSchuelter on 2026-11-24T11:40:43Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7130405608 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/1029#issuecomment-7130405608). Originally posted by [AlexandreSchuelter](https://github.com/AlexandreSchuelter) on 2026-11-24T11:40:43Z. --- 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.
JJAutoCompare commented 2026-11-25 06:05:52 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T05:31:35Z.


Empirical test report (cc39af1f)

Hardware / environment

Windows x64 build 26200 (OS version 10.0.26200.0), AMD Family 23 Model 113 Stepping 0, Windows PowerShell 5.1.26100.9818, rustc 1.100.0 (0ef1bc386 2026-11-09), and DXC 1.9.2609.5. The run used a temporary, PATH-first cargo.cmd fixture and ran outside Invoke-ArcTest.ps1.

Commands and results

  • Checked out cc39af1f368a895f4206bdcebbcb606cd0cd61b7.
  • Ran powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\scripts\test.ps1 under three stub configurations: success, success with a skip on stderr, and build failure. Ran the same command with --skip synthetic_name --nocapture for the first-target failure case.
  • Ran the stub directly with cargo test --workspace -- --test-threads=4 as the control.
  • 17 harness checks passed, 0 failed, 0 ignored, 0 skipped.

Observed behavior

  • The script invoked cargo build --workspace before cargo test --workspace --no-fail-fast -- --test-threads=4. It forwarded the extra arguments after Cargo's -- separator.
  • After the first synthetic target failed, the stub reached both later targets. The script grouped three synthetic skip messages by reason and preserved exit code 101. The control stopped at the first target and returned 101.
  • Both successful test calls returned 0. The call with a synthetic skip on stderr printed the skip summary. A build failure returned 37 and made zero test calls.

Not tested

Real Cargo workspace builds, the GPU workspace suite, and game smoke runs were omitted. All target and skip messages came from the fixture.

AI use

Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr1029-focused.log and published.

<!-- greyfinch-sync:ivall/xcl:comment:7153859215 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1029#issuecomment-7153859215). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-25T05:31:35Z. --- ### Empirical test report (cc39af1f) **Hardware / environment** Windows x64 build 26200 (OS version 10.0.26200.0), AMD Family 23 Model 113 Stepping 0, Windows PowerShell 5.1.26100.9818, rustc 1.100.0 (0ef1bc386 2026-11-09), and DXC 1.9.2609.5. The run used a temporary, PATH-first `cargo.cmd` fixture and ran outside `Invoke-ArcTest.ps1`. **Commands and results** - Checked out `cc39af1f368a895f4206bdcebbcb606cd0cd61b7`. - Ran `powershell.exe -NoProfile -ExecutionPolicy Bypass -File .\scripts\test.ps1` under three stub configurations: success, success with a skip on stderr, and build failure. Ran the same command with `--skip synthetic_name --nocapture` for the first-target failure case. - Ran the stub directly with `cargo test --workspace -- --test-threads=4` as the control. - 17 harness checks passed, 0 failed, 0 ignored, 0 skipped. **Observed behavior** - The script invoked `cargo build --workspace` before `cargo test --workspace --no-fail-fast -- --test-threads=4`. It forwarded the extra arguments after Cargo's `--` separator. - After the first synthetic target failed, the stub reached both later targets. The script grouped three synthetic skip messages by reason and preserved exit code 101. The control stopped at the first target and returned 101. - Both successful test calls returned 0. The call with a synthetic skip on stderr printed the skip summary. A build failure returned 37 and made zero test calls. **Not tested** Real Cargo workspace builds, the GPU workspace suite, and game smoke runs were omitted. All target and skip messages came from the fixture. **AI use** Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against `pr1029-focused.log` and published.
RavenCurseBurg commented 2026-11-25 23:09:23 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by RavenCurseBurg on 2026-11-25T23:06:06Z.


Native Cargo-argument regression on cc39af1f368a895f4206bdcebbcb606cd0cd61b7. I ran scripts/test-no-fail-fast.tests.ps1 and scripts/test-native-stderr.tests.ps1 with -NoProfile -NonInteractive -ExecutionPolicy Bypass -File in Windows PowerShell 5.1 and PowerShell 7.6.9. All four runs passed.

The stand-in saw --no-fail-fast exactly once before the Cargo/libtest separator and received a spaced skip filter as one argument after it. When the test command printed a skip notice and exited 101, the runner printed the skip summary and propagated 101. Removing the flag, moving it after the separator, and dropping the child’s failure status each failed the expected assertion in both shells (6/6).

I also paired this runner with the four-case fixture from #296 at 29e66d46e5a2869901d9b65f3f26427b07673111. Both shells passed its success, build failure, test failure and missing-Cargo cases alongside the new argument check. Windows 11 26100.9711, i7-13700. This checks the wrapper with a native command stub. No real Cargo workspace or GPU run. OpenAI Codex (GPT-6) prepared and ran the fixture.

<!-- greyfinch-sync:ivall/xcl:comment:7177147210 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/1029#issuecomment-7177147210). Originally posted by [RavenCurseBurg](https://github.com/RavenCurseBurg) on 2026-11-25T23:06:06Z. --- [Native Cargo-argument regression](https://github.com/RavenCurseBurg/xcl/commit/2c3c23810b78dbd9235c8ee498eb7c80d0a42ab5) on `cc39af1f368a895f4206bdcebbcb606cd0cd61b7`. I ran `scripts/test-no-fail-fast.tests.ps1` and `scripts/test-native-stderr.tests.ps1` with `-NoProfile -NonInteractive -ExecutionPolicy Bypass -File` in Windows PowerShell 5.1 and PowerShell 7.6.9. All four runs passed. The stand-in saw `--no-fail-fast` exactly once before the Cargo/libtest separator and received a spaced skip filter as one argument after it. When the test command printed a skip notice and exited 101, the runner printed the skip summary and propagated 101. Removing the flag, moving it after the separator, and dropping the child’s failure status each failed the expected assertion in both shells (6/6). I also paired this runner with the four-case fixture from #296 at `29e66d46e5a2869901d9b65f3f26427b07673111`. Both shells passed its success, build failure, test failure and missing-Cargo cases alongside the new argument check. Windows 11 26100.9711, i7-13700. This checks the wrapper with a native command stub. No real Cargo workspace or GPU run. OpenAI Codex (GPT-6) prepared and ran the fixture.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!1022
No description provided.