Scripts: require locked dependencies in workspace tests #2370

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

@⁠fladit123 on GitHub · 2026-11-25 16:54 UTC · original
fladit123:scripts/locked-workspace-tests → main · +15 −5 · 3 files · 1 commits · draft

scripts/test.ps1 now requires Cargo to use the checked-in Cargo.lock for workspace builds and tests. Cargo fails if the lockfile is missing or needs to be updated.

What is in it

  • Add --locked to both Cargo invocations in scripts/test.ps1.
  • Extend the synthetic Cargo fixture in scripts/test-native-stderr.tests.ps1 to verify both command lines and forwarded test arguments.
  • Document the lockfile requirement in README.md.

Tested

  • HEAD: 33c9081bebc486510711e986adbc891ae30b6113.
  • Tested tree: 01ff2bd414a800a89072450fa16d9d85b60c282a, identical to the committed tree.
  • Base: c160d86ef2efe3a07e4dfb473e4fa72eafb413c0.
  • Windows 11 build 26300.10075, Intel Core i5-12400F, NVIDIA RTX 4060 8 GB (driver 610.88), Rust 1.100.0 MSVC, DXC 1.8.2502.11, debug.

pwsh -NoProfile -File scripts/test-native-stderr.tests.ps1 on PowerShell 7.6.9:

  • Candidate: PASS.
  • Original runner: FAIL, as expected.
  • Removing either --locked flag individually: FAIL, as expected.
  • Separate synthetic runs confirmed build exit 17 without starting tests, and test exit 101.

./scripts/test.ps1 --show-output:

  • Workspace build: PASS.
  • Workspace tests, four threads: 858 passed, 0 failed, 42 ignored.
  • Bundled synthetic title: PASS.
  • Cargo offline, sample variables unset.
  • Cargo.lock unchanged.

Explicit GPU skips included in the passed count:

  • gpu_geometry_wave32_prefix_count_over_a_mask: no wave64.
  • gpu_wave32_program_in_wave64_hardware: no wave64.
  • heap_window_out_of_memory_falls_back_to_the_switch_form: heap windows unavailable.

Merge compatibility with main 50a9fdef81cb796b8756a31defb0648301d002ce verified using git merge-tree --write-tree, exit 0. The merged tree itself was not tested.

Not tested

  • Windows PowerShell 5.1: script execution blocked by the effective Restricted execution policy.
  • Release builds, AMD and Intel GPUs, macOS and Linux.
  • External game samples and retail smoke runs. No runtime code changed.

AI use

  • OpenAI Codex, based on GPT-6 (exact model variant unavailable), implemented the changes, ran local validation and drafted the description.
  • ChatGPT (GPT-6.2) assisted with task selection, patch review and reporting.
**@⁠fladit123** on GitHub · 2026-11-25 16:54 UTC · [original](https://github.com/xcl-dev/xcl/pull/2370) `fladit123:scripts/locked-workspace-tests` → `main` · +15 −5 · 3 files · 1 commits · draft `scripts/test.ps1` now requires Cargo to use the checked-in `Cargo.lock` for workspace builds and tests. Cargo fails if the lockfile is missing or needs to be updated. **What is in it** - Add `--locked` to both Cargo invocations in `scripts/test.ps1`. - Extend the synthetic Cargo fixture in `scripts/test-native-stderr.tests.ps1` to verify both command lines and forwarded test arguments. - Document the lockfile requirement in `README.md`. **Tested** - HEAD: `33c9081bebc486510711e986adbc891ae30b6113`. - Tested tree: `01ff2bd414a800a89072450fa16d9d85b60c282a`, identical to the committed tree. - Base: `c160d86ef2efe3a07e4dfb473e4fa72eafb413c0`. - Windows 11 build 26300.10075, Intel Core i5-12400F, NVIDIA RTX 4060 8 GB (driver 610.88), Rust 1.100.0 MSVC, DXC 1.8.2502.11, debug. `pwsh -NoProfile -File scripts/test-native-stderr.tests.ps1` on PowerShell 7.6.9: - Candidate: PASS. - Original runner: FAIL, as expected. - Removing either `--locked` flag individually: FAIL, as expected. - Separate synthetic runs confirmed build exit 17 without starting tests, and test exit 101. `./scripts/test.ps1 --show-output`: - Workspace build: PASS. - Workspace tests, four threads: **858 passed, 0 failed, 42 ignored**. - Bundled synthetic title: PASS. - Cargo offline, sample variables unset. - `Cargo.lock` unchanged. Explicit GPU skips included in the passed count: - `gpu_geometry_wave32_prefix_count_over_a_mask`: no wave64. - `gpu_wave32_program_in_wave64_hardware`: no wave64. - `heap_window_out_of_memory_falls_back_to_the_switch_form`: heap windows unavailable. Merge compatibility with main `50a9fdef81cb796b8756a31defb0648301d002ce` verified using `git merge-tree --write-tree`, exit 0. The merged tree itself was not tested. **Not tested** - Windows PowerShell 5.1: script execution blocked by the effective Restricted execution policy. - Release builds, AMD and Intel GPUs, macOS and Linux. - External game samples and retail smoke runs. No runtime code changed. **AI use** - OpenAI Codex, based on GPT-6 (exact model variant unavailable), implemented the changes, ran local validation and drafted the description. - ChatGPT (GPT-6.2) assisted with task selection, patch review and reporting.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:29:12 +00:00
Author
Owner

@⁠throny on GitHub · 2026-11-25 17:58 UTC · original

Two contributors checked independently and found that #2295 solves the same problem (for #2214) in a different way: #1607, group D104. You may want to compare them with the other author and agree on one, or say in the PR why both are needed.

This is a hint from the community triage in #1607, not a maintainer decision.

AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.

**@⁠throny** on GitHub · 2026-11-25 17:58 UTC · [original](https://github.com/xcl-dev/xcl/pull/2370#issuecomment-7170264355) <!-- xcl-1607-hint:D104 --> Two contributors checked independently and found that #2295 solves the same problem (for #2214) in a different way: #1607, group D104. You may want to compare them with the other author and agree on one, or say in the PR why both are needed. This is a hint from the community triage in #1607, not a maintainer decision. AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-25 18:50 UTC · original

Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)

Thanks!

**@⁠DavidM1911** on GitHub · 2026-11-25 18:50 UTC · [original](https://github.com/xcl-dev/xcl/pull/2370#issuecomment-7171472174) Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.) Thanks!
Author
Owner

@⁠fladit123 on GitHub · 2026-11-25 19:27 UTC · original

Thanks @⁠throny for identifying the overlap, and @⁠RavenCurseBurg and @⁠DavidM1911 for the independent validation!

I compared the current patches of #2370 and #2295. Both add the same two --locked flags to scripts/test.ps1.

My PR additionally extends the native Cargo fixture to verify both command lines and forwarded test arguments, and documents the lockfile requirement in the README. #2295 addresses the broader toolchain-pinning and CI changes.

@⁠WASDeKeys, would you be open to keeping #2370 as the focused, regression-tested runner change and building the remaining toolchain changes on top of it? Alternatively, I'm happy to coordinate incorporating my regression tests into your PR if the maintainers prefer a single contribution.

I would prefer to avoid duplicate changes and unnecessary merge conflicts.

**@⁠fladit123** on GitHub · 2026-11-25 19:27 UTC · [original](https://github.com/xcl-dev/xcl/pull/2370#issuecomment-7172330402) Thanks @⁠throny for identifying the overlap, and @⁠RavenCurseBurg and @⁠DavidM1911 for the independent validation! I compared the current patches of #2370 and #2295. Both add the same two `--locked` flags to `scripts/test.ps1`. My PR additionally extends the native Cargo fixture to verify both command lines and forwarded test arguments, and documents the lockfile requirement in the README. #2295 addresses the broader toolchain-pinning and CI changes. @⁠WASDeKeys, would you be open to keeping #2370 as the focused, regression-tested runner change and building the remaining toolchain changes on top of it? Alternatively, I'm happy to coordinate incorporating my regression tests into your PR if the maintainers prefer a single contribution. I would prefer to avoid duplicate changes and unnecessary merge conflicts.
Author
Owner

@⁠WASDeKeys on GitHub · 2026-11-25 22:05 UTC · original · edited 2026-11-25 22:10 UTC

Hi @⁠fladit123

Thank you for your offer and for the validation from
@⁠RavenCurseBurg , @⁠DavidM1911 and @⁠throny . I appreciate the
coordination help.

Given that my PR (#2295) addresses broader
toolchain-pinning and CI changes, which are more
foundational and impactful, I think it would make sense
to keep it as the primary PR. However, I understand the
value of your PR (#2370), which extends the native Cargo and makes specific
fixture and documents the lockfile requirement.

To ensure that both PRs get merged, I propose the
following approach:

  1. Merge #2295 first: This will ensure that the broader
    foundational changes are reviewed and merged first.
  2. Create a follow-up PR for #2370: The focused runner
    changes and additional documentation can be addressed
    in a separate PR after #2295 is
    merged.

I'm happy to help incorporate any additional regression
tests or documentation from #2370 into my PR if that
would be helpful. This way, we can ensure that both sets
of changes are properly reviewed and merged, and we can
avoid any unnecessary merge conflicts.

Let me know!

**@⁠WASDeKeys** on GitHub · 2026-11-25 22:05 UTC · [original](https://github.com/xcl-dev/xcl/pull/2370#issuecomment-7175927917) · edited 2026-11-25 22:10 UTC Hi @⁠fladit123 Thank you for your offer and for the validation from @⁠RavenCurseBurg , @⁠DavidM1911 and @⁠throny . I appreciate the coordination help. Given that my PR (#2295) addresses broader toolchain-pinning and CI changes, which are more foundational and impactful, I think it would make sense to keep it as the primary PR. However, I understand the value of your PR (#2370), which extends the native Cargo and makes specific fixture and documents the lockfile requirement. To ensure that both PRs get merged, I propose the following approach: 1. Merge #2295 first: This will ensure that the broader foundational changes are reviewed and merged first. 2. Create a follow-up PR for #2370: The focused runner changes and additional documentation can be addressed in a separate PR after #2295 is merged. I'm happy to help incorporate any additional regression tests or documentation from #2370 into my PR if that would be helpful. This way, we can ensure that both sets of changes are properly reviewed and merged, and we can avoid any unnecessary merge conflicts. Let me know!
Author
Owner

@⁠RavenCurseBurg on GitHub · 2026-11-25 17:06 UTC · original · edited 2026-11-25 22:44 UTC

I tested the proposed #2295-first order. On #2295 8bd87ea4f126ab3ec13635aef78351da2496df7f, the runner already matches #2370 33c9081bebc486510711e986adbc891ae30b6113 byte for byte. The fixture and README changes applied directly.

Follow-up commit on #2295, retaining fladit123 as author. Its diff against #2295 contains just the README and scripts/test-native-stderr.tests.ps1. I checked that the resulting runner and fixture both match the #2370 blobs.

-NoProfile -NonInteractive -ExecutionPolicy Bypass -File scripts/test-native-stderr.tests.ps1 passed on Windows PowerShell 5.1 and PowerShell 7.6.9. Against three independent local changes, each shell rejected omitting build --locked, omitting test --locked, and dropping the forwarded filter arguments (6/6). Windows 11 26100.9711, i7-13700. All Cargo calls used the checked-in stand-in. OpenAI Codex (GPT-6) prepared and tested the integration.

Earlier standalone runner checks

Windows PowerShell 5.1.26100.9711 and PowerShell 7.6.9 both passed scripts/test-native-stderr.tests.ps1 on 33c9081bebc486510711e986adbc891ae30b6113. I used -NoProfile -NonInteractive -ExecutionPolicy Bypass -File for the individual test processes.

I also formed a clean merge against main 68a284a596bd558b6bd9db6eedda6d6aa178c360 with git merge-tree --write-tree (tree 0129b363e841ed61006aa43641e338582799207b). I ran the runner and native-stderr fixture extracted from that tree. Both script blobs matched the PR head. In both shells the checked-in fixture passed. Separately, I verified three outcomes per shell on each tree using a native Cargo stand-in that logged its calls:

  • Build and test succeeded: exit 0, both commands used --locked --workspace, and test received -- --test-threads=4 --skip fixture_case --nocapture.
  • Build returned 17: the wrapper returned 17 without starting tests.
  • Test returned 101: the wrapper returned 101.

Windows 11 26100.9711, i7-13700, RTX 4060. This covers the PowerShell wrapper and its arguments on Windows 5.1 and 7. No real Cargo build, lockfile resolution, GPU or retail run. OpenAI Codex (GPT-6) ran the checks and prepared this report.

**@⁠RavenCurseBurg** on GitHub · 2026-11-25 17:06 UTC · [original](https://github.com/xcl-dev/xcl/pull/2370#issuecomment-7169007101) · edited 2026-11-25 22:44 UTC I tested the [proposed #2295-first order](https://git.gtahub.st/github/xcl-dev--xcl/pulls/2370). On #2295 `8bd87ea4f126ab3ec13635aef78351da2496df7f`, the runner already matches #2370 `33c9081bebc486510711e986adbc891ae30b6113` byte for byte. The fixture and README changes applied directly. [Follow-up commit on #2295, retaining fladit123 as author](https://github.com/RavenCurseBurg/xcl/commit/048bebe1d2bd737721504385ba20709181e80cb3). Its diff against #2295 contains just the README and `scripts/test-native-stderr.tests.ps1`. I checked that the resulting runner and fixture both match the #2370 blobs. `-NoProfile -NonInteractive -ExecutionPolicy Bypass -File scripts/test-native-stderr.tests.ps1` passed on Windows PowerShell 5.1 and PowerShell 7.6.9. Against three independent local changes, each shell rejected omitting build `--locked`, omitting test `--locked`, and dropping the forwarded filter arguments (6/6). Windows 11 26100.9711, i7-13700. All Cargo calls used the checked-in stand-in. OpenAI Codex (GPT-6) prepared and tested the integration. <details><summary>Earlier standalone runner checks</summary> Windows PowerShell 5.1.26100.9711 and PowerShell 7.6.9 both passed `scripts/test-native-stderr.tests.ps1` on `33c9081bebc486510711e986adbc891ae30b6113`. I used `-NoProfile -NonInteractive -ExecutionPolicy Bypass -File` for the individual test processes. I also formed a clean merge against main `68a284a596bd558b6bd9db6eedda6d6aa178c360` with `git merge-tree --write-tree` (tree `0129b363e841ed61006aa43641e338582799207b`). I ran the runner and native-stderr fixture extracted from that tree. Both script blobs matched the PR head. In both shells the checked-in fixture passed. Separately, I verified three outcomes per shell on each tree using a native Cargo stand-in that logged its calls: - Build and test succeeded: exit 0, both commands used `--locked --workspace`, and test received `-- --test-threads=4 --skip fixture_case --nocapture`. - Build returned 17: the wrapper returned 17 without starting tests. - Test returned 101: the wrapper returned 101. Windows 11 26100.9711, i7-13700, RTX 4060. This covers the PowerShell wrapper and its arguments on Windows 5.1 and 7. No real Cargo build, lockfile resolution, GPU or retail run. OpenAI Codex (GPT-6) ran the checks and prepared this report. </details>
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/2370/head:github-bot/gh-2370'
git switch 'github-bot/gh-2370'

Merge

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