Scripts: report the build commit for an external smoke executable #1581
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1591"
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 alpz1000 on 2026-11-24T18:01:55Z.
What is in it
scripts/smoke.ps1reads the commit from its own checkout even when-Xclpoints at a binary built elsewhere. In a paired regression test this can label a baseline binary with the PR checkout's commit.Add
-BuildCommitfor a clean external build with a known full SHA. Existing invocations still work. When-Xclis supplied without the build commit, warn that the reported provenance comes from the script checkout. The override uses the caller's supplied provenance.Tested
47efa2ewhile the script checkout was on a different commit. Verified the explicit SHA appeared, that omitting it preserved legacy output and emitted the warning, and that an invalid SHA was rejected.python -m unittest discover -s scripts: 16 passed.git diff --checkpassed.Not tested
Retail launches and Windows PowerShell 5.1. The fixture run checked smoke-block attribution.
AI use
OpenAI Codex (GPT-6) implemented the script change, ran the tests, and drafted this description.
Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-11-24T18:17:01Z.
Windows PowerShell 5.1 run, since Not tested lists it.
Tested
1336f1b83e688d2cca7474cbeae67e1c1fdca200(merges cleanly into currentmain9e3831e). I ran itsscripts/smoke.ps1with-Xclpointing at a debugxcl.exebuilt frommain9e3831e, on XCL's bundled test title (target/e2e-debug-layer/game):-Xclwith-BuildCommit <9e3831e… full SHA>: the block sayscommit: 9e3831e1f570d3646e53ab753b19ec07eb8f1485, nodirty, no warning.-Xclwithout-BuildCommit: the warning prints, and the block says the script checkout's commit (1336f1b…), as before.9e3831e): refused byValidatePattern.-BuildCommitwithout-Xcl: refused with-BuildCommit requires -Xcl. Iftarget\release\xcl.exedoes not exist, the olderno …\xcl.exe - build it firstcheck fires first instead; still a refusal.\z).-Xcland no-BuildCommit: no warning, the script checkout's commit, as before.scripts/pr_check.py'ssmoke_blocksreads the commit from case 1's block as the given SHA.python -m unittest discover -s scripts: 16 tests, OKThe test title ends early in all these runs (
crashes: 1,frames shown: none logged).main'ssmoke.ps1gives the same with the samexcl.exe, so the cause is the test title on a 10 s run, not this change.Not tested
AI use
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T20:12:09Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~22 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T05:09:03Z.
XCL PR #1591 focused Windows verification
Head
1336f1b83e688d2cca7474cbeae67e1c1fdca200, verified in a clean detached worktree. The PR changes onlyscripts/smoke.ps1and adds no checked-in tests.Tested
rustc -Vvreported 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc).dxc.exe --versionreported 1.9.2609.5 from the configured DXC directory.powershell.exe -NoProfile -ExecutionPolicy Bypass -File 'L:\XclTooling\sol-slot-7\tmp\verify-pr1591.ps1' 2>&1 | Tee-Object -FilePath 'L:\XclTooling\sol-slot-7\tmp\pr1591-focused.log'outside the Arc lock. Exit 0, 11 passed, 0 failed, 0 ignored, 0 skipped. Six cases started the synthetic executable and checked the output block. Five rejection cases ran before launch.Cargo.toml. The default executable used the checkout SHA quietly. An explicit executable without-BuildCommitwarned and reported the checkout SHA and its clean or dirty state. Abbreviated, nonhex, and newline-terminated SHAs were rejected, as was-BuildCommitwithout-Xcl.b7aa9f3bd212088e0d927439284dc5ed325ce3c7rejected-BuildCommitas an unknown parameter. With-Xclalone it printed its checkout SHA without a warning. The first harness run expected the parent to ignore the parameter. The final harness checks the observed rejection and the legacy invocation separately.report.jsonin place of the Windows adapter fallback. The original worktree stayed clean.Not tested
AI use
T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr1591-focused.logand published.Imported from ivall/xcl. Originally posted by RavenCurseBurg on 2026-11-25T19:35:37Z.
Resolved the
scripts/smoke.ps1conflict between this PR's1336f1band main889ef3e8aa7f. The merge commit on my fork has those two parents and preserves main's positionalTitleandOutDirarguments. Its artifact test checks the child exit in the manifest: supplying an external commit can skip Git entirely, so a fresh shell can have an unset$LASTEXITCODE.-BuildCommitwarned and reported the checkout state. With an uppercase external SHA, the printed block and saved manifest both named its lowercase value and reported a clean build, even when the script checkout was dirty.-BuildCommitwithout-Xclall failed before the fixture process started. Bothscripts/test-smoke-artifacts.tests.ps1andscripts/smoke-title.tests.ps1passed on the final merge.Windows 11 build 26100.9711, i7-13700. Synthetic executable and reports only. No retail game, Rust build or GPU suite. OpenAI Codex (GPT-6) resolved the conflict, extended the artifact test and ran the checks.
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-30T08:39:30Z.
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-01T06:12:30Z.
Triage (#1607) – head
1336f1bNo other open PR changes how smoke.ps1 names its commit (#1611 and #1863 change log parsing and artifacts). The PR conflicts with main, which has since added
-Title,-OutDirand-StartupTimeoutSecondsto the same param block.Concern in scripts/smoke.ps1: with
-BuildCommit,$dirtyis set to$falseand the SHA is taken as given, so the block claims a clean build of a commit nothing verified.pr_check.pyrelies on that line to accept a regression run. Reading the commit from the binary (e.g. a build-timegit rev-parseembedded in xcl.exe), or at least marking the block as caller-supplied, would keep the check meaningful.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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.