gpu(native): image dumps make their folder and log a write that fails (#532) #543
No reviewers
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS!543
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-539"
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?
@marcus-4 on GitHub · 2026-11-28 01:51 UTC · original
marcus-4:fix/trace-passes-dump-folder→main· +36 −6 · 2 files · 2 commits · merged 2026-11-28 03:59 UTCRefs #536
VICTORY_TRACE_PASSES=<dir>,...wrote each.ppmwithstd::fs::writeinto<dir>without making the folder and threw the error away, so a folder that did not exist gave a run withPASS/PASSTEXlines and no pictures.VICTORY_DUMP_TARGETSandVICTORY_DUMP_TITLE(same file, same pattern) had the same problem.glue::write_dump, makes the folder (create_dir_all) and writes the image. The first write that fails is logged as a warning, and later ones are not, so a bad folder costs one line, not one line per image.glue.rsuse it.a_dump_makes_its_folder_and_reports_a_write_it_cannot_make(no GPU). It writes into a nested folder that does not exist yet, then checks that a write under a file fails without a panic.docs/native-host.md: theVICTORY_TRACE_PASSESentry says the folder is made.Checked locally (M1 Pro, macOS 27.2): clippy for
x86_64-pc-windows-gnullvmwith-D warnings,cargo xtask policy,cargo test -p victory-gpu -p xtask(447 + 6 passed). No game run: this only changes where images are written.@Olima34 on GitHub · 2026-11-28 02:09 UTC · original · requested changes
Thanks @marcus-4. We read the whole diff (
ba5a77c9) while helping the maintainer clear the queue, and it holds up: onewrite_dumphelper that makes the folder and warns once on the first failed write, used by all three dump switches, with a test for both cases.The only blocker: #539 (
VICTORY_SKIP_PIPELINESon macOS) just merged, and it adds a line next to theVICTORY_TRACE_PASSESentry in the switch list ofdocs/native-host.md, so this branch now conflicts there. Could you merge currentmaininto the branch and keep both lines? Once CI is green on the new head, we'll merge it.@marcus-4 on GitHub · 2026-11-28 03:07 UTC · original
@Olima34 done:
mainis merged in (0702abb9), keeping both lines in the switch list (VICTORY_SKIP_PIPELINESfrom #539, then theVICTORY_TRACE_PASSESentry with the folder note), and CI is green on that head.@LakshanSivakumar on GitHub · 2026-11-28 03:40 UTC · original · approved these changes
@LakshanSivakumar on GitHub · 2026-11-28 03:41 UTC · original
@Olima34 main is merged in (
0702abb9) and CI is green, and I have approved it. Your change request is the only thing still blocking the merge. Could you approve or dismiss it? Then this can go in.@Olima34 on GitHub · 2026-11-28 03:59 UTC · original · approved these changes
Check report on the updated head
0702abb9(helping the maintainer clear the queue):checkandmacos-scriptsgreen.write_dumphelper as before (makes the folder, warns once), used byVICTORY_DUMP_TITLE,VICTORY_DUMP_TARGETSandVICTORY_TRACE_PASSES, with its test. The docs conflict is resolved, keeping #539's line.9c001aa7) + this PR + #560:victory-gputests pass 2/2 (arm64, 449), Windows clippy (-D warnings) clean,cargo xtask policyok.Thanks @marcus-4!