Scripts: handle square brackets in smoke test paths #578
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/583"
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 ivall/xcl. Originally posted by zohaiblazuli on 2026-11-24T02:07:22Z.
PowerShell treats square brackets as wildcard patterns in path arguments. This can cause
scripts/smoke.ps1to reject an existing XCL executable or miss the log and adapter report.What is in it
scripts/smoke.ps1, add a synthetic regression test, and document support in the README.Tested
e5200275f3d18af00cb6b302d05c8289bc31bad7, debug, Windows 11 Pro 26300, i5-14600K, RTX 3060 (driver 32.0.16.1742), Rust 1.94.0 MSVC, DXC 1.9.0.5512.powershell.exe -NoProfile -NonInteractive -File scripts/test.ps1: 684 passed, 0 failed, 41 ignored. Two tests included in the pass count skipped native wave64:gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware.powershell.exe -NoProfile -NonInteractive -File scripts/smoke-paths.tests.ps1andpwsh.exe -NoProfile -NonInteractive -File scripts/smoke-paths.tests.ps1: one regression test passed on each shell (Windows PowerShell 5.1 and PowerShell 7.6.9). The test failed on the original script in both shells.Not tested
AI use
Imported from ivall/xcl. Originally posted by fladit123 on 2026-11-24T02:12:52Z.
Independent validation on Windows PowerShell 5.1 and PowerShell 7.6.10.
Tested
9ce2070eccf436d7bd38601c90407da447df34f3.e5200275f3d18af00cb6b302d05c8289bc31bad7.The original script failed at
smoke.ps1:15, incorrectly reporting that the existing[xcl]\xcl.cmdexecutable could not be found.For the extended test, I set
TEMPandTMPto a temporary directory namedXCL Test [Regression] <GUID>, adding spaces and another pair of square brackets to the fixture path. The regression test passed.Both PowerShell versions were invoked with
-NoProfile -NonInteractive -ExecutionPolicy RemoteSigned. No persistent execution policy changes were made.The PR worktree remained clean after testing.
Not tested: full workspace suite, retail titles or release builds.
No blocking findings within the tested scope.
AI use: ChatGPT (GPT-6.2) assisted with diff review, test planning and report preparation. All commands were executed locally by me.
upstream-sync referenced this pull request2026-11-24 19:06:45 +00:00
Imported from ivall/xcl. Originally posted by Alpha325 on 2026-11-25T02:31:25Z.
I added a synthetic case with sibling folders named
[xcl]andx, each containing a different log and adapter report. The launcher sits outside both folders so the test reaches log parsing independently of executable path validation.9ce2070: the smoke block reportedexit: 0x0, but used the wildcard match inx(97 frames, 98 PresentX calls, and the wrong adapter).e520027: the block used the literal[xcl]files (7 frames, 8 PresentX calls, and the expected adapter). The bracketed launcher also passed.Both results reproduced on Windows 11 build 26200 with Windows PowerShell 5.1.26100.9818 and PowerShell 7.6.9. The patch changes only the synthetic fixture.
AI use — OpenAI Codex (GPT-6) wrote and ran the fixture and drafted this report.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T13:18:39Z.
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
main— needs a rebase before it can be tested.Imported from ivall/xcl. Originally posted by RavenCurseBurg on 2026-11-25T18:35:53Z.
I reproduced the conflicts in
README.mdandscripts/smoke.ps1and prepared a tested merge commit. Its first parent is this PR'se520027and its second ismainat3f2777019544. The PR branch can fast-forward to it.The artifact-saving code on main also needs literal path checks. After resolving just the textual conflicts, the smoke block read the correct adapter, but the report was missing from the bracketed artifact directory. The extended
smoke-paths.tests.ps1failed that assertion in both shells. Applying literal checks to the artifact paths made it pass.scripts/smoke-paths.tests.ps1,scripts/smoke-title.tests.ps1andscripts/test-smoke-artifacts.tests.ps1in Windows PowerShell 5.1.26100.9711 and PowerShell 7.6.9. All passed.smoke.ps1 -Xcl <stub.cmd> -Game <fixture> -OutDir <bracketed directory> -Seconds 1. With wildcard-matching siblings present, the new artifact directory received the exact report from[xcl]. After removing the source report, the next run used the simulated fallback adapter, removed the stale copy and left the sibling output untouched. The block and manifest kept the expected frame count.Windows 11 build 26100.9711, i7-13700. Synthetic logs, reports and launcher only. No retail run, GPU or Rust suite. OpenAI Codex (GPT-6) resolved the conflicts, extended the test and ran the checks.
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T20:43:28Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T03:44:52Z.
Triage (#1607) – head
e520027#2716 makes the same
-LiteralPathchange for the log and report.json reads in scripts/smoke.ps1; it also covers-OutDirbut not theTest-Path $Xclcheck that this PR fixes, so neither contains the other.The README addition only restates a script detail and is not needed for this fix.
The PR conflicts with main (smoke.ps1 has since gained -Title, -OutDir and a .cmd launcher branch) and needs a rebase.
Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.