Scripts: report the build commit for an external smoke executable #1591
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1591
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@alpz1000 on GitHub · 2026-11-24 18:01 UTC · original
alpz1000:scripts/smoke-build-provenance→main· +14 −3 · 1 files · 1 commits · openWhat 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.
@fromthemoonx on GitHub · 2026-11-24 18:17 UTC · original
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
@DavidM1911 on GitHub · 2026-11-24 20:12 UTC · original
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!
@JJAutoCompare on GitHub · 2026-11-25 05:09 UTC · original
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.@RavenCurseBurg on GitHub · 2026-11-25 19:35 UTC · original · edited 2026-11-25 19:43 UTC
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.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.