Skip to content

Scripts: require locked dependencies in workspace tests - #2370

Draft
fladit123 wants to merge 1 commit into
xcl-dev:mainfrom
fladit123:scripts/locked-workspace-tests
Draft

fladit123 wants to merge 1 commit into
xcl-dev:mainfrom
fladit123:scripts/locked-workspace-tests

Conversation

@fladit123

Copy link
Copy Markdown

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.

@RavenCurseBurg

RavenCurseBurg commented Nov 25, 2026 •

Copy link
Copy Markdown

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.

@throny

throny commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

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.

@DavidM1911

Copy link
Copy Markdown
Contributor

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

Thanks!

@fladit123

Copy link
Copy Markdown
Author

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.

@WASDeKeys

WASDeKeys commented Nov 25, 2026 •

Copy link
Copy Markdown

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 Build: pin Rust toolchain to 1.96.0 and enforce Cargo.lock (FIx #2214) #2295 first: This will ensure that the broader
    foundational changes are reviewed and merged first.
  2. Create a follow-up PR for Scripts: require locked dependencies in workspace tests #2370: The focused runner
    changes and additional documentation can be addressed
    in a separate PR after Build: pin Rust toolchain to 1.96.0 and enforce Cargo.lock (FIx #2214) #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!

@CalvyPZ CalvyPZ added the duplicate This issue or pull request already exists label Nov 25, 2026
@CalvyPZ CalvyPZ closed this Nov 25, 2026
@CalvyPZ CalvyPZ reopened this Nov 25, 2026
@CalvyPZ CalvyPZ removed the duplicate This issue or pull request already exists label Nov 25, 2026
@KOLESNiii KOLESNiii mentioned this pull request Nov 25, 2026
@throny throny added the off-goal Does not bear on the current goal (world loading); waits until it is reached label Nov 26, 2026
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.

6 participants