Scripts: smoke blocks name the game folder by a hash, not its name #689
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!689
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/689/head"
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?
@grahamster2 on GitHub · 2026-11-24 03:31 UTC · original
grahamster2:scripts-smoke-title-hash→main· +59 −3 · 2 files · 1 commits · merged 2026-11-24 20:59 UTCscripts/smoke.ps1printed the game folder's name on thetitle:line of everyxcl-smokeblock, so PR descriptions named people's copies of a retail game. It now prints the first 8 hex digits of the SHA-256 of the folder name (trimmed, UTF-8), the same as Python'shashlib.sha256(name.strip().encode()).hexdigest()[:8], so existing blocks can be converted and keep matching.pr_check.pyonly compares the main and PR titles for equality, so the check is unchanged.-Title <label>prints a label of your choice instead. Fixes #677What is in it
scripts/smoke.ps1: thetitle:line is the hash of the folder name, or the-Titlelabel (trimmed; empty labels, control/format/line-separator characters and backticks are refused, sincepr_check.pysplits lines withstr.splitlines()and a U+2028 would add keys likecommit:to the block)scripts/smoke-title.tests.ps1: checks the hash of ASCII, accented, CJK and emoji names against Python's values, a trailing\on-Game,-Title, and the refused labels, with a stand-in forxcl.exe(same pattern astest-native-stderr.tests.ps1)Tested
powershell.exe -File scripts/smoke-title.tests.ps1andpwsh -File scripts/smoke-title.tests.ps1:smoke-title: okon both; the test fails onmain'ssmoke.ps1(prints the name, not the hash)python -m unittest test_pr_checkinscripts/: 3 tests, OKpr_check.check()on sample descriptions: hash/hash and label/label pairs pass; a main block with the plain name against a PR block with the hash is refused as different titlesNot tested
cargo build/cargo testnot run, and no regression run: the change is only inscripts/, not the runtimexcl.exeor a real title (the tests use a stand-in that prints a log path)mainprints the hash, so the two blocks won't match: rebase, or pass the same-Titleto both runs-Titlewith a neutral label if that matters. The hash is case-sensitive, so type the folder's name with the same casing in both runsAI use
github-bot referenced this pull request2026-11-26 04:59:09 +00:00
@thehollowedone on GitHub · 2026-11-24 03:38 UTC · original
Tested
I ran the old and new smoke scripts with the real
xcl.exeand XCL’s synthetic test title. The title fixture used a generated folder name containing CJK characters and an emoji. I removed its test-only--helloassertion so it could run under the unmodified smoke scripts.91f9a5eprinted the synthetic folder’s basename.9683e7aprinted the same independently computed Python SHA-256 prefix in PowerShell 7 and Windows PowerShell 5.1. The explicit-Title 'Synthetic fixture'worked in 5.1. None of the three patched blocks contained the synthetic basename or full path.cargo build --offline --locked --workspacepassed. All fourscripts/smoke.ps1invocations used the same debug launcher, a fresh title-data directory and a 20-second limit. Each block identified the script tree’s expected commit, with exit0x0, zero crashes and zero device removals. Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti / 621.35, Rust 1.99.1 MSVC.Not tested
Retail titles or failure output.
AI use
Codex with GPT-6.2 Sol prepared the synthetic fixture, ran the checks, and drafted this report.
@upipibi on GitHub · 2026-11-24 05:41 UTC · original
Full-suite run on this PR's head
9683e7a, for the counts CONTRIBUTING.md item 2 asks for:Tested
cargo build --workspacethencargo test --workspace --no-fail-fast -- --test-threads=4: 692 passed, 0 failed, 41 ignored (16 test binaries, the e2e title included)gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware(no wave64)Not tested: AMD / wave64; no retail title (this PR changes only
scripts/).AI-assisted (Claude Code).