gpu(native): image dumps make their folder and log a write that fails (#532) #539
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by marcus-4 on 2026-11-28T01:51:11Z.
Refs #532
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.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-28T02:09:39Z.
Review: CHANGES_REQUESTED
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: #535 (
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.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by marcus-4 on 2026-11-28T03:07:19Z.
@Olima34 done:
mainis merged in (0702abb9), keeping both lines in the switch list (VICTORY_SKIP_PIPELINESfrom #535, then theVICTORY_TRACE_PASSESentry with the folder note), and CI is green on that head.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by LakshanSivakumar on 2026-11-28T03:41:43Z.
@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.Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by Olima34 on 2026-11-28T03:59:17Z.
Review: APPROVED
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 #535's line.9c001aa7) + this PR + #556:victory-gputests pass 2/2 (arm64, 449), Windows clippy (-D warnings) clean,cargo xtask policyok.Thanks @marcus-4!