Skip to content

Scripts: mark untracked crate inputs in smoke reports - #2654

Open
luckyteagirl wants to merge 1 commit into
xcl-dev:mainfrom
luckyteagirl:codex/smoke-untracked-build-inputs
Open

luckyteagirl wants to merge 1 commit into
xcl-dev:mainfrom
luckyteagirl:codex/smoke-untracked-build-inputs

Conversation

@luckyteagirl

Copy link
Copy Markdown
Contributor

smoke.ps1 prints a commit as clean even when an untracked file under crates can affect the locally built executable. For example, the DXIL build script recursively includes .rs files under crates/xcl/src/gpu/dxil in its source identity. Include non-ignored untracked build inputs in the smoke block's dirty check.

What is in it

  • Ask Git status to report non-ignored untracked files in the existing crates, Cargo.toml, and Cargo.lock scope.
  • Add a temporary Git repository fixture that checks untracked crate input marks the smoke block dirty, while an ignored crate file and a target artifact outside the path scope do not.

Tested

  • On current main b49be183, the new fixture failed because the untracked crate file left the smoke block clean. On this branch, scripts/test-smoke-dirty.tests.ps1, scripts/test-smoke-title.tests.ps1, and scripts/test-smoke-artifacts.tests.ps1 passed on Windows PowerShell 5.1 and PowerShell 7.6.9.
  • git diff --check and an independent source review passed.

Regression run

  • Not applicable. This changes only the PowerShell smoke helper and a fixture.

Not tested

  • A real local Cargo rebuild, retail title smoke pair, GPU tests, and the Rust workspace suite. The new fixture uses a mock XCL executable.

AI use

  • Codex (GPT-6.2 Sol) implemented and tested the change; another Codex Sol agent independently reviewed it.

@luckyteagirl
luckyteagirl marked this pull request as ready for review November 26, 2026 05:12
@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 cb360dc

No open PR changes the --untracked-files mode of the smoke dirty check. #2667 (empty log) and #2672 (relative -Xcl path) touch other lines of smoke.ps1; the lines shared with them are the PowerShell test fixture setup. #1591 restructures the same $dirty line for -BuildCommit and will conflict textually.
--untracked-files=normal makes new, non-ignored files under crates/ mark the block dirty, and the test checks that ignored files and files outside crates/ do not. 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.

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