HLE: extract installed_package and add focused xstore license/package tests #1194
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1194"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by geiyiliyabumo on 2026-11-24T16:23:37Z.
Summary
Closes #945
Full verification details and change notes are documented in #945 (commit
d51dc42, based onmainffe310e).Verification (Windows 11 x64 MSVC)
rustfmt --edition 2024 --checkon edited files: PASScargo xtask policy: PASS (zero game files/data)cargo clippy --all-targets --locked -- -D warnings(default +--features diagnosticswhere applicable): PASSAI-assisted; synthetic tests only, no game files.
Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-24T16:27:20Z.
Review: APPROVED
Tested merged cleanly onto
main(ffe310e) on Windows 11 x64 (Rust 1.98.1 MSVC):cargo test -p victory-hle: 106 passed, 0 failed (plusno_dll_planting: 1 passed)cargo clippy -p victory-hle --all-targets: 0 warningscargo xtask policy: okClean synthetic unit test coverage expansion for
xstore.rs. Approving.AI-assisted (Gemini 4 Neon).
Imported from Marvisak/VIctory. Originally posted by Zipettte on 2026-11-24T18:00:23Z.
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at
d51dc42:cargo test -p victory-hlepasses, 107 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T01:18:14Z.
Automated triage for the maintainers.
Merge candidate. Update after your reply: the PR is now down to the three tests asked for, plus the
installed_packageextraction incrates/victory-hle/src/modules/xstore.rs.package_identifierbehaves as onmain.a_package_licence_names_the_installed_packageis the first test of slots 0xa0/0xa8/0xb0: only the installed package gets a valid licence.the_game_license_is_full_and_names_the_first_skuchecks everyGameLicensefield, plus theE_NOT_SUFFICIENT_BUFFERandE_ILLEGAL_METHOD_CALLpaths, againstxasync::XAsyncGetResult.the_store_id_maps_to_the_installationcovers the mapping with and without a store id. One small point: theranhelper readsinternal[1]/internal[2]directly, so it depends onxasync's private block layout. CI: passing (check).Generated by Claude Code
Imported from Marvisak/VIctory. Originally posted by geiyiliyabumo on 2026-11-25T02:14:45Z.
Rebased cleanly onto \main\ (\
ccfb029), keeping \E_INVALIDARG\ for unresolved store IDs in \package_identifier. \cargo test -p victory-hle --locked modules::xstore::tests, \cargo clippy -p victory-hle --all-targets --locked -- -D warnings, and \cargo xtask policy\ all pass.[PR #1194] HLE: expand synthetic unit test coverage for xstore.rs (1 -> 13 tests)to [PR #1194] HLE: extract installed_package and add focused xstore license/package testsImported from Marvisak/VIctory. Originally posted by geiyiliyabumo on 2026-11-25T03:46:21Z.
Updated per triage feedback: trimmed the 9 stub-mirroring tests (~495 lines) down to the 3 focused tests covering \GameLicense\ fields, package-licence validity, and \installed_package\ mapping. Rebased onto \main\ (\
940d32f); \cargo test -p victory-hle --locked\ (148 passed, 0 failed), \cargo clippy -p victory-hle --all-targets --locked -- -D warnings, and \cargo xtask policy\ all pass.Imported from Marvisak/VIctory. Originally posted by fuzeofficlal on 2026-11-26T01:25:45Z.
Code review and Windows 11 verification at head
2e53863d4400merged cleanly ontomain(63bcca43c6a0):crates/victory-hle/src/modules/xstore.rs:305-323, 437-688):installed_package(title, store_id)preserves exactpackage_identifierbehavior (requiring non-empty matching UTF-8store_idandtitle.store_id, returningE_INVALIDARGwithout mutating the output buffer otherwise).xstoretests use purely synthetic stackAsyncBlock/runtime::Titledata with no global lock or disk dependency.cargo xtask policy:191 files ok;cargo clippy --locked -p victory-hle --tests -- -D warnings: 0 warningsvictory-hle -- xstore: 6/6 passed.LGTM.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.