Scripts: mark untracked crate inputs in smoke reports #2644

Open
luckyteagirl wants to merge 1 commit from upstream-pr/2654 into main
luckyteagirl commented 2026-11-26 05:08:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-26T05:08:15Z.


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.
<!-- greyfinch-sync:ivall/xcl:issue:5504363793 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2654). Originally posted by [luckyteagirl](https://github.com/luckyteagirl) on 2026-11-26T05:08:15Z. --- `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.
github-actions[bot] commented 2026-12-01 02:32:10 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-12-01T02:32:10Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7298721075 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2654#issuecomment-7298721075). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-12-01T02:32:10Z. --- 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.
Foniass commented 2026-12-01 08:35:10 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:35:10Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7305512699 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2654#issuecomment-7305512699). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T08:35:10Z. --- **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.
Decodere commented 2026-12-02 09:14:13 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Decodere on 2026-12-02T09:14:13Z.


merge-check
base: 1c8b551475
head: cb360dcd74
merge: clean (git merge --no-edit onto 1c8b5514, git diff --check clean; scripts/smoke.ps1 +1/-1, scripts/test-smoke-dirty.tests.ps1 +39)
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-dirty.tests.ps1 -> ok (smoke-dirty: 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.ps1 fails with exit 127 identically on clean base 1c8b5514 (pre-existing mock cargo.cmd mismatch with cargo bench in scripts/test.ps1). Rust workspace tests not run (Tier 0); PowerShell 7 not installed here.
review: Read the full merged diff (scripts/smoke.ps1:38, scripts/test-smoke-dirty.tests.ps1). Switching git status --porcelain from --untracked-files=no to --untracked-files=normal for -- crates Cargo.toml Cargo.lock marks non-ignored untracked crate files as (uncommitted changes) while continuing to ignore .gitignore entries and files outside crate inputs. The self-contained temp-repo test verifies ignored files, out-of-scope target/ files, and untracked crates/ files. 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)

<!-- greyfinch-sync:ivall/xcl:comment:7340582913 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2654#issuecomment-7340582913). Originally posted by [Decodere](https://github.com/Decodere) on 2026-12-02T09:14:13Z. --- merge-check base: 1c8b551475e1e7bfe48f94448492a4c3544a2e0f head: cb360dcd7444d23c379116d128bbf9d47300be01 merge: clean (`git merge --no-edit` onto `1c8b5514`, `git diff --check` clean; `scripts/smoke.ps1` +1/-1, `scripts/test-smoke-dirty.tests.ps1` +39) 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-dirty.tests.ps1` -> ok (`smoke-dirty: 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.ps1` fails with exit 127 identically on clean base `1c8b5514` (pre-existing mock `cargo.cmd` mismatch with `cargo bench` in `scripts/test.ps1`). Rust workspace tests not run (Tier 0); PowerShell 7 not installed here. review: Read the full merged diff (`scripts/smoke.ps1:38`, `scripts/test-smoke-dirty.tests.ps1`). Switching `git status --porcelain` from `--untracked-files=no` to `--untracked-files=normal` for `-- crates Cargo.toml Cargo.lock` marks non-ignored untracked crate files as `(uncommitted changes)` while continuing to ignore `.gitignore` entries and files outside crate inputs. The self-contained temp-repo test verifies ignored files, out-of-scope `target/` files, and untracked `crates/` files. 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)
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2654:upstream-pr/2654'
git switch 'upstream-pr/2654'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/2654'
git switch 'upstream-pr/2654'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2654'
git switch 'upstream-pr/2654'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2654'
git switch 'main'
git merge --squash 'upstream-pr/2654'
git switch 'main'
git merge --ff-only 'upstream-pr/2654'
git switch 'main'
git merge 'upstream-pr/2654'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!2644
No description provided.