tests: compare resolved temp paths in the LDS request CLI check #3426

Manually merged
github merged 1 commit from github-bot/gh-3424 into gh-pr/3424/base 2026-11-29 08:33:26 +00:00 AGit
Owner

@⁠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 UTC

Change

shader_compile_lds_request_cli_check fails on main's Windows checks in every completed run since 7e5c378d (runs 46137868923, 46174243424, 46194210510, 46194701708). The first error is in test_missing_companion_and_hostile_path_refusals:

Paths shortened:

File "...\tests\startup_compile_lds_request_cli_check.py", line 346, in test_missing_companion_and_hostile_path_refusals
AssertionError: WindowsPath('.../runneradmin/.../Temp/tmp.../some_dir') != WindowsPath('.../RUNNER~1/.../Temp/tmp.../some_dir')

dest_link.resolve() expands the runner's 8.3 temp path, while dir_path is built from the unresolved TemporaryDirectory name. This change resolves the temporary directory once in that test (base = Path(tmp).resolve(), :230), so dir_path (base / "some_dir", :238) is in long form:

  • :346 dest_link.resolve().parent == dir_path: both sides are long form.
  • :349 list(link_out.iterdir()) == [dest_link]: both sides are built from base, so this one is unaffected.
  • :355 Path(out_ca) == dest_link.resolve(): out_ca is dir_path / name (the tool prints args.output / name without 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 main 212d4b5f, 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 with main's file.
  • The symlink branch that holds :346, :349 and :355 is skipped on my host: symlink_to raises 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.
  • The pr test preset (CMakePresets.json, "Windows pull request smoke tests") does not include shader_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

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture.
  • I updated README/docs when a capability or build requirement changed. (no capability or build change)
  • No application files, dumps, distribution links or secrets included.
**@⁠Leyukaka** on GitHub · 2026-11-29 00:50 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3424) `Leyukaka:tests-lds-cli-temp-path` → `main` · +1 −1 · 1 files · 1 commits · merged 2026-11-29 08:29 UTC ## Change `shader_compile_lds_request_cli_check` fails on `main`'s Windows checks in every completed run since `7e5c378d` (runs 46137868923, 46174243424, 46194210510, 46194701708). The first error is in `test_missing_companion_and_hostile_path_refusals`: Paths shortened: ``` File "...\tests\startup_compile_lds_request_cli_check.py", line 346, in test_missing_companion_and_hostile_path_refusals AssertionError: WindowsPath('.../runneradmin/.../Temp/tmp.../some_dir') != WindowsPath('.../RUNNER~1/.../Temp/tmp.../some_dir') ``` `dest_link.resolve()` expands the runner's 8.3 temp path, while `dir_path` is built from the unresolved `TemporaryDirectory` name. This change resolves the temporary directory once in that test (`base = Path(tmp).resolve()`, :230), so `dir_path` (`base / "some_dir"`, :238) is in long form: - :346 `dest_link.resolve().parent == dir_path`: both sides are long form. - :349 `list(link_out.iterdir()) == [dest_link]`: both sides are built from `base`, so this one is unaffected. - :355 `Path(out_ca) == dest_link.resolve()`: `out_ca` is `dir_path / name` (the tool prints `args.output / name` without 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 `main` `212d4b5f`, 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 with `main`'s file. - The symlink branch that holds :346, :349 and :355 is skipped on my host: `symlink_to` raises 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. - The `pr` test preset (`CMakePresets.json`, "Windows pull request smoke tests") does not include `shader_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 - [x] This pull request covers one reviewable behavior. - [x] I included the exact command and result for every check I ran. - [x] I considered a negative control or failure case for a new fixture. - [ ] I updated README/docs when a capability or build requirement changed. (no capability or build change) - [x] No application files, dumps, distribution links or secrets included.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 00:55:22 +00:00
github-bot changed target branch from main to gh-pr/3424/base 2026-11-29 08:33:24 +00:00
github manually merged commit 9fde3f7097 into gh-pr/3424/base 2026-11-29 08:33:26 +00:00
Author
Owner

@⁠tedin7 on GitHub · 2026-11-29 08:29 UTC · original · reviewed

Reviewed 9fde3f70971909a85939262a2c54201891e8aa87:

  • tests/startup_compile_lds_request_cli_check.py: resolves Path(tmp) (Path(tmp).resolve()) in test_missing_companion_and_hostile_path_refusals so 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.

**@⁠tedin7** on GitHub · 2026-11-29 08:29 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/3424#pullrequestreview-6102087063) · **reviewed** Reviewed `9fde3f70971909a85939262a2c54201891e8aa87`: - `tests/startup_compile_lds_request_cli_check.py`: resolves `Path(tmp)` (`Path(tmp).resolve()`) in `test_missing_companion_and_hostile_path_refusals` so 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.
This discussion has been locked. Commenting is limited to contributors.
No description provided.