Scripts: hash the smoke block title instead of the folder name (#677) #699
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/704"
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 Luxuryig on 2026-11-24T03:53:28Z.
scripts/smoke.ps1printed the game folder's leaf name on thetitle:line of everyxcl-smokeblock. Those blocks are pasted into pull requests, so the folder name (sometimes a scene tag) became public text. The line is now the first 8 hex characters of SHA-256 over the UTF-8 of that leaf, lowercased.pr_check.pyonly compares the twotitle:strings, so a main run and a head run of the same folder still match.-Titleprints a label instead, as given; both runs of a pair have to use the same label. This does not edit descriptions already on other pull requests.Fixes #677
What is in it
scripts/smoke_title.ps1:Get-XclSmokeTitlehashes the lowercased folder leaf, or returns-Titlewhen it is not blankscripts/smoke.ps1: thetitle:line uses that function, and-Titleis an optional parameterscripts/test-smoke-title.tests.ps1: known SHA-256 prefixes for an ASCII leaf, a mixed-case leaf, a spaced name, andcafé, plus the label overrideTested
.\scripts\test.ps1(debug) on this commit: exit 0. 692 passed, 0 failed, 41 ignoredgpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware(no wave64)XCL_SAMPLE_RPF,XCL_SAMPLE_DLLS,XCL_SAMPLE_TTPF,XCL_SAMPLE_BK2,XCL_SAMPLE_BVH4,XCL_SAMPLE_AWC,XCL_SAMPLE_XG,XCL_SAMPLE_DXCpowershell.exe -NoProfile -File .\scripts\test-smoke-title.tests.ps1:smoke title tests passedpython .\scripts\test_pr_check.py: 3 tests, OKAtomic::fetch_updateincrates/xcl/src/hle/xgameruntime/mod.rs:547(not touched)Regression run
Not a runtime change. No
xcl-smokeblocks.Not tested
AI use
Imported from ivall/xcl. Originally posted by RandomGithub12309 on 2026-11-24T04:39:46Z.
Independent test report and review of
4f39d23db396b2ab6b30d6a9917acce74c7f73e2:Tested
powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\test-smoke-title.tests.ps1→smoke title tests passedGet-XclSmokeTitleproduces matching hashes for'C:\Games\MyTitle'and'C:\Games\MyTitle\'(2ab7d6c1).Review
#689: Both PRs address#677inscripts/smoke.ps1and produce different hashes (#704lowercases without trimming whitespace;#689trims without lowercasing).-Titlecontrol characters:Get-XclSmokeTitlereturns-Titleverbatim when non-whitespace (verifiedGet-XclSmokeTitle -Game 'C:\Games\MyTitle' -Title "a\nb"returns"a\nb"), which splits the single-linetitle:field forscripts/pr_check.py`.$PSScriptRootdefault-parameter bug remains:smoke.ps1still defaults-Xcl = (Join-Path $PSScriptRoot '..\target\release\xcl.exe')insideparam(), failing when invoked without-Xclfrom the repo root on PowerShell 5.1 (fixed in#629).Not tested
pwsh), full retailsmoke.ps1runAI use
4f39d23, audited the diff, ran the PowerShell checks, and wrote this report.Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T04:44:12Z.
Tested exact head
4f39d23.Tested
powershell -NoProfile -File scripts/test-smoke-title.tests.ps1:smoke title tests passed. This test exercisessmoke_title.ps1alone, so it also passes with the parent'ssmoke.ps1; I checked the wiring intosmoke.ps1separately:My Game Folderand a fakexcl.cmdthat prints a log path (the same kind of fixturesmoke-environment.tests.ps1uses),smoke.ps1 -Game <folder> -Seconds 1 -Xcl <fake>: the block saystitle: 1c6c7aa2, which is the first 8 hex digits of SHA-256 ofmy game folder(checked in Python). On the parent63cdc25the same run printstitle: My Game Folder.Not tested
-Title, PowerShell 7, a real title.AI use
Imported from ivall/xcl. Originally posted by raylitebull on 2026-11-24T10:43:56Z.
Closing as a duplicate of #689, which already passes both
Build and testandPR descriptioncleanly.upstream-sync referenced this pull request2026-11-24 19:06:45 +00:00
upstream-sync referenced this pull request2026-11-24 22:05:13 +00:00
Pull request closed