tests: handle hosted Windows temp paths and warning colors #2217

Manually merged
github merged 1 commit from gh-pr/2217/head into gh-pr/2217/base 2026-11-27 00:06:37 +00:00
Owner

@⁠RavenCurseBurg on GitHub · 2026-11-25 05:35 UTC · original
RavenCurseBurg:tests/windows-runner-output → main · +4 −2 · 2 files · 1 commits · merged 2026-11-25 05:40 UTC

Two source-built Python fixtures fail in the full Windows 2025 CTest run when the temporary directory contains an 8.3 alias. The call-evidence test compares the printed canonical report path to an expected path containing the alias. The startup launcher passes the expanded cache path to the watcher. PowerShell 7 can also decorate the warning with ANSI colors in CI, which breaks the exact text comparison.

Resolve the expected report path, build the startup test tree under its resolved directory, and request plain text from the spawned PowerShell with NO_COLOR. The checks still compare the exact warning, debugger arguments, cache path, exit codes, report contents and process cleanup. The patch changes two test files.

The original Windows Debug job reported exactly these two failures out of 1,040 tests. The focused Windows 2025 run passed at this PR commit with a real 8.3 temporary-directory alias on the profile volume. All six call-evidence cases passed, and the startup suite reported zero failures under both Windows PowerShell 5.1 and PowerShell 7.

On local Windows, all six call-evidence cases passed and the complete startup suite reported zero failures under both Windows PowerShell and pwsh. The shell that launched the suite had color enabled and a temporary path containing spaces.

  • python -B tests/call_evidence_check.py
  • python -B tests/startup_run_ps1_check.py
  • git diff --check origin/main...HEAD

AI-assisted with Codex (GPT-6.2 Astra xhigh).

**@⁠RavenCurseBurg** on GitHub · 2026-11-25 05:35 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2217) `RavenCurseBurg:tests/windows-runner-output` → `main` · +4 −2 · 2 files · 1 commits · merged 2026-11-25 05:40 UTC Two source-built Python fixtures fail in the full Windows 2025 CTest run when the temporary directory contains an 8.3 alias. The call-evidence test compares the printed canonical report path to an expected path containing the alias. The startup launcher passes the expanded cache path to the watcher. PowerShell 7 can also decorate the warning with ANSI colors in CI, which breaks the exact text comparison. Resolve the expected report path, build the startup test tree under its resolved directory, and request plain text from the spawned PowerShell with NO_COLOR. The checks still compare the exact warning, debugger arguments, cache path, exit codes, report contents and process cleanup. The patch changes two test files. The [original Windows Debug job](https://github.com/RavenCurseBurg/Xbox2Windows/actions/runs/45551407079/job/138993198131) reported exactly these two failures out of 1,040 tests. The [focused Windows 2025 run](https://github.com/RavenCurseBurg/Xbox2Windows/actions/runs/45554469156) passed at this PR commit with a real 8.3 temporary-directory alias on the profile volume. All six call-evidence cases passed, and the startup suite reported zero failures under both Windows PowerShell 5.1 and PowerShell 7. On local Windows, all six call-evidence cases passed and the complete startup suite reported zero failures under both Windows PowerShell and pwsh. The shell that launched the suite had color enabled and a temporary path containing spaces. - `python -B tests/call_evidence_check.py` - `python -B tests/startup_run_ps1_check.py` - `git diff --check origin/main...HEAD` AI-assisted with Codex (GPT-6.2 Astra xhigh).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 00:06:35 +00:00
github manually merged commit 630c543895 into gh-pr/2217/base 2026-11-27 00:06:37 +00:00
Author
Owner

@⁠tedin7 on GitHub · 2026-11-25 05:39 UTC · original · reviewed

Review of head 630c543895 (tests only: tests/call_evidence_check.py, tests/startup_run_ps1_check.py).

Findings: 0 P1, 0 P2.

  • call_evidence_check: the tool prints a resolved path (Path(__file__).resolve() in tools/call_evidence.py), so comparing against expected_output.resolve() is correct on hosts where the temp dir is a symlink or 8.3 short name.
  • startup_run_ps1_check: .resolve() on the temp root and NO_COLOR=1 make the warning text comparison independent of ANSI colors. Test-only, no production change, no clean-room concern.

Commands executed locally:

  • python3 tests/startup_run_ps1_check.py -> text-only pass (not a Windows host)
  • python3 tests/call_evidence_check.py (venv with pefile) -> Ran 6 tests, OK
  • python3 tests/docs_links_check.py -> Self-test passed, 18 files / 408 links
  • python3 tests/bidi_controls_check.py -> no bidirectional controls
  • git diff --check origin/main...HEAD -> clean
  • Mutation: tools/call_evidence.py line 137 print(output) -> print(output.parent): call_evidence_check FAILED (1 failure); reverted with git checkout -- ..

Only .py files touched, so no Windows build run was needed on my side. The GitHub check "Build and test on Windows" was still pending when I reviewed.

AI-assisted; commands listed were executed locally.

**@⁠tedin7** on GitHub · 2026-11-25 05:39 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/2217#pullrequestreview-6052399610) · **reviewed** Review of head 630c5438958f09fff877e259dc9c11c819b5257b (tests only: tests/call_evidence_check.py, tests/startup_run_ps1_check.py). Findings: 0 P1, 0 P2. - call_evidence_check: the tool prints a resolved path (`Path(__file__).resolve()` in tools/call_evidence.py), so comparing against `expected_output.resolve()` is correct on hosts where the temp dir is a symlink or 8.3 short name. - startup_run_ps1_check: `.resolve()` on the temp root and `NO_COLOR=1` make the warning text comparison independent of ANSI colors. Test-only, no production change, no clean-room concern. Commands executed locally: - `python3 tests/startup_run_ps1_check.py` -> text-only pass (not a Windows host) - `python3 tests/call_evidence_check.py` (venv with pefile) -> Ran 6 tests, OK - `python3 tests/docs_links_check.py` -> Self-test passed, 18 files / 408 links - `python3 tests/bidi_controls_check.py` -> no bidirectional controls - `git diff --check origin/main...HEAD` -> clean - Mutation: tools/call_evidence.py line 137 `print(output)` -> `print(output.parent)`: call_evidence_check FAILED (1 failure); reverted with `git checkout -- .`. Only .py files touched, so no Windows build run was needed on my side. The GitHub check "Build and test on Windows" was still pending when I reviewed. AI-assisted; commands listed were executed locally.
This discussion has been locked. Commenting is limited to contributors.
No description provided.