XMA tests: count frames only in the selected stream #1590

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

@⁠zhaibingye on GitHub · 2026-11-24 19:31 UTC · original
zhaibingye:fix/xma-interleaved-frame-count → main · +27 −4 · 1 files · 1 commits · open

walks_saved_streams decodes one XMA stream but sums frame counts from every interleaved stream. Follow each header's packet skip when counting expected frames. The regression test covers two unevenly interleaved streams.

A five-packet synthetic input on main reported 8 frames counted, 4 walked, 0 decode errors. With the change it reports 4 counted and 4 walked. A single-stream control passes, and a packet claiming an extra frame still fails.

On Linux, cargo test --locked -p victory-formats passed (24 passed, 4 ignored by default). Clippy and cargo xtask policy passed. Synthetic inputs only. AI-assisted with Codex.

**@⁠zhaibingye** on GitHub · 2026-11-24 19:31 UTC · [original](https://github.com/Marvisak/VIctory/pull/1590) `zhaibingye:fix/xma-interleaved-frame-count` → `main` · +27 −4 · 1 files · 1 commits · open walks_saved_streams decodes one XMA stream but sums frame counts from every interleaved stream. Follow each header's packet skip when counting expected frames. The regression test covers two unevenly interleaved streams. A five-packet synthetic input on main reported 8 frames counted, 4 walked, 0 decode errors. With the change it reports 4 counted and 4 walked. A single-stream control passes, and a packet claiming an extra frame still fails. On Linux, cargo test --locked -p victory-formats passed (24 passed, 4 ignored by default). Clippy and cargo xtask policy passed. Synthetic inputs only. AI-assisted with Codex.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:37:22 +00:00
Author
Owner

@⁠acetonahard-code on GitHub · 2026-11-24 22:24 UTC · original

Tested on Windows 11 with the repo toolchain, merged into current main (70564ae):

cargo test -p victory-formats passed failed ignored
main 23 0 4
main + this PR 24 0 4
  • The new test passes.
  • cargo clippy --all-targets -- -D warnings, with and without --all-features: clean.

I didn't test with game data.


Tested locally with an AI-assisted script (Claude Code); I checked the results before posting.

**@⁠acetonahard-code** on GitHub · 2026-11-24 22:24 UTC · [original](https://github.com/Marvisak/VIctory/pull/1590#issuecomment-7146185334) Tested on Windows 11 with the repo toolchain, merged into current `main` (70564ae): | `cargo test -p victory-formats` | passed | failed | ignored | |---|---|---|---| | `main` | 23 | 0 | 4 | | `main` + this PR | 24 | 0 | 4 | - The new test passes. - `cargo clippy --all-targets -- -D warnings`, with and without `--all-features`: clean. I didn't test with game data. --- <sub>Tested locally with an AI-assisted script (Claude Code); I checked the results before posting.</sub>
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 01:31 UTC · original

Automated triage for the maintainers.

Needs rebase. This pull request conflicts with main (conflicting: crates/victory-formats/src/xma.rs). It will be reviewed once it is rebased onto the current main.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 01:31 UTC · [original](https://github.com/Marvisak/VIctory/pull/1590#issuecomment-7149646745) <!-- victory-triage v1 head=44e0c31d149b8964ba1e72258325edcf402865e3 verdict=needs-rebase at=2026-11-25T01:31:36Z --> Automated triage for the maintainers. **Needs rebase.** This pull request conflicts with `main` (conflicting: `crates/victory-formats/src/xma.rs`). It will be reviewed once it is rebased onto the current `main`. --- _Generated by [Claude Code](https://claude.ai/code)_
Author
Owner

@⁠Headache3318 on GitHub · 2026-11-25 01:33 UTC · original

Tested on Linux (Arch, kernel 7.3.5, 3× RTX 4090 driver 620.73.04), Rust 1.98.1 (pinned). PR head 44e0c31 applied cleanly onto current main ccfb029.

  • cargo test --locked -p victory-formats: 24 passed, 0 failed, 4 ignored. All XMA tests pass, including the new regression test for counting frames in interleaved streams.
  • cargo clippy -p victory-formats --all-targets --all-features --locked -- -D warnings: clean.

Not tested: Windows MSVC build, the title itself. AI-assisted.

**@⁠Headache3318** on GitHub · 2026-11-25 01:33 UTC · [original](https://github.com/Marvisak/VIctory/pull/1590#issuecomment-7149686390) Tested on Linux (Arch, kernel 7.3.5, 3× RTX 4090 driver 620.73.04), Rust 1.98.1 (pinned). PR head `44e0c31` applied cleanly onto current `main` `ccfb029`. - `cargo test --locked -p victory-formats`: 24 passed, 0 failed, 4 ignored. All XMA tests pass, including the new regression test for counting frames in interleaved streams. - `cargo clippy -p victory-formats --all-targets --all-features --locked -- -D warnings`: clean. Not tested: Windows MSVC build, the title itself. AI-assisted.
This pull request has changes conflicting with the target branch.
  • crates/victory-formats/src/xma.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

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

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1590'
git switch 'github-bot/gh-1590'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1590'
git switch 'github-bot/gh-1590'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1590'
git switch 'main'
git merge --squash 'github-bot/gh-1590'
git switch 'main'
git merge --ff-only 'github-bot/gh-1590'
git switch 'main'
git merge 'github-bot/gh-1590'
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!1590
No description provided.