Scripts: read smoke log and report paths literally #2706
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2716"
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 luckyteagirl on 2026-11-26T08:15:01Z.
Stacked on #2651
A launcher can report a smoke log path containing square brackets. PowerShell wildcard lookup can then read a different run's log and GPU report. Use literal lookups while preserving the prerequisite's guards for writing artifacts into the source log directory.
What is in it
Tested
382a161bwithunexpected gpu: Decoy Adapter. On prior PR headb46c2665, the in-place case failed becauseCopy-Itemtried to overwritexcl.logwith itself.c4b3c8ae,scripts/test-smoke-artifacts.tests.ps1andscripts/smoke-title.tests.ps1passed with-NoProfile -Fileon Windows PowerShell 5.1.26100.9711 and PowerShell 7.6.9.git diff --checkpassed.Regression run
The fixture uses a synthetic launcher, log, and report. No runtime source changed.
Not tested
The Rust or GPU workspace suite, a retail title run, in-place paths through junction aliases, and directories explicitly configured for case-sensitive lookup.
AI use
OpenAI Codex (GPT-6.2 Sol) reproduced the original wildcard collision, implemented the fix and synthetic fixture, and ran the focused checks. OpenAI Codex (GPT-6.2 Astra) reviewed the original diff and reran both smoke fixtures. RavenCurseBurg used OpenAI Codex (GPT-6) to integrate and verify the two changes. OpenAI Codex (GPT-6, exact variant unavailable) prepared the local stack and independently verified both failures and the repaired fixtures.
Imported from ivall/xcl. Originally posted by RavenCurseBurg on 2026-11-26T08:42:13Z.
I combined this head
b46c2665b273with #2651382a161b3eb1. Bothscripts/smoke.ps1and its artifact fixture conflict. The combined candidate preserves the literal lookups, the guard against copying a file onto itself, and the decoy in the regression test.I ran a launcher that reported
log [xy]/xcl.log. The intended report had a different adapter and frame count from its wildcard-matching siblinglog x. On this PR alone the separate destination worked, but using the source directory as the destination failed. On #2651 alone the manifest reported the decoy adapter and frame count. When I removed the intended report, its previous destination copy remained in both shells.On the combination, all three cases passed in both shells. The separate and in-place destinations recorded the intended adapter and counts and retained the exact source bytes. After I removed the source report, the previous destination report was removed while the sibling stayed intact. Both
test-smoke-artifacts.tests.ps1andsmoke-title.tests.ps1passed on the combined tree. I supplied a synthetic adapter name to the fallback lookup.Windows PowerShell 5.1 and PowerShell 7.6.9 on Windows 11. OpenAI Codex (GPT-6) prepared and ran the fixtures. Synthetic logs, reports and immediately exiting launchers only; no game, GPU workload or workspace build.
Retest on
c4b3c8aeaa08cfded659a6831344d2ef7e6080e2I reran the three bracketed-path CLI cases on Windows PowerShell 5.1 and PowerShell 7 after this PR was stacked on #2651. All six passed. Separate and in-place destinations retained the intended log and report bytes. Removing the source report cleared the stale output and left the decoy intact. Both
scripts/test-smoke-artifacts.tests.ps1andscripts/smoke-title.tests.ps1passed in both shells. The independent CLI check used an immediately exiting native stand-in and a synthetic fallback adapter.OpenAI Codex (GPT-6) ran the synthetic fixtures on Windows 11. No retail title, GPU workload or Rust workspace build was used.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:48:01Z.
Triage (#1607) – head
c4b3c8aStacked on #2651: the first commit (
382a161) is #2651's same-file artifact copy, and onlyc4b3c8abelongs here. That is not a duplicate.The top commit makes the
$logandreport.jsonreads inscripts/smoke.ps1literal, which #583 also does. #583 also fixes the-XclTest-Path. This PR also fixes the-OutDir/$destReportpaths, which did not exist when #583 was written. Neither covers all of it, and main still uses wildcardTest-Path/Get-Contentthere. No problems found in the diff.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.