Report effect databases in shader-info effects mode #2319

Open
DoubleD17 wants to merge 1 commit from upstream-pr/2321 into main
DoubleD17 commented 2026-11-25 10:36:40 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by DoubleD17 on 2026-11-25T10:36:40Z.


The shader-info effects mode listed parsed effects and then printed a misleading zero-container summary. Count the SGD5 effect databases the parser recognizes and print that total in effects mode. The standard shader-info command retains its container summary. On Windows with Rust 1.98.1, the synthetic CLI integration test failed on main with the fixture applied and passed on this commit. It covers a recognized effect database, input with zero effect databases, and the standard summary.

AI-assisted.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6602533214 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2321). Originally posted by [DoubleD17](https://github.com/DoubleD17) on 2026-11-25T10:36:40Z. --- The shader-info effects mode listed parsed effects and then printed a misleading zero-container summary. Count the SGD5 effect databases the parser recognizes and print that total in effects mode. The standard shader-info command retains its container summary. On Windows with Rust 1.98.1, the synthetic CLI integration test failed on main with the fixture applied and passed on this commit. It covers a recognized effect database, input with zero effect databases, and the standard summary. AI-assisted.
DenRakEiw commented 2026-11-25 11:04:53 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-25T10:42:03Z.

Review: APPROVED


Verified against origin/main (940d32f):

  • Returning the count of found sgd5 databases from list_effects and printing shader effect databases found: N in --effects mode avoids the misleading containers found 0 summary.
  • cargo test -p victory --test shader_effects: 1/1 passed.
  • cargo clippy -p victory --all-targets -- -D warnings: 0 warnings.
  • cargo xtask policy: 184 files ok.

AI-assisted (Gemini 4 Neon).

<!-- greyfinch-sync:Marvisak/VIctory:review:6056055160 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2321#pullrequestreview-6056055160). Originally posted by [DenRakEiw](https://github.com/DenRakEiw) on 2026-11-25T10:42:03Z. **Review:** APPROVED --- Verified against `origin/main` (`940d32f`): - Returning the count of found `sgd5` databases from `list_effects` and printing `shader effect databases found: N` in `--effects` mode avoids the misleading `containers found 0` summary. - `cargo test -p victory --test shader_effects`: 1/1 passed. - `cargo clippy -p victory --all-targets -- -D warnings`: 0 warnings. - `cargo xtask policy`: 184 files ok. AI-assisted (Gemini 4 Neon).
catminou4 commented 2026-11-25 11:04:53 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T10:54:07Z.

Review: COMMENTED


shader-info effects mode reports effect database count. Apps crate is Windows-only; static review — small reporting addition.

<!-- greyfinch-sync:Marvisak/VIctory:review:6056244293 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2321#pullrequestreview-6056244293). Originally posted by [catminou4](https://github.com/catminou4) on 2026-11-25T10:54:07Z. **Review:** COMMENTED --- shader-info effects mode reports effect database count. Apps crate is Windows-only; static review — small reporting addition.
cloph-dsp commented 2026-11-25 12:03:38 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by cloph-dsp on 2026-11-25T11:09:10Z.


Independent local validation (Windows, Rust 1.100.0/MSVC, head e3fd720, no game data): cargo test --locked -p victory --test shader_effects -> 1 test passed (shader_effects_has_its_own_summary), exit 0; only pre-existing deprecation warnings. cargo test --workspace --locked --no-fail-fast exits 0 both on this PR and on main 940d32f, so the new effects-mode summary adds no regression. AI-assisted (Hy4 flash). GPU/driver: N/A (CPU-only CLI test). No game data, assets or extracted content used.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7160662496 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2321#issuecomment-7160662496). Originally posted by [cloph-dsp](https://github.com/cloph-dsp) on 2026-11-25T11:09:10Z. --- Independent local validation (Windows, Rust 1.100.0/MSVC, head e3fd720, no game data): `cargo test --locked -p victory --test shader_effects` -> 1 test passed (`shader_effects_has_its_own_summary`), exit 0; only pre-existing deprecation warnings. `cargo test --workspace --locked --no-fail-fast` exits 0 both on this PR and on main 940d32f, so the new effects-mode summary adds no regression. AI-assisted (Hy4 flash). GPU/driver: N/A (CPU-only CLI test). No game data, assets or extracted content used.
Marvisak commented 2026-11-25 16:09:08 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T15:17:40Z.


Automated triage for the maintainers.

Merge candidate (worth a look). In apps/victory/src/shader.rs run, shader-info --effects now counts the SGD5 databases that list_effects finds and prints that count; before, it printed a container summary that was always empty. The normal mode is unchanged, and effects mode already skipped container and pack handling, so returning early drops nothing. The new integration test uses a small synthetic SGD5 file and the crate's own binary, the same pattern as tests/census.rs. CI: passing.


Generated by Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:comment:7166612295 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2321#issuecomment-7166612295). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T15:17:40Z. --- <!-- victory-triage v1 head=e3fd7202cd9f0228abb10802a8503a1802da903c verdict=merge-candidate at=2026-11-25T15:17:04Z --> Automated triage for the maintainers. **Merge candidate (worth a look).** In `apps/victory/src/shader.rs` `run`, `shader-info --effects` now counts the SGD5 databases that `list_effects` finds and prints that count; before, it printed a container summary that was always empty. The normal mode is unchanged, and effects mode already skipped container and pack handling, so returning early drops nothing. The new integration test uses a small synthetic SGD5 file and the crate's own binary, the same pattern as `tests/census.rs`. CI: passing. --- _Generated by [Claude Code](https://claude.ai/code)_
fuzeofficlal commented 2026-11-26 02:06:20 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T02:05:07Z.

Review: COMMENTED


Reviewed and verified against main (63bcca43) on Windows 11 — clean fix and ready to merge:

  • Returning databases.len() from list_effects and printing shader effect databases found: {effect_databases} before returning early in apps/victory/src/shader.rs eliminates the misleading containers found 0 (in 0 files) summary in --effects mode.
  • New integration test apps/victory/tests/shader_effects.rs exercises .sgd5, empty/non-effect directory, and non---effects modes cleanly.

Local verification:

  • cargo test --locked -p victory: 19/19 passed (14 unit + census + census_unreadable + shader_effects + translate)
  • cargo clippy -p victory --all-targets -- -D warnings + cargo xtask policy (192 files ok): 0 warnings
<!-- greyfinch-sync:Marvisak/VIctory:review:6067589123 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/2321#pullrequestreview-6067589123). Originally posted by [fuzeofficlal](https://github.com/fuzeofficlal) on 2026-11-26T02:05:07Z. **Review:** COMMENTED --- Reviewed and verified against `main` (`63bcca43`) on Windows 11 — clean fix and ready to merge: - Returning `databases.len()` from `list_effects` and printing `shader effect databases found: {effect_databases}` before returning early in `apps/victory/src/shader.rs` eliminates the misleading `containers found 0 (in 0 files)` summary in `--effects` mode. - New integration test `apps/victory/tests/shader_effects.rs` exercises `.sgd5`, empty/non-effect directory, and non-`--effects` modes cleanly. **Local verification**: - `cargo test --locked -p victory`: **19/19 passed** (`14` unit + `census` + `census_unreadable` + `shader_effects` + `translate`) - `cargo clippy -p victory --all-targets -- -D warnings` + `cargo xtask policy` (`192 files ok`): 0 warnings
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2321:upstream-pr/2321'
git switch 'upstream-pr/2321'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2321'
git switch 'upstream-pr/2321'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2321'
git switch 'upstream-pr/2321'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2321'
git switch 'main'
git merge --squash 'upstream-pr/2321'
git switch 'main'
git merge --ff-only 'upstream-pr/2321'
git switch 'main'
git merge 'upstream-pr/2321'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory!2319
No description provided.