tests: compare resolved temp paths in the LDS request CLI check #3424
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from R0Y00/Xbox2Windows. Originally posted by Leyukaka on 2026-11-29T00:50:20Z.
Change
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
Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-29T08:29:35Z.
Review: COMMENTED
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.