Report effect databases in shader-info effects mode #2321

Open
github-bot wants to merge 1 commit from github-bot/gh-2321 into main AGit
Owner

@⁠DoubleD17 on GitHub · 2026-11-25 10:36 UTC · original
DoubleD17:fix/shader-info-effects-summary → main · +57 −3 · 2 files · 1 commits · open

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.

**@⁠DoubleD17** on GitHub · 2026-11-25 10:36 UTC · [original](https://github.com/Marvisak/VIctory/pull/2321) `DoubleD17:fix/shader-info-effects-summary` → `main` · +57 −3 · 2 files · 1 commits · open 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:02:12 +00:00
Author
Owner

@⁠cloph-dsp on GitHub · 2026-11-25 11:09 UTC · original

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.

**@⁠cloph-dsp** on GitHub · 2026-11-25 11:09 UTC · [original](https://github.com/Marvisak/VIctory/pull/2321#issuecomment-7160662496) 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.
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 15:17 UTC · original

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

**@⁠Marvisak** on GitHub · 2026-11-25 15:17 UTC · [original](https://github.com/Marvisak/VIctory/pull/2321#issuecomment-7166612295) <!-- 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)_
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2321/head:github-bot/gh-2321'
git switch 'github-bot/gh-2321'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2321'
git switch 'github-bot/gh-2321'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2321'
git switch 'github-bot/gh-2321'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2321'
git switch 'main'
git merge --squash 'github-bot/gh-2321'
git switch 'main'
git merge --ff-only 'github-bot/gh-2321'
git switch 'main'
git merge 'github-bot/gh-2321'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!2321
No description provided.