tests: compare resolved temp paths in the LDS request CLI check #3426
No reviewers
Labels
No labels
accessibility
awaiting author
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
priority: P0
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/R0Y00--Xbox2Windows!3426
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3424"
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?
@Leyukaka on GitHub · 2026-11-29 00:50 UTC · original
Leyukaka:tests-lds-cli-temp-path→main· +1 −1 · 1 files · 1 commits · merged 2026-11-29 08:29 UTCChange
shader_compile_lds_request_cli_checkfails onmain's Windows checks in every completed run since7e5c378d(runs 46137868923, 46174243424, 46194210510, 46194701708). The first error is intest_missing_companion_and_hostile_path_refusals:Paths shortened:
dest_link.resolve()expands the runner's 8.3 temp path, whiledir_pathis built from the unresolvedTemporaryDirectoryname. This change resolves the temporary directory once in that test (base = Path(tmp).resolve(), :230), sodir_path(base / "some_dir", :238) is in long form:dest_link.resolve().parent == dir_path: both sides are long form.list(link_out.iterdir()) == [dest_link]: both sides are built frombase, so this one is unaffected.Path(out_ca) == dest_link.resolve():out_caisdir_path / name(the tool printsargs.output / namewithout resolving), so it is long form too. On CI this assertion would have failed next, after :346.No assertion is changed or removed. The other tests in the file do not compare resolved paths.
Verification
Base
main212d4b5f, release preset.ctest --test-dir out\build\release --no-tests=error --output-on-failure -R "^shader_compile_lds_request_cli_check$": passed. With TMP/TEMP/TMPDIR set to an 8.3 short path, it passed with the fix and also withmain's file.symlink_toraises winerror 1314 (no symlink privilege), and the test skips that branch on that error. The failing assertion was therefore not exercised locally. A mutation at :346 also passes locally for the same reason. The fix rests on the reasoning above.prtest preset (CMakePresets.json, "Windows pull request smoke tests") does not includeshader_compile_lds_request_cli_check, so this PR's own checks do not run it. Per CONTRIBUTING.md: "To check a branch in both configurations before merge, select it under Actions → Windows checks → Run workflow." Please run the full Windows checks on this branch.Evidence and follow-up
Not covered: runs 46174243424, 46194210510 and 46194701708 also have other failing tests; this change does not address them.
Checklist
xmem_startup_below_40,linear_buffer_backing_copy_warpandstartup_resource_retire_hardware_debug0each failed once on main CI #3428@tedin7 on GitHub · 2026-11-29 08:29 UTC · original · reviewed
Reviewed
9fde3f70971909a85939262a2c54201891e8aa87:tests/startup_compile_lds_request_cli_check.py: resolvesPath(tmp)(Path(tmp).resolve()) intest_missing_companion_and_hostile_path_refusalsso temp path comparisons match when temp directories use symlinks or 8.3 short names.Verified on Windows Server 2025 (Build 26100, MSVC 14.44.35207 + D3D12 WARP) at commit
9fde3f70971909a85939262a2c54201891e8aa87:ctest --preset dev -R '^shader_compile_lds_request_cli_check$' --parallel 3 --no-tests=error --output-on-failure: 1/1 passed (5.92s)AI-assisted; commands listed were executed locally.
github-bot referenced this pull request2026-11-29 14:02:19 +00:00
github-bot referenced this pull request2026-11-29 14:02:20 +00:00