Census: report directory traversal failures #115
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!115
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/115/head"
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?
@ZekkJJ on GitHub · 2026-11-24 00:38 UTC · original
ZekkJJ:codex/census-scan-errors→main· +49 −8 · 2 files · 1 commits · merged 2026-11-25 00:07 UTCWhat
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.
@noviw-rblx on GitHub · 2026-11-24 00:44 UTC · original
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.@ZekkJJ on GitHub · 2026-11-24 00:59 UTC · original
LGTM
@DaviTostes on GitHub · 2026-11-24 01:13 UTC · original
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.
@KevinPratap on GitHub · 2026-11-24 07:22 UTC · original
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.