Scripts: smoke blocks name the game folder by a hash, not its name #684
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/689"
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 grahamster2 on 2026-11-24T03:31:33Z.
scripts/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
Imported from ivall/xcl. Originally posted by thehollowedone on 2026-11-24T03:38:16Z.
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.
Imported from ivall/xcl. Originally posted by upipibi on 2026-11-24T05:41:11Z.
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).
mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #172mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #172mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #172mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #172upstream-sync referenced this pull request2026-11-24 11:05:44 +00:00
mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #172upstream-sync referenced this pull request2026-11-24 23:06:49 +00:00
xcl nvprofileputs xcl.exe in an NVIDIA profile with a bigger shader heap (#2403) #2580mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #172mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #172