Census: report directory traversal failures #115
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/115"
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 Marvisak/VIctory. Originally posted by ZekkJJ on 2026-11-24T00:38:50Z.
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.
Imported from Marvisak/VIctory. Originally posted by noviw-rblx on 2026-11-24T00:44:05Z.
checked: #115 | with: cargo test -p victory --test census | on: Windows 10, Rust 1.98.1, head
b1bdd899, CPU only | result: 2 passed (census_fails_when_a_requested_path_is_missing, census_accepts_a_valid_path_with_no_pe_images). No game data required.Imported from Marvisak/VIctory. Originally posted by ZekkJJ on 2026-11-24T00:59:17Z.
LGTM
Imported from Marvisak/VIctory. Originally posted by DaviTostes on 2026-11-24T01:13:14Z.
Tested
b1bdd89: pass.cargo xwin test ... -p victory.tests/census.rs: 2 passed. The app's own test (loader_lock_is_reentrant_and_exclusive) also passes.No game data used.
Imported from Marvisak/VIctory. Originally posted by KevinPratap on 2026-11-24T07:22:12Z.
These census tests fail once #535 (asset-policy check in
default_paths) is merged too, because they census the crate's ownCargo.toml, inside the source tree. Fix against this branch, verified alone and with #535: https://github.com/ZekkJJ/VIctory/pull/1. AI-assisted.Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T09:04:56Z.
Review: APPROVED
Tested
b1bdd89on Windows 11, RTX 5070, MSVC:cargo test --workspace --no-fail-fastpasses (247 passed, 0 failed; older base), including the two newtests/census.rsintegration tests.walkdirreports 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 builtvictorybinary on the crate's ownCargo.tomland a missing sibling, so they use no title data.No issues found.
AI-assisted (Claude Code).