HLE: extract installed_package and add focused xstore license/package tests #1194
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1194
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@geiyiliyabumo on GitHub · 2026-11-24 16:23 UTC · original
geiyiliyabumo:feat/xstore-audit-and-tests→main· +140 −7 · 1 files · 1 commits · openSummary
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.
@Zipettte on GitHub · 2026-11-24 18:00 UTC · original
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).
@Marvisak on GitHub · 2026-11-25 01:18 UTC · original · edited 2026-11-25 07:22 UTC
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
@geiyiliyabumo on GitHub · 2026-11-25 02:14 UTC · original
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.@geiyiliyabumo on GitHub · 2026-11-25 03:46 UTC · original
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.@fuzeofficlal on GitHub · 2026-11-26 01:25 UTC · original
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.