fix: mod-api on Windows, second round: renames, mods' network, test mode and the checks #3037
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!3037
Loading…
Reference in a new issue
No description provided.
Delete branch "llun/Longshot:fix/mod-api-windows-2"
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?
Summary
For #2822 (into
mod-api). The second round of testingmod-apion Windows 11, every fix in one pull request as in #2938. Each bug fix comes after the test that shows it, except the include order, which an existing check shows.SetFileInformationByHandlewith a folder's handle (error 87; 123 in the real%APPDATA%under a packaged app). So every rename went by the folder's path, the branch meant for Wine, which the game could point elsewhere after the check; on 123 it failed. A screenshot taken over the control bridge was lost, sodev.py smokefailedtests:<mod>, which has no manifest, so their network was nothing ("the network is not available here"). They are told to the builder by their mod's id and held to its manifest; the builder judges them as it judges the mod. It knows the mods ofHOS_MOD_TESTSnow and asks about them in its own window, as about any mod: no yes, no networkmod-apialready has that pull request's builder half. Only the context and one stand-in changedtests:<mod>, has a:, which Windows takes in no folder's name; and it is no running mod's id, so the answer was null at once (every system)tex_desc_memo.h's copy ofhandle_of(#2920) does not knowshift_single_word(#2866, the same day): a texture found that way could be the wrong one. The memo is on by default;mainhad this too when checked (d53dbe94b)\or a:left it on Windows, and a link unpacked through another link left it on Linux. A link already there, at a member's own place, led the write outside on both (review's L1)vk_memory.cppincludesvk_work.hlast againtest_pass_barrier's rule)Nine crates' tests build when run alone on Windows (they get host-sys' stand-in, for tests alone), and
cargo fmt --allworks in a checkout inside another one. The example modsmagic-itemandtough-octoroksnamed an actor and a file the game does not have; they, and the guide pages that name the file, name the right ones. The rest is tests: more than 40 game-free checks that failed onmod-apion this PC pass again, and a Linux-only one is left to Linux. Most had fallen behind renderer code that moved. Where the renderer has a fast way beside the old one, the check now runs both.test_input_movie's unused counter is dyst's fix, from #2188.Read first:
files_windows.rsrename,sandbox_windows.rsmessage_pairandMessageEnd, net-broker'ssock.rsconnected, thentex_desc_memo.hc2_handle_of.Testing
Tested: Windows 11 (build 26300), RTX 5080, driver 621.47, no MSVC (Rust's gnullvm host, the repository's llvm-mingw), the sandbox on. On
a98c9cbe0, onmod-api@ab5592e2c(rebased onto its one later commit, ours unchanged):dev.py smokepasses (Kokiri Forest, 900 frames, the menu opened, the screenshot saved).a98c9cbe0, in the game, with a development mod whose permissions were written into the run's own test profile: itsfetchis answered (status 200) 3 times of 3 over 1500 frames on one link. A host that does not exist fails. Before the fix all 3 failed.a98c9cbe0, in the game, a mod's own tests: with no window to ask in, the builder declines and the listed server is refused. With a yes in the run's own test profile (written there, not clicked), it answers 200. A server not listed is refused both times.a98c9cbe0, in the game, a packed mod (mod pack,mod add) loads and runs. Switched off in the Mods tab by the menu's keys it stops andprofile.jsonsays off; switched on it starts again, its stored data kept.6390ffb41(and one local line, so thatgamemay show its windows) and that game: a packed mod's requests are refused until a person clicks Accept in the builder's window, which names the mod and the server; then they answer 200, andtrust.jsonholds the yes with its copy'sfrom.dev.py smokepasses, a development mod's 3 fetches and a tested mod's answer 200, and the Discord status shows the place, the hearts and the time on a person's profile.c3efe29eb, onmod-api@e9dd5aec5: what its three later commits can affect, and what changed here: 1311 Rust tests (build-core, build-driver, net-broker, api, key-names, game-ui, longshot-game) and 11 Python checks pass, and lint.test_ui_rendererwas behinde9dd5aec5and is fixed here.e4741a8bf, in the game,magic-itemandtough-octoroksapply with nothing left out; before, the Shock Stone stood in Kokiri Forest and an Octorok read 12 of 12 life.615d8e26e, in the game: a mod's tests store data in each scope and save a screenshot.mod-api@b15d47e30, the same diff but for two tests that are nowmod-api's own, onb9bf697bb, in the game:dev.py smokepasses and saves its screenshot. On582b6a1abit failed only on that ("the PNG could not be written").HOS_CRASH_TESTwrites the crash record, and the minidump withHOS_CRASH_MINIDUMP=1; the Controls rows read, and Walk speed is saved.x86_64-pc-windows-gnullvm), one4741a8bf(beforemod-api'sab5592e2c):test_lifterpasses whole, socargo fmt, clippy with warnings as errors, andcargo test --releaseof the whole workspace. On this head (6390ffb41), whatmod-api's two later commits can affect: the 7 crates they change (1195 tests) and 75 Python checks, all pass. Ona98c9cbe0, net-broker's 26 and clippy of build-driver and api.game-sites' tests failed by chance when run together: 56 of 800 runs. The tests share one phase and one list of what is retired; they take turns now: 0 of 2000. No bug of the game's was found behind it.test_reshade_fxpasses.test_lifterhad failed on three things, all fixed here:cargo fmt --allin a checkout inside another one, a path with no drive in a build-driver test, and a build-tools test whose own program loads libunwind.mise run lintpasses.4cdd23cea,test_builder_files_wine.py's programs and folders, built on Windows and run by its own steps: 27 checks pass, renames among them, with no file made outside the roots (Wine made no junction). On this head's build-core, before the last rebase (which does not touch it): the 9 file service tests and the 5 pipe tests pass.the_cache_takes_files_folders_renames_and_removesnever ended there, onmod-apialone too (it kept a folder's handle open): it ends now. build-core's tests do not run whole there, onmod-apialone either: one needs the AppContainer Wine does not have.mod-api@45441c842, every check that runs on Windows andtest_present_aspect_vulkan(821,test_lifterapart): 809 pass and 12 failed. Eleven are behind newer renderer and save code;test_vk_desc_span_fastneeded this pull request's one-word shift. All 12 are fixed here and pass, with lint. Wheremod-apihad fixed a check too, its version is kept.Still to test:
Measurements
Not measured: fixes and tests, none of them for speed.
Risks
..or wildcards. The network pipe keeps its owner-only access, one instance and its check of who opened it. The test mode's start runs later inside the container, never earlier outside it.NtSetInformationFilewith a folder's handle would refuse the confined game's renames; Wine 9.0 takes it.gpu/vk/tex_desc_memo.h: a texture found by one shifted word is now the draw's own choice.RX_VK_TEX_DESC_MEMO=0turns the memo off.Checklist
Ready for review
main; the title is a Conventional Commit. (Onmod-api, several fixes in one pull request, as asked.)mise run testpasses (any failure that also fails onmainis named). (As Testing says: not all on one head.)main, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible.When it applies
mainand passes here.tests/that reads changed source is updated, not weakened.Assisted-by:/Co-Authored-By:trailers.Ready to merge
main, measured again or a comment says why the numbers still hold.🤖 Generated with Claude Code
Tested in game: Windows 11, RTX 5080, driver 621.47, sandbox on, this head (
9f0a505ad): dev.py smoke passes (Kokiri Forest, 900 frames, the menu opened, the screenshot saved). Before the rebase (the same diff but for two tests): a probe mod's network, storage and screenshots, the Discord status, a mod reloading from a long accented path, a restart, a crash record and the Controls rows.@review
Recommendation: Request changes. The tar filter can still write outside its destination when an existing leaf is a symlink. The Windows fixes have useful smoke-test evidence, but Wine and Linux compatibility remain untested.
The change fixes several Windows mod and sandbox failures, corrects a texture-handle calculation, tightens archive filtering and updates checks. It also replaces Wine’s path-based rename fallback, so compatibility needs a Wine run.
Blocking (1): must change before merging.
scripts/helpers.py:110: The destination check resolves only the parent, so it does not reject an existing leaf symlink that points outside the extraction folder. (more on the line) Do: Resolve and validate the full destination for regular files before extraction, and add a test with a pre-existing leaf symlink pointing outside.Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)
builder/crates/build-core/src/files_windows.rs:697: The replacement rename path has not been exercised on Wine, where the previous path fallback was used. (more on the line) Do: Run the Wine rename check and a sandboxed screenshot or equivalent rename on Wine.gpu/vk/tex_desc_memo.h:108: The renderer change and the shared code have not been exercised in a Linux game run. (more on the line) Do: Run the Linux checks and a game start through a representative scene, including affected Tier 1 hardware as available.@fixcan do L1.Checks: Still running:
PR description / Title and description (pull_request_target).More: does it help, other systems, switches, what was read
Does it help: Unproven overall. The author reports a passing Windows smoke run on this head and successful network and mod tests before the rebase; Wine and Linux have not been tested. This is not a performance change.
Other systems: The rename change affects Wine; the texture memo and archive filter also run on Linux. The reported game run covers Windows with an RTX 5080, while Linux and Wine remain untested.
Switches: No production switch added, changed or removed.
Reviewed:
9f0a505ad2againstb15d47e303: Read the repository rules, PR template, standards, commit log, production diffs and selected callers and tests. The full diff output was truncated; several changed test files and surrounding production files were only skimmed, so this is not a complete review of every changed file.; nothing run (a code review).Checked and fine:
Testing: Read-only review; no builds, scripts or tests were run.
Overlaps and merge order: The description identifies #2747 as the source of the test-mode work and #2822 as the parent track; no independent overlap search was possible.
Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.
@ -679,3 +695,3 @@let leaf = leaf_of(n2);let replace = access == 1;match rename(&h, Some(&dir), leaf, replace) {match rename(&h, &dir, leaf, replace) {L2 (should fix): The replacement rename path has not been exercised on Wine, where the previous path fallback was used.
When: A Wine version that rejects the new handle-relative call would fail sandboxed game renames, including screenshot saves.
Do: Run the Wine rename check and a sandboxed screenshot or equivalent rename on Wine.
@ -104,6 +105,8 @@ struct PeekResult {uint32_t h = c2_read_word(s, ns, d.cbuf_offset + k * step);if (d.has_secondary) {h = (h << d.shift_left) | (c2_read_word(s, ns, d.secondary_cbuf_offset + k * step) << d.secondary_shift_left);} else if (d.shift_single_word) { // (as vk_draw.cpp's handle_of)L3 (should fix): The renderer change and the shared code have not been exercised in a Linux game run.
When: The changed texture-handle path is enabled by default on Linux as well as Windows, but the reported game run covers only Windows.
Do: Run the Linux checks and a game start through a representative scene, including affected Tier 1 hardware as available.
@ -101,0 +107,4 @@# (where the member lands, the links already unpacked followed: what a relative link is resolved from)folder = os.path.realpath(os.path.join(dest, os.path.dirname(member.name)))if not plain(member.name) or ".." in member.name.split("/") or not inside(folder):L1 (blocking): The destination check resolves only the parent, so it does not reject an existing leaf symlink that points outside the extraction folder.
When: If the destination already contains
out/fileas a symlink to an outside file, a regular tar member namedfilepasses the parent check and tarfile opens the symlink for writing, overwriting the outside file.Do: Resolve and validate the full destination for regular files before extraction, and add a test with a pre-existing leaf symlink pointing outside.
Recommendation: Wait. The code looks right to me and each fix is still needed on today's
mod-api; what is left before it can land is the Wine run for the rename change, a Linux pass, the hand tests in Still to test, and then a rebase oncemod-api's own rebase ontomainis done. Thank you for this round, llun: the tests ahead of each fix make it easy to follow.Code-only review: I read the diff and the code around it, and ran nothing from the PR.
Against today's
mod-apiThe PR's parent is
b15d47e30, which ismod-api's tip right now, so it already sits on top of today's work (the Insert menu fixes, the round of #2822 review fixes, and HD haptics over the pads pipe). The forge's "not mergeable" looks stale: the merge base it reports is that same commit. I found no textual or behaviour overlap:mod-api(ipc_conn.rsand itsPeekNamedPipe) are about the broker's own IPC links to the outside, such as Discord's pipe. This PR changes the other link, the game↔builder frame pipe inchannel.rsnet_channel. Onb15d47e30the builder still reads that link with a blockingreadon a handle that other threadswrite_allto through a clone, and the game's end (host/net_engine.c) still reads in byte mode. So both halves of the fix are still needed.Serving::run, which reads and replies on one thread and never writes from another. Soread_messageisn't needed there, and the PR rightly leaves it alone. The one change those pipes get isPIPE_READMODE_MESSAGEon the client end inpipe_pair.builder_link/slots.rsalready sets that mode itself, so the pads and files ends behave as before.rename()or the old Wine fallback. The PR's change stays local torename()and its caller.mod-api's rebase ontomainwill move this base again. Everything here excepttex_desc_memo.h,vk_memory.cpp,helpers.pyand the renderer tests ismod-api-only, so expect only a mechanical rebase. Thetex_desc_memo.hfix applies tomaintoo, as the Summary says, and could be split out tomainon its own if you want it there sooner.Per fix
files_windows.rs): this is correct, and it is a real sandbox fix. The path fallback could be redirected after the check, and the new junction-swap test shows the handle route can't be. The cost is the one in Risks: there is no fallback now, so Wine either takesRootDirectoryinNtSetInformationFile(FileRenameInformation)or every confined rename fails there. As far as I know Wine does take it, but I couldn't verify that. Please runtest_builder_files_wine.py(or ask someone with Wine to) before this lands; see the inline note.read_message: this is correct. Polling every 4 ms adds at most about 4 ms to each mod network message and matches what the game's end already does. There is one small edge case inline.hos_sandbox_startin the container (hos_main.c): the order is right, and the Linuxmainis unchanged. Inside the containerhos_options_choose()now runs beforegame_start_args, against the old comment's "before the options file". I found nothing in the options choice that readsLONGSHOT_DEV_MODSorHOS_MOD_TESTS, so I think it's fine, but I haven't traced it fully.tests:<id>screenshots (gfx.rs): this is fine.:→~matchesstorage.rsandprofiles.rs, and strippingtests:to find the running mod is narrow.tex_desc_memo.h: this now matchesvk_draw.cpphandle_ofexactly. The new eligibility clause also keeps ashift_left >= 32single word out of the memo rather than shifting by it, which is good.helpers.py): the checks are now stricter:\and:are refused, and links are resolved through the real path of the folder already unpacked. This is fine.vk_memory.cppinclude order: fine.test_game_menu_mouse_buttons.pywere never checked.Testing
What exists: in-game runs on Windows 11 / RTX 5080 (smoke on this head, and before the rebase the probe mod's network, storage and screenshots, Discord, a long accented path, a crash record and Controls), the Rust tests of the crates touched on the rebased head, and the new failing-then-passing tests. CI on the head hasn't reported yet. What's missing: Wine (
test_builder_files_wine.py), Linux (the suite and one start), the hand tests on Windows for a mod's confirmed web request and for a mod switched off and on or a packed mod, and the whole Python suite on the rebased head.Small nits are inline.
🤖 Generated with Claude Code
https://claude.ai/code/session_017vw8e2fJhRpDrY7pgVx6oJ
@ -679,3 +695,3 @@let leaf = leaf_of(n2);let replace = access == 1;match rename(&h, Some(&dir), leaf, replace) {match rename(&h, &dir, leaf, replace) {Refusing instead of falling back to the folder's path is the right call for the sandbox. Since this removes the Wine branch outright, though, a Wine whose
NtSetInformationFileignores or refusesRootDirectoryhere would fail every confined rename (the cache, saves written as temp-then-rename). I couldn't verify Wine's behaviour from here, so I'd hold the merge for a run oftests/test_builder_files_wine.py.@ -926,0 +953,4 @@if ok == 0 {return Err(std::io::Error::last_os_error());}if whole > 0 || left > 0 {An edge case, not a bug today: a zero-length message reports
whole == 0 && left == 0as well, so it would never be read, and it would block every message behind it while this loops. Every frame has a header, so it can't happen now. A short comment saying so (or reading whenPeekNamedPipereports a message of 0 bytes) would keep the next user ofpipe_pairfrom falling into it.@ -0,0 +2,4 @@sandbox only once the broker's file layer is in.The test mode's start (game_start_args, game/crates/longshot-game/src/mod_tests.rs) looks at the folder it is given (hasit mod.json? else the mods in it) and sets LONGSHOT_DEV_MODS from what it found. On Windows the sandboxed game is theNit: the test mode looks for
mod.toml(ashos_main.c's comment says), notmod.json; and line 20'stests/test_broker_files_wine.pyistests/test_builder_files_wine.py.16d6ee8048ae6cd779f9To the review:
tarfileremoves what is there first and does not follow it. The test came first (73782ad37): it fails without the fix (ae6cd779f) and passes with it, on Windows and on Linux, with a link to a file, to nothing yet and to a folder, and throughextractalltoo.test_builder_files_wine.pyhas not run. If a Wine refusesNtSetInformationFilewith a folder's handle, renames fail there; they don't go back to a path. It stays in Still to test.test_helpers_extract,test_fs_save_commitandtest_cursor_hidden_linuxpass on Linux (WSL). The rest of the Linux checks and a game start on Linux can't run on this PC. They stay in Still to test.Also pushed: the branch is on
mod-api@72711731c(no conflicts), with fixes for seven checks that fail onmod-apitoo (test_menu_i18n,test_fps_stats,test_cursor_hidden_linux,test_program_hooks,test_screensaver,test_fs_save_commit,test_crate_readmes).Thanks for the review. Pushed, on
mod-api@72711731c:read_message): fixed, not only noted, since what the game writes is not trusted. An empty message did hold the builder's thread: the new test (7641c9a75) times out without the fix (677accb9f).PeekNamedPipereports no bytes for it, so the pipe's message count is asked too (FSCTL_PIPE_PEEK), and the read ends the link, as the plain read did before. Tested with the game still there and with it gone. build-core's 162 tests and clippy pass.mod.tomlandtest_builder_files_wine.py: the two names are corrected (4cdd23cea).hos_options_choose()beforegame_start_args: traced. It only asks the builder for the settings file's place (game_builder_said("settings", …)) and reads no switch, so nothing there can depend onLONGSHOT_DEV_MODSorHOS_MOD_TESTS.test_builder_files_wine.py, the Linux suite and one start. I agree the merge waits for Wine.mod-api's own rebase ontomain.L2, Wine: run, and the renames work. Wine 9.0 (Ubuntu's, in WSL), on
4cdd23cea. I said there was no Wine here; I have since installed it.test_builder_files_wine.py's two programs were built on Windows with llvm-mingw, then run under Wine by the test's own steps (its folders, its arguments, its verdict): 27 checks pass, none fail. Among them:MoveFileExWover another file, the CRT'srename(), a rename out of the cache refused. No file was made outside the roots. Wine made no junction, so that part did not run. build-core's own rename tests pass there too.Two other build-core tests do not pass under Wine:
the_cache_takes_files_folders_renames_and_removesnever ends. This pull request does not change it. Its log repeats the deletes that clean up its folder, so I take it to be the cleanup; I did not trace it further or run it onmod-apialone.an_empty_message_ends_the_read, new here, times out: Wine 9.0 does not count an empty message. A game that sent one there would stop its own network link. Longshot's frames each have a header, so none is sent.Not run on Wine: the game itself, or a sandboxed screenshot (Wine has no AppContainer).
Pushed, on
mod-api@72711731c(887dbd382):selectis asked now. The test came first (411dd1b5b). In the confined game a development mod'sfetchis answered 200, 3 times of 3; it failed 3 of 3 before.tests:<mod>, which neither the game's grant (sinceb15d47e30) nor the builder's bounds know, so they are told "the network is not available here". I left it, since it is about who the sandbox lets out. The fake game's server covers most of it; the message could say so.cargo fmt --allin a checkout inside another one. The Rust and Python runs are in Testing.game-sites' tests fail now and then when run together (9 of 200 runs; 0 of 100 one at a time). One counts what the others change; I have not looked into the rest.Pushed (
4d20f5e78), tests only:game-sites' chance failures are fixed. 56 of 800 runs failed before; 0 of 2000 after. The tests share one phase and one list of what is retired, so one's half-done reclaim, count or thread changed another's answer. They take turns now. One also counted its hook in after the removal it was to hold back. I found no bug of the game's behind any of them.test_lifterpasses whole on this head: fmt, clippy and every Rust test. The last thing in its way was a build-tools test whose own program loads libunwind when built bycargo testalone.They run as tests:<id>, which has no manifest, so their network was nothing ("the network is not available here"). They hold the mod's grants: they are told by its id and held to its manifest, as the mod is. The builder judges them as it judges the mod. Co-Authored-By: Claude Opus 5.5 <[email protected]>Pushed (
610aa6d8c), after the answer that tests should match the game:be3e6c7f1). They are told to the builder by their mod's id and held to its manifest. The builder's rules are unchanged.LONGSHOT_DEV_MODS, asmod rundoes), a listed server answers 200 and one not listed is refused.dev.py game-testsrun. The builder only knows the mods it was told of, and the test mode names its mods inside the game, after the builder started. Two ways to let them through: take the mods of theHOS_MOD_TESTSfolder as development mods (no question asked), or know them and ask in the builder's window as for any mod. I did neither: the first lets every mod tested reach its servers with no yes from anyone, since the test mode grants a mod all its manifest lists.magic-itemcopiesWeapon_Bomb(it isObj_Bomb), andtough-octorokspatches anEnemyParamfile (it isMaxLifeinLife/LifeParameters/Enemy_Octorok.game__life__LifeParameters.bgyml). With those names both work in the game;content.md,files.mdanddev.mdname theEnemyParamfile too.610aa6d8cc078929a2d0e4741a8bf5a98c9cbe0da98c9cbe0d6390ffb41cPushed, rebased onto
mod-apiafter its move tomain(@982a45f82). The page shows only this pull request's changes again.HOS_MOD_TESTSnow and asks in its own window. No yes, no network. It followsab5592e2c: a yes is the copy's it was given to, and a changed mod is asked about again. The test fails if a mod is let through unasked.magic-item,tough-octoroks) and the guide pages name what the game has. Both apply in the game.test_lifterwhole and 821 Python checks passed on45441c842. Twelve checks that had fallen behind newer code are fixed; wheremod-apihad fixed one too, its version is kept.Pushed (
c3efe29eb), onmod-api@e9dd5aec5. One part of it replaces code you reviewed:read_message, which looked for a message every 4 ms, is gone, and theNtFsControlFilecall with it. The builder's end is overlapped now (message_pair,MessageEnd): a read waits on its own while other threads write. The pipe's name, its one instance, its owner-only access and the check of who opened it are as they were, and the pads and files pipes are not changed.the_cache_takes_files_folders_renames_and_removesends under Wine. It never did, onmod-apialone too: it kept a folder's handle open.test_ui_rendererasked for the Compact key's old fixed keys; it reads the bound key now.6390ffb41cc3efe29eb8@review
Recommendation: Approve. The code is ready: only testing is left. The tar extraction fix covers the reported leaf-symlink case, and the Wine rename run passed. The renderer and shared changes still need a Linux game run, and the pull request is reported as not mergeable. Recommend approval; not approved on the forge.
This combines Windows sandbox, mod networking and test-mode fixes with a texture lookup correction, safer archive extraction and repaired checks. The fixes have reported Windows coverage, but Linux game behavior remains unverified.
Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)
gpu/vk/tex_desc_memo.h:108: The renderer change and the shared code have not been exercised in a Linux game run. When: The changed texture-handle path is enabled by default on Linux as well as Windows, but the reported game run covers only Windows. Do: Run the Linux checks and a game start through a representative scene, including affected Tier 1 hardware as available.Since the last review (on
9f0a505ad2)Resolved: L1 (The destination check resolves only the parent, so it does not reject an existing leaf sym…); L2 (The replacement rename path has not been exercised on Wine, where the previous path fallba…)
Still open: L3 (The renderer change and the shared code have not been exercised in a Linux game run.)
Checks: Still running:
PR description / Title and description (pull_request_target).Also noticed (1; not asked for, not blocking)
More: does it help, other systems, switches, what was read
Does it help: Yes for the reported fixes: the author reports three successful external fetches after three failures before, and 27 Wine file-service checks passing. This is not a performance change.
Other systems: Windows and Wine have reported runs; Wine 9.0 passed the rename checks but could not exercise junctions or an AppContainer. Linux extraction checks passed, while the Linux game and renderer still need a run.
Switches: No switches added, changed or removed.
Reviewed:
c3efe29eb8againste9dd5aec5d: Read AGENTS.md, CONTRIBUTING.md, the pull request template, scripts/helpers.py, net-broker/src/sock.rs, game API networking and the texture memo; inspected the rename path, extraction tests, key networking diffs, commit list and reported runs. The remaining changed files and surrounding code were not read in full; the repository review checklist was not present.; nothing run (a code review).Checked and fine:
Testing: No code or tests were run in this review. The author reports Windows game and test runs, Wine checks, and selected Linux extraction checks; a Linux game run remains outstanding.
Overlaps and merge order: The pull request targets mod-api; no other overlapping pull requests were independently checked.
Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.
WIP: fix: mod-api on Windows, second round: renames, mods' network, test mode and the checksto fix: mod-api on Windows, second round: renames, mods' network, test mode and the checksRecommendation: Approve. The code is ready: only testing is left. The fixes have reported Windows game coverage, but the renderer and shared changes have not had the Linux game run requested before merge. Recommend approval; not approved on the forge.
The change fixes Windows sandbox renames, mod networking and test mode, corrects texture handle selection and tar extraction, and updates checks and examples. It removes several reported failures at the cost of a broad set of changes that still needs Linux game coverage.
Testing before merging (1) (runs on the systems it can change; it doesn't hold the recommendation)
gpu/vk/tex_desc_memo.h:108: The renderer change and the shared code have not been exercised in a Linux game run. When: The changed texture-handle path is enabled by default on Linux as well as Windows, but the reported game run covers only Windows. Do: Run the Linux checks and a game start through a representative scene, including affected Tier 1 hardware as available.Since the last review (on
c3efe29eb8)Still open: L3 (The renderer change and the shared code have not been exercised in a Linux game run.)
Checks: Still running:
PR description / Title and description (pull_request_target).Also noticed (1; not asked for, not blocking)
More: does it help, other systems, switches, what was read
Does it help: Yes for the reported Windows failures: the author reports three of three network requests succeeding after the fix versus three failures before it, plus successful sandbox smoke and mod tests. This is not a performance change.
Other systems: Windows and Wine have reported coverage, including 27 Wine file checks and five pipe tests; Wine could not exercise junction creation or AppContainer. Linux shared code and Vulkan rendering still need a game run.
Switches: No switches added, changed or removed. The existing RX_VK_TEX_DESC_MEMO switch remains enabled by default.
Reviewed:
c3efe29eb8againste9dd5aec5d: Read AGENTS.md, CONTRIBUTING.md, the pull request template and gpu/vk/tex_desc_memo.h in full; reviewed the supplied description, comments, review, ledger and CI results, and the diff summary and commit list. The remaining changed files and full diff were not read in this re-check.; nothing run (a code review).Checked and fine:
Testing: No commands from the project or tests were run. The author reports Windows game and automated checks and Wine checks; a Linux game start exercising the renderer and shared changes remains outstanding.
Overlaps and merge order: No current overlap established; the earlier review found no overlap with the then-current mod-api changes.
Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, as llun took it out of WIP. Nothing was run; a maintainer decides.
c3efe29eb8ff6d3ddbc8Recommendation: Wait. I've re-read the code at
ff6d3ddbc, and I would approve it once Linux has run it.Thank you for the quick and thorough follow-ups, llun. The code that replaced what I reviewed reads well:
MessageEnduses an event and anOVERLAPPEDper call, andGetOverlappedResultwaits for the I/O to end, so nothing outlives its buffer. A broken pipe or an empty message ends the link.selectcheck insock.rsapplies to Windows alone.tested_modsis asked about like any player's mod, and the yes is bound to the copy it was given for.grant_ofmapstests:<id>to its mod's own grants and manifest.The Wine run covers my earlier point about the rename, and the empty-message fix covers the other.
What still holds the approval:
tex_desc_memo.h(the memo is on by default), the network grants fortests:and the builder's bounds,game-sites, andhos_main.c. It needs a Linux compile of the host and game (llvm-mingw and Linux, the unticked box), the suite, and one start into a scene.mise run teston one head, host builds on Linux). The newHOS_MOD_TESTShint also needs an answer: as far as I can tell it reads an existing switch, so it can be deleted with a word why.Once a Linux run is posted and the description check passes, this can be approved.
🤖 Generated with Claude Code
https://claude.ai/code/session_017vw8e2fJhRpDrY7pgVx6oJ
ff6d3ddbc8b63d69b651Approve.
I rebased this onto
mod-apifc5275ca(the head wasff6d3ddb, nowb63d69b6): your 44 commits one by one, still yours. One conflict, intests/test_ui_renderer.py:mod-apiand your last commit had both updated the compact key's check, and I kept yours.Checked on Linux on the rebased head (CachyOS, RTX 3090):
cargo fmt --check,cargo clippy --workspace --all-targets -D warningscargo test --workspace --exclude modtooltests/run_all.py: 865 passed, 12 skipped, 2 failed (test_lifter,test_vk_wb_cpu_words_fast; both fail on main too)dev.py rtdev.py smoke: PASS (in play fromkokiri-start, 900 frames, the Insert menu opened)With the Wine and Windows runs you reported before the rebase, that covers what my earlier comment was waiting on.
Not covered, for the record:
modtool's tests were not rerun on the rebased head, nothing was run on Windows after the rebase, and the builder's window asking about a mod under test has not been clicked by hand. The description check still wants its unticked boxes.🤖 Generated with Claude Code
https://claude.ai/code/session_017vw8e2fJhRpDrY7pgVx6oJ