Report empty XCL smoke logs clearly #2657
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2667"
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-26T05:39:02Z.
When XCL reports a log path but writes no log content, the smoke script can fail in a regex with a null-input exception. A whitespace-only log can produce a smoke block without any run evidence.
What is in it
Tested
b49be183on PowerShell 5.1 and 7.6.9 because main did not emit the empty-log diagnostic.scripts/test-smoke-empty-log.tests.ps1andscripts/test-smoke-artifacts.tests.ps1passed on PowerShell 5.1 and 7.6.9.git diff --checkpassed.Regression run
Not tested
AI use
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-12-01T02:32:58Z.
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-01T08:38:06Z.
Triage (#1607) – head
6bacea4No open or merged PR adds this check. Its shared lines with #2672, #2684 and #2654 are the test fixture boilerplate, and those PRs change other parts of
smoke.ps1(relative -Xcl, relative -Game, untracked files). On main an empty log leaves$textnull, so[regex]::Matches($text, ...)fails with an unrelated null-argument error. A whitespace-only log produces a block with no frames. Both now stop withXCL log is empty: <path>.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Imported from ivall/xcl. Originally posted by Decodere on 2026-12-02T09:14:16Z.
merge-check
base:
1c8b551475head:
6bacea4409merge: clean (
git merge --no-editonto1c8b5514,git diff --checkclean;scripts/smoke.ps1+1,scripts/test-smoke-empty-log.tests.ps1+26)build: not run (Tier 0 PowerShell script diff touching only
scripts/; no Rust code changed)tests: Windows PowerShell 5.1 (
5.1.26100.8457):scripts/test-smoke-empty-log.tests.ps1-> ok (smoke-empty-log: ok); other passing scripts (perf-compare.tests.ps1,perf-run.tests.ps1,smoke-title.tests.ps1,test-smoke-artifacts.tests.ps1) -> 4/4 ok.test-native-stderr.tests.ps1fails with exit 127 identically on clean base1c8b5514(pre-existing mockcargo.cmdmismatch withcargo benchinscripts/test.ps1). Rust workspace tests not run (Tier 0); PowerShell 7 not installed here.review: Read the full merged diff (
scripts/smoke.ps1:79,scripts/test-smoke-empty-log.tests.ps1). Guarding$textwith[string]::IsNullOrWhiteSpace($text)handles both an empty file (whereGet-Content -Rawreturns$nullon PowerShell 5.1, avoiding a null-argument exception in[regex]::Matches) and whitespace-only logs, failing immediately with a clearXCL log is empty: ...diagnostic. Both cases are covered by the new fixture test. Clean, minimal, no regressions.performance: none (script-only change in
scripts/; zero runtime impact)verdict: safe to merge
hardware / tool and model: NVIDIA GeForce RTX 4060 8 GB (driver 621.40), Intel Core i5-11400F, 32 GB RAM, Windows 11 Build 26200, Windows PowerShell 5.1.26100.8457, Rust 1.100.1 MSVC, DXC 1.9.2602.17 / Antigravity (Gemini 4 Neon)
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.