[BUNDLE] Bridge for #1368 and #1386: one storage test changes when both land, stacked on both #1520

Closed
MamaLeVrai wants to merge 64 commits from upstream-pr/1521 into main
MamaLeVrai commented 2026-11-24 18:43:42 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by MamaLeVrai on 2026-11-24T18:43:42Z.


A one-line bridge between two bundles. #1368 and #1386 each pass all checks alone on main. Merged together, one test fails, so this PR is those two bundles merged plus the one change that makes them agree. Rebuilt on the new main (70564ae): it now carries the new tip of #1386, which has main merged in (see there for the one conflict).

For reviewers and for anyone verifying with an agent (Claude, Codex, a person): this is a [BUNDLE] PR. It is stacked on #1368 and #1386, so its diff shows both until they land.

What fails

modules::storage::tests::the_path_is_the_drive_root_and_its_nul (added by #1193, in #1386) asserts that a null buffer leaves used untouched:

assert!(path(this, size, std::ptr::null_mut(), &mut used) < 0);
assert_eq!(used, usize::MAX, "nothing written");

#446 (in #1368) changes put_string so that the string getters report the required size, NUL included, even when the buffer is missing (the same change that made me adapt a test of #1199 inside #1368). With both merged, used is the size, so the assertion fails.

The change

One assertion, in modules/storage.rs: it now expects the required size.

assert_eq!(used, size, "the required size is reported");

If the maintainer prefers the old behaviour for this getter, the other way out is to leave #446 out of #1368 and keep #1193's assertion.

Verification

Windows 11, RX 6950 XT, Rust 1.98.1 (the pinned toolchain):

Check Result
cargo clippy --workspace --all-targets --locked -- -D warnings clean
cargo clippy --workspace --all-targets --all-features --locked -- -D warnings clean
cargo test --workspace --locked 541 passed, 0 failed, 7 ignored (two runs; main: 476 passed, 7 ignored)

All the bundles of the index #1495 (17 branches, 195 PRs) also merge together without a textual conflict; this is the only test that fails when they are all merged, which is why this bridge exists. The title was not run.

Re-verify

git fetch https://github.com/MamaLeVrai/VIctory.git bundle/hle-bridge
git checkout FETCH_HEAD
cargo clippy --workspace --all-targets --locked -- -D warnings
cargo clippy --workspace --all-targets --all-features --locked -- -D warnings
cargo test --workspace --locked

AI-assisted (Claude Code); no game data.

🤖 Generated with Claude Code

<!-- greyfinch-sync:Marvisak/VIctory:issue:6588925546 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1521). Originally posted by [MamaLeVrai](https://github.com/MamaLeVrai) on 2026-11-24T18:43:42Z. --- **A one-line bridge between two bundles.** #1368 and #1386 each pass all checks alone on `main`. Merged together, one test fails, so this PR is those two bundles merged plus the one change that makes them agree. Rebuilt on the new `main` (`70564ae`): it now carries the new tip of #1386, which has `main` merged in (see there for the one conflict). > For reviewers and for anyone verifying with an agent (Claude, Codex, a person): this is a `[BUNDLE]` PR. It is stacked on #1368 and #1386, so its diff shows both until they land. ## What fails `modules::storage::tests::the_path_is_the_drive_root_and_its_nul` (added by #1193, in #1386) asserts that a null buffer leaves `used` untouched: ```rust assert!(path(this, size, std::ptr::null_mut(), &mut used) < 0); assert_eq!(used, usize::MAX, "nothing written"); ``` #446 (in #1368) changes `put_string` so that the string getters report the required size, NUL included, even when the buffer is missing (the same change that made me adapt a test of #1199 inside #1368). With both merged, `used` is the size, so the assertion fails. ## The change One assertion, in `modules/storage.rs`: it now expects the required size. ```rust assert_eq!(used, size, "the required size is reported"); ``` If the maintainer prefers the old behaviour for this getter, the other way out is to leave #446 out of #1368 and keep #1193's assertion. ## Verification Windows 11, RX 6950 XT, Rust 1.98.1 (the pinned toolchain): | Check | Result | |---|---| | `cargo clippy --workspace --all-targets --locked -- -D warnings` | clean | | `cargo clippy --workspace --all-targets --all-features --locked -- -D warnings` | clean | | `cargo test --workspace --locked` | 541 passed, 0 failed, 7 ignored (two runs; `main`: 476 passed, 7 ignored) | All the bundles of the index #1495 (17 branches, 195 PRs) also merge together without a textual conflict; this is the only test that fails when they are all merged, which is why this bridge exists. The title was not run. ## Re-verify ```powershell git fetch https://github.com/MamaLeVrai/VIctory.git bundle/hle-bridge git checkout FETCH_HEAD cargo clippy --workspace --all-targets --locked -- -D warnings cargo clippy --workspace --all-targets --all-features --locked -- -D warnings cargo test --workspace --locked ``` AI-assisted (Claude Code); no game data. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
copilot-pull-request-reviewer[bot commented 2026-11-24 19:03:49 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by copilot-pull-request-reviewer[bot] on 2026-11-24T18:43:50Z.

Review: COMMENTED


Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

<!-- greyfinch-sync:Marvisak/VIctory:review:6045257499 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1521#pullrequestreview-6045257499). Originally posted by [copilot-pull-request-reviewer[bot]](https://github.com/copilot-pull-request-reviewer%5Bbot%5D) on 2026-11-24T18:43:50Z. **Review:** COMMENTED --- Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
sinan-cmyk commented 2026-11-24 20:03:12 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by sinan-cmyk on 2026-11-24T19:33:16Z.


Runtime boot check on real hardware with a retail dump

Result: no difference from main in this test.

I merged head 780e617 (with #1368 and #1386 inside) onto main ffe310e, built it (release), and ran victory run <title exe> --execute with an empty data folder for 100 s, without any input.

main ffe310e this PR
Reaches the first-boot screens yes yes
crashes.log entries 0 0
Committed memory 11.1 GB 11.1 GB
Warnings 7 7, the same kinds and counts

The empty data folder also exercises the storage paths that the bridged test is about: the title creates its save and settings folders on the first boot.

I leave out frame rates. This run happened while other builds kept the CPU busy, and under that load main itself presents the 30 fps menus faster than 30 (see #1542). So no timing comparison is possible from this run.

Limits. Without input, the title stays on the first-boot screens. I did not run the PR's tests. Machine: Ryzen 7 7800X3D, RTX 4070 SUPER, Windows 11 25H2, game 1.0.2.1. AI-assisted (Claude Code).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7142263473 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1521#issuecomment-7142263473). Originally posted by [sinan-cmyk](https://github.com/sinan-cmyk) on 2026-11-24T19:33:16Z. --- ### Runtime boot check on real hardware with a retail dump **Result: no difference from `main` in this test.** I merged head 780e617 (with #1368 and #1386 inside) onto `main` ffe310e, built it (release), and ran `victory run <title exe> --execute` with an empty data folder for 100 s, without any input. | | `main` ffe310e | this PR | |---|---|---| | Reaches the first-boot screens | yes | yes | | `crashes.log` entries | 0 | 0 | | Committed memory | 11.1 GB | 11.1 GB | | Warnings | 7 | 7, the same kinds and counts | The empty data folder also exercises the storage paths that the bridged test is about: the title creates its save and settings folders on the first boot. I leave out frame rates. This run happened while other builds kept the CPU busy, and under that load `main` itself presents the 30 fps menus faster than 30 (see #1542). So no timing comparison is possible from this run. **Limits.** Without input, the title stays on the first-boot screens. I did not run the PR's tests. Machine: Ryzen 7 7800X3D, RTX 4070 SUPER, Windows 11 25H2, game 1.0.2.1. AI-assisted (Claude Code).
upstream-sync closed this pull request 2026-11-25 01:06:47 +00:00
Marvisak commented 2026-11-25 01:08:15 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:42:00Z.


Automated triage for the maintainers. Closing because this pull request re-packages other open pull requests. Each of those is reviewed on its own, so a bundle cannot be merged.

If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7148784420 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1521#issuecomment-7148784420). Originally posted by [Marvisak](https://github.com/Marvisak) on 2026-11-25T00:42:00Z. --- Automated triage for the maintainers. Closing because this pull request re-packages other open pull requests. Each of those is reviewed on its own, so a bundle cannot be merged. If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.

Pull request closed

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!1520
No description provided.