Scripts: read smoke log and report paths literally #2716

Open
github-bot wants to merge 1 commit from github-bot/gh-2716 into main AGit
Owner

@⁠luckyteagirl on GitHub · 2026-11-26 08:15 UTC · original
luckyteagirl:codex/smoke-literal-log-paths → main · +24 −16 · 2 files · 1 commits · draft

scripts/smoke.ps1 treats a launcher-reported log path as a PowerShell wildcard. If the run directory contains square brackets and a sibling path matches the pattern, the smoke summary can silently read the sibling run's log and GPU report. Use literal paths for the reported log, adjacent report, and artifact checks.

What is in it

  • scripts/smoke.ps1: use -LiteralPath for log and report reads and relevant artifact existence checks.
  • scripts/test-smoke-artifacts.tests.ps1: put the intended run under a bracketed directory and a decoy run in the wildcard-matching sibling; also check bracketed artifact output.

Tested

  • Windows 11 Home build 26200, Ryzen 9 5980HX, AMD Radeon RX 6800M (driver 30.0.13002.13003), Rust 1.99.0 MSVC; PowerShell 5.1.26100 and 7.6.9.
  • Failing-first synthetic fixture on the parent commit: scripts/test-smoke-artifacts.tests.ps1 failed in both PowerShell versions with unexpected gpu: Decoy Adapter.
  • powershell.exe -NoProfile -File .\scripts\test-smoke-artifacts.tests.ps1 and pwsh.exe -NoProfile -File .\scripts\test-smoke-artifacts.tests.ps1: both passed on this head.
  • powershell.exe -NoProfile -File .\scripts\smoke-title.tests.ps1 and pwsh.exe -NoProfile -File .\scripts\smoke-title.tests.ps1: both passed on this head.
  • git diff HEAD^ HEAD --check: passed.

Not tested

  • The workspace GPU suite or a retail-title smoke for this script-only change.

AI use

  • OpenAI Codex (GPT-6.2 Sol) reproduced the wildcard collision, implemented the fix and synthetic fixture, and ran the focused checks. OpenAI Codex (GPT-6.2 Astra) reviewed the diff and reran both PowerShell script tests.
**@⁠luckyteagirl** on GitHub · 2026-11-26 08:15 UTC · [original](https://github.com/xcl-dev/xcl/pull/2716) `luckyteagirl:codex/smoke-literal-log-paths` → `main` · +24 −16 · 2 files · 1 commits · draft `scripts/smoke.ps1` treats a launcher-reported log path as a PowerShell wildcard. If the run directory contains square brackets and a sibling path matches the pattern, the smoke summary can silently read the sibling run's log and GPU report. Use literal paths for the reported log, adjacent report, and artifact checks. **What is in it** - `scripts/smoke.ps1`: use `-LiteralPath` for log and report reads and relevant artifact existence checks. - `scripts/test-smoke-artifacts.tests.ps1`: put the intended run under a bracketed directory and a decoy run in the wildcard-matching sibling; also check bracketed artifact output. **Tested** - Windows 11 Home build 26200, Ryzen 9 5980HX, AMD Radeon RX 6800M (driver 30.0.13002.13003), Rust 1.99.0 MSVC; PowerShell 5.1.26100 and 7.6.9. - Failing-first synthetic fixture on the parent commit: `scripts/test-smoke-artifacts.tests.ps1` failed in both PowerShell versions with `unexpected gpu: Decoy Adapter`. - `powershell.exe -NoProfile -File .\scripts\test-smoke-artifacts.tests.ps1` and `pwsh.exe -NoProfile -File .\scripts\test-smoke-artifacts.tests.ps1`: both passed on this head. - `powershell.exe -NoProfile -File .\scripts\smoke-title.tests.ps1` and `pwsh.exe -NoProfile -File .\scripts\smoke-title.tests.ps1`: both passed on this head. - `git diff HEAD^ HEAD --check`: passed. **Not tested** - The workspace GPU suite or a retail-title smoke for this script-only change. **AI use** - OpenAI Codex (GPT-6.2 Sol) reproduced the wildcard collision, implemented the fix and synthetic fixture, and ran the focused checks. OpenAI Codex (GPT-6.2 Astra) reviewed the diff and reran both PowerShell script tests.
Treat the launch log and report as single paths so square brackets cannot redirect summaries to a sibling run. Use literal artifact paths for directory checks and stale report cleanup too.

Assisted-by: OpenAI Codex (GPT-6.2 Sol)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:20:12 +00:00
Author
Owner

@⁠RavenCurseBurg on GitHub · 2026-11-26 08:42 UTC · original

I’ll check the interaction with #2651 when the bracketed source directory is also the artifact destination. I’ll use a wildcard-matching decoy with different bytes, then test a separate bracketed output and a missing report.

Target b46c2665b2730e2d4e8016ff313245116483db36. OpenAI Codex (GPT-6) will run these synthetic Windows checks.

**@⁠RavenCurseBurg** on GitHub · 2026-11-26 08:42 UTC · [original](https://github.com/xcl-dev/xcl/pull/2716#issuecomment-7186915675) I’ll check the interaction with #2651 when the bracketed source directory is also the artifact destination. I’ll use a wildcard-matching decoy with different bytes, then test a separate bracketed output and a missing report. Target `b46c2665b2730e2d4e8016ff313245116483db36`. OpenAI Codex (GPT-6) will run these synthetic Windows checks.
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2716/head:github-bot/gh-2716'
git switch 'github-bot/gh-2716'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2716'
git switch 'github-bot/gh-2716'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2716'
git switch 'github-bot/gh-2716'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2716'
git switch 'main'
git merge --squash 'github-bot/gh-2716'
git switch 'main'
git merge --ff-only 'github-bot/gh-2716'
git switch 'main'
git merge 'github-bot/gh-2716'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.