Iter 28: Add end-to-end in-world verification and A/B regression suite #13

Merged
Androtim merged 3 commits from upstream-pr/13 into main 2026-11-28 13:16:08 +00:00
Androtim commented 2026-11-28 04:20:31 +00:00 (Migrated from github.com)

Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-11-28T04:20:31Z.


Summary

Replaces menu-only boot checks with a real end-to-end 3D open-world verification and A/B regression gate (scripts/verify-world.ps1 + scripts/analyze-world-run.py + scripts/test_analyze_world_run.py).

Previously, smoke testing only checked draws/frame >= 10 (main menu) and missed severe in-world regressions (e.g., VICTORY_LEVELS_ON_DEMAND=1 creating

<!-- greyfinch-sync:Androtim/MiniVI:issue:5536601695 --> Imported from [Androtim/MiniVI](https://github.com/Androtim/MiniVI/pull/13). Originally posted by [Androtim](https://github.com/Androtim) on 2026-11-28T04:20:31Z. --- ## Summary Replaces menu-only boot checks with a real **end-to-end 3D open-world verification and A/B regression gate** (scripts/verify-world.ps1 + scripts/analyze-world-run.py + scripts/test_analyze_world_run.py). Previously, smoke testing only checked draws/frame >= 10 (main menu) and missed severe in-world regressions (e.g., VICTORY_LEVELS_ON_DEMAND=1 creating
Androtim commented 2026-11-28 04:25:36 +00:00 (Migrated from github.com)

Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-11-28T04:25:36Z.


Verification summary for @4e1c135 (feat/iter28-in-world-verification-suite):

  • GitHub Actions CI (46107084619): success in 4m41s (Clippy, Clippy, diagnostics build, Tests)
  • Open PR Mergeability (Androtim/MiniVI): PRs #1–#13 all report MERGEABLE
  • Local Verification:
    • python -m unittest -v scripts/test_analyze_world_run.py: 4 tests, OK
    • PowerShell AST check on scripts/verify-world.ps1: ps1_parse_errors=0
    • Historical real playtest log check (playtest-20261128-043800.err.log, --allow-no-frames): exited 1 ([FAIL] VRAM 8373/6720 MB, Texture streaming 21496 waiting / levels_on_demand_alive=0, Residency stalls 219.56 ms/s, median 5.9 fps)
    • cargo +1.98.1-x86_64-pc-windows-gnu run -p xtask -- policy: 297 files ok
    • cargo +1.98.1-x86_64-pc-windows-gnu test -p xtask: 6 passed; 0 failed
<!-- greyfinch-sync:Androtim/MiniVI:comment:7234031029 --> Imported from [Androtim/MiniVI](https://github.com/Androtim/MiniVI/pull/13#issuecomment-7234031029). Originally posted by [Androtim](https://github.com/Androtim) on 2026-11-28T04:25:36Z. --- Verification summary for `@4e1c135` (`feat/iter28-in-world-verification-suite`): - **GitHub Actions CI (`46107084619`):** `success` in 4m41s (`Clippy`, `Clippy, diagnostics build`, `Tests`) - **Open PR Mergeability (`Androtim/MiniVI`):** PRs `#1`–`#13` all report `MERGEABLE` - **Local Verification:** - `python -m unittest -v scripts/test_analyze_world_run.py`: `4 tests`, `OK` - PowerShell AST check on `scripts/verify-world.ps1`: `ps1_parse_errors=0` - Historical real playtest log check (`playtest-20261128-043800.err.log`, `--allow-no-frames`): exited `1` (`[FAIL]` VRAM `8373/6720 MB`, Texture streaming `21496` waiting / `levels_on_demand_alive=0`, Residency stalls `219.56 ms/s`, median `5.9 fps`) - `cargo +1.98.1-x86_64-pc-windows-gnu run -p xtask -- policy`: `297 files ok` - `cargo +1.98.1-x86_64-pc-windows-gnu test -p xtask`: `6 passed; 0 failed`
Androtim commented 2026-11-28 05:03:17 +00:00 (Migrated from github.com)

Imported from Androtim/MiniVI. Originally posted by Androtim on 2026-11-28T05:03:17Z.


Automated triage for the maintainers (not an approval).

Verdict: merge-candidate · CI (check): passing

Review Summary

PR #13 adds an end-to-end 3D open-world verification and A/B regression suite (scripts/verify-world.ps1, scripts/analyze-world-run.py, scripts/test_analyze_world_run.py) and adds Python bytecode patterns (__pycache__/, *.pyc) to .gitignore. It does not modify any Rust runtime, shader, GPU, or launcher code.

Verification Notes

  • scripts/verify-world.ps1: Baseline environment variables match SETTINGS in apps/victory/src/play.rs (lines 55–111), with isolated VICTORY_DATA_DIR sandboxing, VICTORY_CAPTURE / VICTORY_CAPTURE_WORLD frame capture, an already-running process check, and try/finally cleanup for child processes and Env:VICTORY_* variables.
  • scripts/analyze-world-run.py: Uses Python stdlib only (including an 8-bit RGB/RGBA PNG decoder supporting PNG filters 0–4), parses in-world (draws/frame >= 500) FPS/frame-time windows, card accounting/VRAM, tiled texture counts, residency stall rates, and screenshot luma/edge/color-corruption metrics, and implements A/B non-regression checks against a baseline JSON.
  • scripts/test_analyze_world_run.py: Covers healthy runs, VRAM/queue/tiled/stall failures, dark/black/flat/magenta frames, black fade transitions, A/B regressions, and pre-world-only logs.

Minor Non-Blocking Notes

  • In scripts/verify-world.ps1, if $ExtraEnv overrides a variable in $keep (VICTORY_CONFIG, VICTORY_GAME_DIR, VICTORY_CACHE_DIR), the finally block will remove it rather than restoring its previous value since $keep variables are skipped when populating $saved.
  • In scripts/analyze-world-run.py, if log entries lack timestamps (first_world_ts is None), in_world_acct falls back to including all accounting samples rather than filtering by entry index (first_world_idx).

Note: This is an automated triage review and does not constitute formal maintainer approval.


Generated with Antigravity CLI (agy).

<!-- greyfinch-sync:Androtim/MiniVI:comment:7234425754 --> Imported from [Androtim/MiniVI](https://github.com/Androtim/MiniVI/pull/13#issuecomment-7234425754). Originally posted by [Androtim](https://github.com/Androtim) on 2026-11-28T05:03:17Z. --- <!-- minivi-triage v1 head=911954d39e951fff8052275f122f981e5ab84bc2 verdict=merge-candidate ci=passing at=2026-11-28T05:03:44Z --> Automated triage for the maintainers (not an approval). **Verdict:** `merge-candidate` · **CI (`check`):** `passing` ### Review Summary PR #13 adds an end-to-end 3D open-world verification and A/B regression suite (`scripts/verify-world.ps1`, `scripts/analyze-world-run.py`, `scripts/test_analyze_world_run.py`) and adds Python bytecode patterns (`__pycache__/`, `*.pyc`) to `.gitignore`. It does not modify any Rust runtime, shader, GPU, or launcher code. ### Verification Notes - **`scripts/verify-world.ps1`**: Baseline environment variables match `SETTINGS` in `apps/victory/src/play.rs` (lines 55–111), with isolated `VICTORY_DATA_DIR` sandboxing, `VICTORY_CAPTURE` / `VICTORY_CAPTURE_WORLD` frame capture, an already-running process check, and `try`/`finally` cleanup for child processes and `Env:VICTORY_*` variables. - **`scripts/analyze-world-run.py`**: Uses Python stdlib only (including an 8-bit RGB/RGBA PNG decoder supporting PNG filters 0–4), parses in-world (`draws/frame >= 500`) FPS/frame-time windows, card accounting/VRAM, tiled texture counts, residency stall rates, and screenshot luma/edge/color-corruption metrics, and implements A/B non-regression checks against a baseline JSON. - **`scripts/test_analyze_world_run.py`**: Covers healthy runs, VRAM/queue/tiled/stall failures, dark/black/flat/magenta frames, black fade transitions, A/B regressions, and pre-world-only logs. ### Minor Non-Blocking Notes - In `scripts/verify-world.ps1`, if `$ExtraEnv` overrides a variable in `$keep` (`VICTORY_CONFIG`, `VICTORY_GAME_DIR`, `VICTORY_CACHE_DIR`), the `finally` block will remove it rather than restoring its previous value since `$keep` variables are skipped when populating `$saved`. - In `scripts/analyze-world-run.py`, if log entries lack timestamps (`first_world_ts is None`), `in_world_acct` falls back to including all accounting samples rather than filtering by entry index (`first_world_idx`). *Note: This is an automated triage review and does not constitute formal maintainer approval.* --- _Generated with Antigravity CLI (`agy`)._
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
Androtim/MiniVI!13
No description provided.