Repository navigation
Census: report directory traversal failures - #115
Merged
Merged
Conversation
Fail when a requested scan root cannot be opened. Report traversal errors below a readable root alongside the other skipped inputs.
Contributor
Author
|
LGTM |
|
Tested
No game data used. |
edsuuu
referenced
this pull request
in edsuuu/VI-BR-PORT
Nov 24, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Closed
Contributor
mercuryVM
approved these changes
Nov 24, 2026
mercuryVM
left a comment
There was a problem hiding this comment.
Tested b1bdd89 on Windows 11, RTX 5070, MSVC: cargo test --workspace --no-fail-fast passes (247 passed, 0 failed; older base), including the two new tests/census.rs integration tests.
walkdir reports a missing or unreadable root as an error at depth 0. Failing the command there, with the path in the context, and recording deeper errors alongside unreadable images matches what a user would expect. Before, a typo in the path printed a clean "0 images scanned". The tests run the built victory binary on the crate's own Cargo.toml and a missing sibling, so they use no title data.
No issues found.
AI-assisted (Claude Code).
mercuryVM
added a commit
to mercuryVM/VIctory
that referenced
this pull request
Nov 24, 2026
…ilures Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
github-actions Bot
added a commit
to KevinPratap/VIctory
that referenced
this pull request
Nov 24, 2026
github-actions Bot
added a commit
to KevinPratap/VIctory
that referenced
this pull request
Nov 24, 2026
github-actions Bot
pushed a commit
to KevinPratap/VIctory
that referenced
this pull request
Nov 24, 2026
Merges Marvisak#115 Marvisak#151 Marvisak#238 Marvisak#353 Marvisak#378 Marvisak#476 Marvisak#482 Marvisak#535 Marvisak#649 Marvisak#664 Marvisak#1177 onto main (ffe310e), each head unchanged, no conflicts. One change of mine: Marvisak#378 turns the duplicate check in translate.rs into a nested `if !seen.insert(..) { if !list { .. } }`, which clippy::collapsible_if rejects under -D warnings; it is now one `if !seen.insert(..) && !list` (clippy --fix, same behaviour). cargo clippy --workspace --all-targets --locked -- -D warnings, with and without --all-features, is clean and cargo test --workspace --locked passes (354 passed, 6 ignored; main has 342 passed, 6 ignored). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
github-actions Bot
added a commit
to KevinPratap/VIctory
that referenced
this pull request
Nov 24, 2026
github-actions Bot
added a commit
to KevinPratap/VIctory
that referenced
this pull request
Nov 24, 2026
LukeFarch
pushed a commit
to LukeFarch/VIctory
that referenced
this pull request
Nov 25, 2026
The title shows one physical page at several addresses. A copy taken through one of them was guarded at that address only, so a write through another left the copy as it was for the rest of the run. On one machine the first room's walls and a face's shading came back in two runs out of two; the walls also came back by themselves in some earlier runs, so this is not proof. Code of victory-fork Marvisak#115 by Spexivus (the index of the views of each page, the guard over all of them), with joroyt's correction of it (another view is made read-only, not noted clean) and the set of aliased blocks of VIctory Marvisak#1122 by tightfall. Added here: a page of more than 64 views is guarded one view at a time, a switch (VICTORY_VIEW_GUARD=0), counts in the diagnostics log, and tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Ported onto this fork's own-write settling (own_write_begin and own_write_end open and guard through the same paths). Claude-Session: https://claude.ai/code/session_01DnmJgv1UMusjz7uG9bKMA7
Vaximous
pushed a commit
to Vaximous/VIctory
that referenced
this pull request
Nov 25, 2026
…rites counted; levels on demand (off); warm-up; card memory numbers Memory sync: - The guard over every view of a physical page (code by myokex, victory-amd c6dc4d8, after pull request Marvisak#115 by Spexivus, its correction by joroyt and a part of VIctory Marvisak#1122 by tightfall): the title shows one page at several addresses and a copy was guarded at one only. 0.8 to 1.0 million writes through another view in a five-minute run on the test machine. VICTORY_VIEW_GUARD=0 turns it off. - Kernel reads into title memory are read beside and copied in (Joshua Odom, 10ea38e). - Writes of the storage layer into physical pages are counted where the title has the pages mapped and can open the guards there (VICTORY_PAGE_WRITES, off: counted only). Failed page-destination reads are retried. Card memory: - Levels on demand, off unless VICTORY_LEVELS_ON_DEMAND=1: a texture the title fills takes card memory for the levels the title holds; held levels get memory only while the card has room and are asked for again. Its test runs on the software adapter; not run on a card yet. - Refused texture slots are held back so a pass reaches the slots behind them; room can be kept for card copies of title buffers (off). Tools: translate --warm all; the shader cache is keyed on the translator's source; counters for copy-back races, page writes and the copies the texture sweep never lets go; a walls trace. Game runs of these changes on an RTX 4070: five five-minute runs without a device loss or a failed request. This merged tree was built; its test suites were run on the tree the changes come from (gpu 129, hle 97). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
victory censusdiscarded errors from the directory walker. A missing input path could exit successfully and report zero images and zero unreadable files.Return a nonzero exit status with the path when a scan root fails. Report traversal errors within a readable root alongside skipped inputs while continuing to scan its other entries.
Tested
cargo test --locked --workspace -- --nocapturereported 247 passed, 0 failed, and 3 ignored. Four shader tests returned early because their compiler prerequisites were unavailable.cargo clippy --locked -p victory --all-targets, rustfmt on both changed files, andcargo xtask policypassed.AI assistance: Codex wrote the patch and tests and ran the checks. No game files were used.