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

Open
github-bot wants to merge 1 commit from github-bot/gh-1029 into main AGit
Owner

@⁠jmal423 on GitHub · 2026-11-24 10:33 UTC · original
jmal423:tests/continue-workspace-targets → main · +1 −1 · 1 files · 1 commits · open

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.
**@⁠jmal423** on GitHub · 2026-11-24 10:33 UTC · [original](https://github.com/xcl-dev/xcl/pull/1029) `jmal423:tests/continue-workspace-targets` → `main` · +1 −1 · 1 files · 1 commits · open 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:41:06 +00:00
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-24 11:26 UTC · original

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.

**@⁠DavidM1911** on GitHub · 2026-11-24 11:26 UTC · [original](https://github.com/xcl-dev/xcl/pull/1029#issuecomment-7130111754) 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.
Author
Owner

@⁠AlexandreSchuelter on GitHub · 2026-11-24 11:40 UTC · original

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.

**@⁠AlexandreSchuelter** on GitHub · 2026-11-24 11:40 UTC · [original](https://github.com/xcl-dev/xcl/pull/1029#issuecomment-7130405608) 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.
Author
Owner

@⁠JJAutoCompare on GitHub · 2026-11-25 05:31 UTC · original

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.

**@⁠JJAutoCompare** on GitHub · 2026-11-25 05:31 UTC · [original](https://github.com/xcl-dev/xcl/pull/1029#issuecomment-7153859215) ### 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.
Author
Owner

@⁠RavenCurseBurg on GitHub · 2026-11-25 23:06 UTC · original · edited 2026-11-25 23:14 UTC

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.

**@⁠RavenCurseBurg** on GitHub · 2026-11-25 23:06 UTC · [original](https://github.com/xcl-dev/xcl/pull/1029#issuecomment-7177147210) · edited 2026-11-25 23:14 UTC [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.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1029/head:github-bot/gh-1029'
git switch 'github-bot/gh-1029'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1029'
git switch 'github-bot/gh-1029'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1029'
git switch 'github-bot/gh-1029'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1029'
git switch 'main'
git merge --squash 'github-bot/gh-1029'
git switch 'main'
git merge --ff-only 'github-bot/gh-1029'
git switch 'main'
git merge 'github-bot/gh-1029'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.