tools(macos): say which archives a downloader has not filled in yet #639
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!639
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-635"
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?
@AnastasisKon on GitHub · 2026-11-28 17:51 UTC · original
AnastasisKon:vibe/check-game-data-4f9c68→main· +32072 −2516 · 174 files · 277 commits · openCloses #638.
What
A folder that is still downloading looks complete: a preallocating client leaves every archive at its full length with the parts it has not downloaded reading as zeros, so
GetFileSizeEx, theRPF9header and the tail piece all look valid and the data in the middle is absent.#632measured that shape on this Mac —shaders.rpfholding 3 of its 25 pieces while being 411,695,600 bytes long — and the cost of not knowing is a run that ends in the int3 atimage+0x1330a44, which reads as a host problem.tools/macos/check-game-data.sh [--samples N] <game folder>samples 4 KiB blocks spread over every.rpf, prints per archive how many samples were holes, names the ones that are missing data, and exits 1 when any is (2 for a folder with no archive or a bad argument). The blocks come from a sparse read, so the 142 GB folder here takes about a second and a half:tools/macos/tests/check-game-data.shcovers it with fixtures, and the CImacos-scriptsjob runs it beside the other script regressions. One sentence inREADME.md's "Run the game" points at the script.Testing
/bin/bash tools/macos/tests/check-game-data.sh— 10PASSlines (complete folder, a hole named, a file with only its header and tail filled in, a small archive read block by block, the sample count, no archive, a missing folder, bad arguments, several folders including one with spaces,--help).nice -n 10 sh tools/macos/verify.sh full—== gate PASSED ==(suite-hle 554, suite-shader 593, suite-gpu 493, policy, clippy-win)./Volumes/Anastasis' SSD/GTA6.Xbox.v1.0.2.1-CYBERLEEK: 142 GB allocated, 12 archives, exits 1, and the archives it clears (anim,audio,data,common,script,textures,appdata0) are the ones the torrent's piece map also reports complete.declare -A, no Python; writes nothing outside$TMPDIRin the test.Not claimed
That holes are the only reason a folder fails to boot, and nothing about the host: the check reads the game folder and never writes to it.
The reason line ("a draw without a host render pipeline (refused or not translated)") does not say which pipeline was dropped, and it is logged once per reason for the run, so a log could not name the draws nothing else had explained (#531's three hashes). Each dropped pipeline now gets one warning of its own with `pipeline =` its stages' hashes and render targets, up to 64 keys, before the `VICTORY_TRACE_TARGETS` frame trace that had this detail only under a switch. Test: `glue::a_dropped_pipeline_is_named_once`.`VICTORY_DUMP_DSP` is process-wide and so is the counter that numbers each stream's capture, so a stream another test activates while the variable is set takes `stream0_*` — and the dump test, reading the right file name, got that stream's zeros: ``` panicked at modules/dsp.rs:949: assert_eq!(read_f32("stream0_ir.f32"), ir) left: [0.0, 0.0, ... ] ``` One run in four of the whole suite, never alone. The two tests that activate streams now take a turn, so nothing can start a stream inside the other's capture. 15 runs of `victory-hle`'s suite: no failures.The Winsock tests take a turn (`serial()`) because the startup count is the process's — but `modules::net`'s `only_loopback_is_reachable` drives the same functions by name (`host!("ws2_32.dll", "socket")`, `connect`, `WSAConnectByNameA`, `WSAIoctl`, `closesocket`) without it. It can therefore start the stack up inside `off_machine_traffic_is_refused`'s "not started again" assertion, or take an ephemeral port inside `final_cleanup_invalidates_sockets_and_releases_their_ports`'s rebind of one it just released — the two winsock failures reported in #616. The turn now lives in `host_posix` (`winsock_turn`), and both modules take it; it is compiled only where that host is. The Winsock module alone never failed (0 of 20 runs), which is what pointed at the other module rather than at the socket code. 12 runs of `victory-hle`'s suite: no failures.Four measurements that close off the cheap explanations before the next person spends runs on them: a periodic dump shows every other thread idle (so nothing can ever satisfy the wait), the console model makes no difference, the records around the missing key are an index of {size, hash, kind, offset} entries that already names it, and the table slots the lookup reads are never written. The pool's alias views are coherent too -- the same record reads the same through both, so aliasing is not what fails.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.