Skip to content

Report empty XCL smoke logs clearly - #2667

Open
luckyteagirl wants to merge 1 commit into
xcl-dev:mainfrom
luckyteagirl:codex/smoke-empty-log-diagnostic
Open

luckyteagirl wants to merge 1 commit into
xcl-dev:mainfrom
luckyteagirl:codex/smoke-empty-log-diagnostic

Conversation

@luckyteagirl

Copy link
Copy Markdown
Contributor

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

  • Stop before parsing an empty or whitespace-only log and report its path.
  • Add a mock XCL fixture for both cases.

Tested

  • The new fixture failed against main b49be183 on PowerShell 5.1 and 7.6.9 because main did not emit the empty-log diagnostic.
  • scripts/test-smoke-empty-log.tests.ps1 and scripts/test-smoke-artifacts.tests.ps1 passed on PowerShell 5.1 and 7.6.9.
  • git diff --check passed.

Regression run

  • Not applicable. The change affects only the smoke script and its test.

Not tested

  • A retail title or the Rust/GPU suite.

AI use

  • Codex (GPT-6.2 Sol) implemented the change and test, verified behavior against main, and drafted this description.

@luckyteagirl
luckyteagirl marked this pull request as ready for review November 26, 2026 05:44
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

Nothing has happened on this PR for 3 days, so it is marked stale and will be closed in 4 days. A push or a comment takes the mark off: rebase it onto main if it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.

@github-actions github-actions Bot added the stale No activity for 3 days; closed 4 days later unless something happens label Dec 1, 2026
@Foniass

Foniass commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Triage (#1607) – head 6bacea4

No 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 $text null, so [regex]::Matches($text, ...) fails with an unrelated null-argument error. A whitespace-only log produces a block with no frames. Both now stop with XCL 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale No activity for 3 days; closed 4 days later unless something happens

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants