fix(tools): mask the repo folder in hardware reports from source builds #16
No reviewers
Labels
No labels
accessibility
bug
cross-platform
documentation
duplicate
enhancement
gdk-shims
good first issue
graphics
hardware-report
help wanted
invalid
question
shaders
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/californiaAlmonds--OpenScarlett!16
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/16/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?
@marquezinii on GitHub · 2026-11-22 07:33 UTC · original
marquezinii:fix/hw-report-repo-path→main· +25 −0 · 1 files · 1 commits · merged 2026-11-22 08:08 UTCRunning
run_hardware_test.ps1from a source build (build\) leaks the local repo path into the report. The loader puts its work dir under<repo>\.tmp\openscarlett_runwhen the executable sits in abuild/binfolder (ResolveDefaultWorkDirW,src/loader/vfs_mounts.cpp), andSanitize-Textonly masks the bundle dir and the user-profile folders. In my run about 30 lines like this ended up in the report:The script now mirrors the loader's rule (
build/bin, optionally followed byDebug/Release/RelWithDebInfo/MinSizeRel) and replaces that parent folder with<REPO_DIR>. It never masks a folder that contains the user profile or a drive root, so the existing<USER_HOME>and username rules keep working for release bundles extracted under the user folder.Tested
Windows 11 26H2, RTX 5070 (driver 621.24), source build at
7ba25f7:run_hardware_test.ps1 -NoSubmitfrombuild\gives 42/42, and the report now shows<REPO_DIR>\.tmp\openscarlett_run\...with no local path left.@californiaAlmonds on GitHub · 2026-11-22 08:08 UTC · original · approved these changes
Reviewed and verified against ResolveDefaultWorkDirW in src/loader/vfs_mounts.cpp (including multi-config build/Release, USERPROFILE overlap, and drive-root guards). Merging!