Scripts: allow smoke artifacts in source log directory #2651
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2651
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2651"
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?
@luckyteagirl on GitHub · 2026-11-26 05:04 UTC · original
luckyteagirl:codex/smoke-in-place-artifacts→main· +25 −4 · 2 files · 1 commits · opensmoke.ps1 -OutDirfails when the destination is the title's own log directory: copyingxcl.logorreport.jsononto itself throws before the manifest and smoke report are produced. Normalize the destination directory and leave in-place artifacts where they are.What is in it
.and different casing; confirm the original log/report remain intact and the manifest and smoke block are emitted.Tested
b49be183, the original in-place fixture failed with a self-copy error. The case-variant fixture reproduced the reviewer's self-copy failure in Windows PowerShell 5.1 before the follow-up fix. PowerShell 7 normalized the path casing in that fixture. With this patch,scripts/test-smoke-artifacts.tests.ps1and the existingscripts/smoke-title.tests.ps1passed in both Windows PowerShell 5.1 and PowerShell 7.git diff --checkpassed.Regression run
Not tested
-OutDirjunction targeting the log directory can still cause a self-copy; this patch handles ordinary Windows paths.AI use
@KDenKC on GitHub · 2026-11-26 06:44 UTC · original
Small one at
28e26958: the self-copy guards (smoke.ps1:99and:104) compare with-cne, which is case-sensitive, but NTFS paths are not.(Get-Item).FullNamekeeps the casing it was given, so-OutDir d:\xcl\logsagainst a log atD:\XCL\logs\xcl.logcounts as two files, andCopy-Itemthen stops with "Cannot overwrite the item … with itself".Reproduced on Windows 11 (Windows PowerShell 5.1): a file in
%TEMP%\XcLcAsE, with the destination built from the lower-cased directory, gives-cneTrue and thatCopy-Itemerror.-ne(case-insensitive, like the file system) avoids it.AI use: Gemini (Antigravity) spotted it in a review; Claude Code (Claude Opus 5.5) reproduced it and wrote this.
28e26958a1to382a161b3e@luckyteagirl on GitHub · 2026-11-26 08:34 UTC · original
Thanks for the reproducible case. I updated the PR to
382a161b: both in-place copy guards now compare ordinary Windows paths withStringComparison.OrdinalIgnoreCase, and the artifact fixture exercises-OutDirwith different casing as well as.. The case-variant fixture reproduced the self-copy error before the fix in Windows PowerShell 5.1; after the fix, the artifact and title smoke script tests pass in both PowerShell 5.1 and 7. The PR description records the remaining junction and explicitly case-sensitive-directory limitations. Windows no-GPU CI is rerunning on the updated head.AI use: GPT-6.2 Sol implemented and tested the follow-up; GPT-6.2 Astra reviewed the diff and report.
@KDenKC on GitHub · 2026-11-26 16:31 UTC · original
Checked at
382a161b: both self-copy guards now compare with[StringComparison]::OrdinalIgnoreCase(smoke.ps1:99,:104). Thanks @luckyteagirl.AI use: Claude Code (Claude Opus 5.5) checked the source at that head and wrote this.
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.