Scripts: require locked dependencies in workspace tests #2370
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2370
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2370"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@fladit123 on GitHub · 2026-11-25 16:54 UTC · original
fladit123:scripts/locked-workspace-tests→main· +15 −5 · 3 files · 1 commits · draftscripts/test.ps1now requires Cargo to use the checked-inCargo.lockfor workspace builds and tests. Cargo fails if the lockfile is missing or needs to be updated.What is in it
--lockedto both Cargo invocations inscripts/test.ps1.scripts/test-native-stderr.tests.ps1to verify both command lines and forwarded test arguments.README.md.Tested
33c9081bebc486510711e986adbc891ae30b6113.01ff2bd414a800a89072450fa16d9d85b60c282a, identical to the committed tree.c160d86ef2efe3a07e4dfb473e4fa72eafb413c0.pwsh -NoProfile -File scripts/test-native-stderr.tests.ps1on PowerShell 7.6.9:--lockedflag individually: FAIL, as expected../scripts/test.ps1 --show-output:Cargo.lockunchanged.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
50a9fdef81cb796b8756a31defb0648301d002ceverified usinggit merge-tree --write-tree, exit 0. The merged tree itself was not tested.Not tested
AI use
@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.
@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!
@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
--lockedflags toscripts/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 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:
foundational changes are reviewed and merged first.
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!
@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 #237033c9081bebc486510711e986adbc891ae30b6113byte 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.ps1passed 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.ps1on33c9081bebc486510711e986adbc891ae30b6113. I used-NoProfile -NonInteractive -ExecutionPolicy Bypass -Filefor the individual test processes.I also formed a clean merge against main
68a284a596bd558b6bd9db6eedda6d6aa178c360withgit merge-tree --write-tree(tree0129b363e841ed61006aa43641e338582799207b). 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:--locked --workspace, and test received-- --test-threads=4 --skip fixture_case --nocapture.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.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.