refactor(builder): the swap of a running builder goes with self-update #3011

Merged
HumanBean merged 2 commits from PedroRossi/Longshot:refactor/release-swap-dead-code into main 2026-12-05 19:31:25 +00:00
Contributor

Summary

old, with_suffix, swap and tidy in builder/crates/release/src/swap.rs replaced the running builder during
self-update, which #2762 removed (the launcher owns updates since). Nothing calls them but their own two tests and their helper.
Besides 98 lines read and compiled for nothing, those tests describe swapping a running program as handled, while
what installs a builder now, place (install.rs), renames the new program over the old one, only waiting while it is
held (while_held): someone reading swap.rs to see how an update replaces a running builder is told about
protection the code no longer has.

The four go, with their two tests and their helper. is_held, while_held and set_subsystem, still used, stay, and the module's
comment says what it is for now.

Testing

Tested: on this PC (Linux): the release crate, longshot-builder and longshot-packager build with clippy -D
warnings (nothing else used the four); the release crate's tests; rustfmt. As pr create asks for a builder change: Debian 13, GeForce GTX 1660 SUPER, NVIDIA 550.163.01: the game built by a builder from main @ 1938a302 with #3009, #3011 and #3012 merged, through the PC's job queue, played from the Market entrance repository save, then the control bridge's quit; exit 0. The release crate's code runs when a version is fetched or installed, not in a build or the game. mise run test (--strict) on main @ 1938a302, and on main with this change merged (together with #3009, #3010, #3012, #3013, #3014, from the same audit): 775 passed, 145 failed, 10 skipped both ways, so none fails only with it. The 145 are named at the end.

Still to test:
None: code nothing called.

Measurements

Nothing to measure: code nothing ran; builds, updates and the game do what they did.

Risks

None: nothing called these, and a build that still did would no longer compile.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (any failure that also fails on main is named).
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.
The 145 checks of mise run test that fail on main @ 1938a302 on this PC too, with or without this change

97 need a tool this PC doesn't have on PATH (--strict fails them):

  • clang (63): test_audio_output_devices.py, test_box_light_reuse.py, test_camera_centering.py, test_camera_speed.py, test_drive_target.py, test_dynres_sites.py, test_exclusive_marks.py, test_fixed_scale_sites.py, test_floor_carry_step.py, test_frame_rate_cap_step.py, test_frame_whole.py, test_free_view_anchor.py, test_fullscreen_monitor_platform.py, test_high_fps_fixes.py, test_horse_jump_step.py, test_hos_ab.py, test_hud_layout.py, test_jump_takeoff_step.py, test_linux_audio_output.py, test_loop_step.py, test_menu_hooks.py, test_microphone_test_gain.py, test_monitor_friendly_names.py, test_mouse_native.py, test_movement_speed.py, test_movie_frame_count.py, test_nvn_null_pool.py, test_nvn_tex_builder_guard.py, test_ocarina_wait.py, test_ocb_hold.py, test_oot_barrier.py, test_oot_camera_clearance.py, test_oot_cloth.py, test_oot_cloth_60.py, test_oot_cloth_time.py, test_oot_damage.py, test_oot_fov.py, test_oot_heap_retry.py, test_oot_jitter.py, test_oot_shadow.py, test_oot_shadow_fit.py, test_oot_transition_autosave.py, test_oot_voice_option.py, test_oot_wide_bubble.py, test_oot_wide_save_picture.py, test_player_update_sites.py, test_sampler_stack_walk.py, test_saved_turn_rate.py, test_scarecrow_timing.py, test_scene_format.py, test_sdl_monitor_names.py, test_shadow_slot.py, test_song_note_cue.py, test_sound_held_frames.py, test_sprint.py, test_svc_core_mask.py, test_tex_compact.py, test_text_speed.py, test_title_card_sites.py, test_water_substeps.py, test_web_floor_steps.py, test_wide_sites.py, test_wide_ui.py
  • spirv-val (20): f2i_immediate, global_load_16, native_suatom, test_coop_spirv.py, test_default_point_size.py, test_depth_sample_types.py, test_draw_parameters.py, test_fsr4_tune.py, test_guest_page_fast32.py, test_image_arrays.py, test_mesh_fallback_layout.py, test_mesh_unreachable_outputs.py, test_mma_software.py, test_native_float_atomic_add.py, test_nonuniform_image_arrays.py, test_spirv_struct_identity.py, test_texture_phi_dominance.py, test_unsigned_image_types.py, test_vendor_translation.py, test_wmma16_spirv_val.py
  • clang++ (7): test_dead_targets_sweep.py, test_lower_depbar.py, test_lower_lds_after_sts.py, test_lower_register_markers.py, test_native_suatom.py, test_program_answer_domains.py, test_target_pool_cap.py
  • glslang (5): test_framegen_hdr.py, test_fsr3fi_hud_layer.py, test_fsr3fi_hudless_colour.py, test_host_shaders.py, test_temporal_present_bandwidth.py
  • glslang, spirv-val (1): test_fsr3_shaders.py
  • llvm-mc (1): test_lifter.py

48 fail on main itself: test_blocks_at_start.py, test_bug_report.py, test_cloth_kernels.py, test_cloth_loops.py, test_cloth_sphere.py, test_cloth_step12.py, test_cloth_step8.py, test_cloth_step9.py, test_control_picture.py, test_crash_record.py, test_crt_options.py, test_dev_update.py, test_dlssg_pace.py, test_draw_stream_visibility.py, test_framegen_resources.py, test_fsr_uniform_ownership.py, test_game_boundary.py, test_guest_holes.py, test_image_reaper_threads.py, test_image_view_retry.py, test_input_background.py, test_keyboard_option.py, test_linux_pressure.py, test_loaded_modules_drop.py, test_log_levels.py, test_menu_keys.py, test_menu_save_atomic.py, test_mesh_first_types.py, test_oot_occ_raster.py, test_option_ids.py, test_perf_send.py, test_pipeline_tour.py, test_present_acquire_ahead.py, test_present_image_free.py, test_present_source_crop.py, test_program_cache_cleanup.py, test_program_cache_one_variant.py, test_readback_timeout_reuse.py, test_recording_admission.py, test_screensaver.py, test_switch_table.py, test_target_retention.py, test_tex_desc_memo.py, test_thinlto_tls.py, test_upscaler_round_trip.py, test_vram_compact.py, test_windows_display_startup.py, test_windows_on_linux.py


Found in an AI-assisted audit of the repository. The test, the fix, the runs and this description were made with Claude Code; I reviewed them.

Co-Authored-By: Claude Opus 5.5 [email protected]

🤖 Generated with Claude Code

## Summary `old`, `with_suffix`, `swap` and `tidy` in `builder/crates/release/src/swap.rs` replaced the running builder during `self-update`, which #2762 removed (the launcher owns updates since). Nothing calls them but their own two tests and their helper. Besides 98 lines read and compiled for nothing, those tests describe swapping a running program as handled, while what installs a builder now, `place` (`install.rs`), renames the new program over the old one, only waiting while it is held (`while_held`): someone reading `swap.rs` to see how an update replaces a running builder is told about protection the code no longer has. The four go, with their two tests and their helper. `is_held`, `while_held` and `set_subsystem`, still used, stay, and the module's comment says what it is for now. ## Testing **Tested:** on this PC (Linux): the release crate, longshot-builder and longshot-packager build with clippy -D warnings (nothing else used the four); the release crate's tests; rustfmt. As `pr create` asks for a builder change: Debian 13, GeForce GTX 1660 SUPER, NVIDIA 550.163.01: the game built by a builder from main @ 1938a302 with #3009, #3011 and #3012 merged, through the PC's job queue, played from the Market entrance repository save, then the control bridge's quit; exit 0. The release crate's code runs when a version is fetched or installed, not in a build or the game. `mise run test` (`--strict`) on main @ 1938a302, and on main with this change merged (together with #3009, #3010, #3012, #3013, #3014, from the same audit): 775 passed, 145 failed, 10 skipped both ways, so none fails only with it. The 145 are named at the end. **Still to test:** None: code nothing called. ## Measurements Nothing to measure: code nothing ran; builds, updates and the game do what they did. ## Risks None: nothing called these, and a build that still did would no longer compile. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [x] `mise run test` passes (any failure that also fails on `main` is named). - [x] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. <details><summary>The 145 checks of <code>mise run test</code> that fail on main @ 1938a302 on this PC too, with or without this change</summary> 97 need a tool this PC doesn't have on PATH (`--strict` fails them): - clang (63): test_audio_output_devices.py, test_box_light_reuse.py, test_camera_centering.py, test_camera_speed.py, test_drive_target.py, test_dynres_sites.py, test_exclusive_marks.py, test_fixed_scale_sites.py, test_floor_carry_step.py, test_frame_rate_cap_step.py, test_frame_whole.py, test_free_view_anchor.py, test_fullscreen_monitor_platform.py, test_high_fps_fixes.py, test_horse_jump_step.py, test_hos_ab.py, test_hud_layout.py, test_jump_takeoff_step.py, test_linux_audio_output.py, test_loop_step.py, test_menu_hooks.py, test_microphone_test_gain.py, test_monitor_friendly_names.py, test_mouse_native.py, test_movement_speed.py, test_movie_frame_count.py, test_nvn_null_pool.py, test_nvn_tex_builder_guard.py, test_ocarina_wait.py, test_ocb_hold.py, test_oot_barrier.py, test_oot_camera_clearance.py, test_oot_cloth.py, test_oot_cloth_60.py, test_oot_cloth_time.py, test_oot_damage.py, test_oot_fov.py, test_oot_heap_retry.py, test_oot_jitter.py, test_oot_shadow.py, test_oot_shadow_fit.py, test_oot_transition_autosave.py, test_oot_voice_option.py, test_oot_wide_bubble.py, test_oot_wide_save_picture.py, test_player_update_sites.py, test_sampler_stack_walk.py, test_saved_turn_rate.py, test_scarecrow_timing.py, test_scene_format.py, test_sdl_monitor_names.py, test_shadow_slot.py, test_song_note_cue.py, test_sound_held_frames.py, test_sprint.py, test_svc_core_mask.py, test_tex_compact.py, test_text_speed.py, test_title_card_sites.py, test_water_substeps.py, test_web_floor_steps.py, test_wide_sites.py, test_wide_ui.py - spirv-val (20): f2i_immediate, global_load_16, native_suatom, test_coop_spirv.py, test_default_point_size.py, test_depth_sample_types.py, test_draw_parameters.py, test_fsr4_tune.py, test_guest_page_fast32.py, test_image_arrays.py, test_mesh_fallback_layout.py, test_mesh_unreachable_outputs.py, test_mma_software.py, test_native_float_atomic_add.py, test_nonuniform_image_arrays.py, test_spirv_struct_identity.py, test_texture_phi_dominance.py, test_unsigned_image_types.py, test_vendor_translation.py, test_wmma16_spirv_val.py - clang++ (7): test_dead_targets_sweep.py, test_lower_depbar.py, test_lower_lds_after_sts.py, test_lower_register_markers.py, test_native_suatom.py, test_program_answer_domains.py, test_target_pool_cap.py - glslang (5): test_framegen_hdr.py, test_fsr3fi_hud_layer.py, test_fsr3fi_hudless_colour.py, test_host_shaders.py, test_temporal_present_bandwidth.py - glslang, spirv-val (1): test_fsr3_shaders.py - llvm-mc (1): test_lifter.py 48 fail on main itself: test_blocks_at_start.py, test_bug_report.py, test_cloth_kernels.py, test_cloth_loops.py, test_cloth_sphere.py, test_cloth_step12.py, test_cloth_step8.py, test_cloth_step9.py, test_control_picture.py, test_crash_record.py, test_crt_options.py, test_dev_update.py, test_dlssg_pace.py, test_draw_stream_visibility.py, test_framegen_resources.py, test_fsr_uniform_ownership.py, test_game_boundary.py, test_guest_holes.py, test_image_reaper_threads.py, test_image_view_retry.py, test_input_background.py, test_keyboard_option.py, test_linux_pressure.py, test_loaded_modules_drop.py, test_log_levels.py, test_menu_keys.py, test_menu_save_atomic.py, test_mesh_first_types.py, test_oot_occ_raster.py, test_option_ids.py, test_perf_send.py, test_pipeline_tour.py, test_present_acquire_ahead.py, test_present_image_free.py, test_present_source_crop.py, test_program_cache_cleanup.py, test_program_cache_one_variant.py, test_readback_timeout_reuse.py, test_recording_admission.py, test_screensaver.py, test_switch_table.py, test_target_retention.py, test_tex_desc_memo.py, test_thinlto_tls.py, test_upscaler_round_trip.py, test_vram_compact.py, test_windows_display_startup.py, test_windows_on_linux.py </details> --- Found in an AI-assisted audit of the repository. The test, the fix, the runs and this description were made with Claude Code; I reviewed them. Co-Authored-By: Claude Opus 5.5 <[email protected]> 🤖 Generated with [Claude Code](https://claude.com/claude-code)
refactor(builder): the swap of a running builder goes with self-update
Some checks failed
PR description / Title and description (pull_request_target) Successful in 8s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
575ca4a647
swap.rs's old, with_suffix, swap and tidy replaced a running builder during self-update, which is gone: only their own
three tests called them, and those suggested a running program's swap is handled, where place renames. They go;
is_held, while_held and set_subsystem stay.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Contributor

Tested in game: Debian 13, GeForce GTX 1660 SUPER, NVIDIA 550.163.01: the game built by a builder from main @ 1938a302 with this change merged (and my two other release-crate pull requests), through the PC's job queue, played from the Market entrance repository save, then the control bridge's quit; exit 0. The release crate's code runs when a version is fetched or installed, not in a build or the game.

Tested in game: Debian 13, GeForce GTX 1660 SUPER, NVIDIA 550.163.01: the game built by a builder from main @ 1938a302 with this change merged (and my two other release-crate pull requests), through the PC's job queue, played from the Market entrance repository save, then the control bridge's quit; exit 0. The release crate's code runs when a version is fetched or installed, not in a build or the game.
PedroRossi changed title from WIP: refactor(builder): the swap of a running builder goes with self-update to refactor(builder): the swap of a running builder goes with self-update 2026-12-02 16:12:15 +00:00
PedroRossi force-pushed refactor/release-swap-dead-code from 575ca4a647
Some checks failed
PR description / Title and description (pull_request_target) Successful in 8s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to 17d8889792
Some checks failed
PR description / Title and description (pull_request_target) Successful in 6s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2026-12-04 16:09:30 +00:00
Compare
Owner
@review
BeanBot left a comment

Recommendation: Approve. The removed functions have no remaining callers, and the retained installation helpers are unchanged. CI is still running. Nothing blocking is left. Recommend approval; not approved on the forge.

Removes unused self-update swap and recovery code and its tests, reducing misleading code without changing the current install path. The crate-level documentation still describes the removed behavior.

Nits (1): optional.

  • L1 builder/crates/release/src/swap.rs:2: The crate-level overview still says this module replaces a running program for self-update, contradicting the updated module documentation. (more on the line) Do: Update the crate overview in lib.rs to describe the retained held-file retry and PE subsystem helpers, and remove its obsolete self-update reference.

@fix can do L1.

Checks: Still running: 10 checks.

More: does it help, other systems, switches, what was read

Does it help: Not a perf change. The author reports that the release crate tests and relevant Rust builds passed on Linux; removing unreachable code does not require a performance measurement.

Other systems: The Windows and Linux install paths still use while_held, and the builder and packager still use the unchanged PE subsystem helpers. No runtime behavior is changed by the diff.

Switches: None.

Reviewed: 17d8889792 against a90fdf6776: Read AGENTS.md, CONTRIBUTING.md, docs/dev/standards.md, the pull request template, the commit, the complete changed file at HEAD and base, and the release crate root. Inspected install.rs and references to the changed module and removed functions; other callers were searched and skimmed. docs/review-checklist.md and the adjacent Tooling checkout were absent. No generated files or recorded runs changed.; nothing run (a code review).

Checked and fine:

  • The deleted functions have no remaining in-tree callers; the retained helpers and their tests are unchanged.
  • The commit records AI assistance, and the diff contains no generated output, game-derived files, API version changes, or third-party changes.

Testing: No commands from the project were run for this review. The author reports Linux Rust builds and release crate tests; the supplied CI checks are still running.

Overlaps and merge order: Not checked; network access is unavailable.


Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The removed functions have no remaining callers, and the retained installation helpers are unchanged. CI is still running. Nothing blocking is left. Recommend approval; not approved on the forge. Removes unused self-update swap and recovery code and its tests, reducing misleading code without changing the current install path. The crate-level documentation still describes the removed behavior. **Nits (1)**: optional. - **L1** `builder/crates/release/src/swap.rs:2`: The crate-level overview still says this module replaces a running program for self-update, contradicting the updated module documentation. (more on the line) **Do:** Update the crate overview in lib.rs to describe the retained held-file retry and PE subsystem helpers, and remove its obsolete self-update reference. `@fix` can do L1. **Checks:** Still running: 10 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Not a perf change. The author reports that the release crate tests and relevant Rust builds passed on Linux; removing unreachable code does not require a performance measurement. **Other systems:** The Windows and Linux install paths still use while_held, and the builder and packager still use the unchanged PE subsystem helpers. No runtime behavior is changed by the diff. **Switches:** None. **Reviewed:** 17d888979265 against a90fdf677650: Read AGENTS.md, CONTRIBUTING.md, docs/dev/standards.md, the pull request template, the commit, the complete changed file at HEAD and base, and the release crate root. Inspected install.rs and references to the changed module and removed functions; other callers were searched and skimmed. docs/review-checklist.md and the adjacent Tooling checkout were absent. No generated files or recorded runs changed.; nothing run (a code review). **Checked and fine:** - The deleted functions have no remaining in-tree callers; the retained helpers and their tests are unchanged. - The commit records AI assistance, and the diff contains no generated output, game-derived files, API version changes, or third-party changes. **Testing:** No commands from the project were run for this review. The author reports Linux Rust builds and release crate tests; the supplied CI checks are still running. **Overlaps and merge order:** Not checked; network access is unavailable. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
@ -8,2 +1,2 @@
//! ([`tidy`]), when nothing runs from it any more (a delete that fails, an old copy still running, is tried again at
//! the start after); a start that finds no program but its `.old` (power lost between the two renames) puts it back.
//! A file Windows holds a moment tried again (an antivirus scanning a program just written: the Longshot Launcher's
//! Core/SelfUpdate.cs WhileHeld, ported), and a Windows program made a windowed one. The swap of a running builder
Member

L1 (nit): The crate-level overview still says this module replaces a running program for self-update, contradicting the updated module documentation.

When: A reader starting at builder/crates/release/src/lib.rs is still directed to swap as the implementation of running-program replacement, although this change removes that implementation.

Do: Update the crate overview in lib.rs to describe the retained held-file retry and PE subsystem helpers, and remove its obsolete self-update reference.

**L1** (nit): The crate-level overview still says this module replaces a running program for self-update, contradicting the updated module documentation. *When:* A reader starting at builder/crates/release/src/lib.rs is still directed to swap as the implementation of running-program replacement, although this change removes that implementation. **Do:** Update the crate overview in lib.rs to describe the retained held-file retry and PE subsystem helpers, and remove its obsolete self-update reference.
Owner
@fix
Owner
@fix
BeanBot force-pushed refactor/release-swap-dead-code from 17d8889792
Some checks failed
PR description / Title and description (pull_request_target) Successful in 6s
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to de64a94149
Some checks are pending
PR description / Title and description (pull_request_target) Successful in 6s
CI / What the change needs (pull_request) Successful in 9s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Waiting to run
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Waiting to run
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Waiting to run
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Waiting to run
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Waiting to run
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Waiting to run
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Waiting to run
CI / Website build and checks (pull_request) Waiting to run
CI / Third-party parts and guide screenshots (pull_request) Successful in 13s
2026-12-05 19:23:43 +00:00
Compare
BeanBot left a comment

Recommendation: Approve. The reported cleanup and overview correction are consistent, but the supplied base-to-head diff includes 949 files beyond the described change. CI also has not run on this head. Nothing blocking is left. Recommend approval; not approved on the forge.

What @fix changed
I changed this pull request: the new head is de64a94149. I rebased it onto main (123b44ccb2). I edited its description to match the change.

Changed

  • Release crate overview: Updated builder/crates/release/src/lib.rs:1 to remove the obsolete self-update reference and describe the retained held-file retry and PE subsystem helpers. No builds or tests were run, as requested.

Nothing was built or run: the checks run again on the new head.

The described change removes unused self-update swap code and corrects the release crate overview. It reduces misleading code and documentation without an intended player-facing change.

Questions (1) (not confirmed from the code; they don't hold the recommendation)

  • Is a90fdf6776 the intended comparison base for this pull request?

Checks: they run again on this head; a failure shows on the pull request.

Also noticed (1; not asked for, not blocking)
  • The supplied base-to-head diff includes 949 changed files, while the pull request describes only the release swap cleanup.
More: does it help, other systems, switches, what was read

Does it help: Not a perf change. The author reports successful Linux builds and release-crate tests, plus identical 775 passed, 145 failed and 10 skipped suite results on the compared trees.

Other systems: The retained held-file retry and PE subsystem helpers are used by release installation and builder packaging on Windows and Linux. The described removal does not alter those helpers.

Switches: None in the described change.

Reviewed: de64a94149 against 123b44ccb2: Read AGENTS.md, CONTRIBUTING.md, the pull request template, release/src/lib.rs and swap.rs in full; read the cleanup and fix commits' diffs and searched their callers. Skimmed the standards and the supplied base-to-head diff; the latter includes 949 files and was not reviewed in full. Tooling's AGENTS.md and docs/review-checklist.md were absent.; nothing run (a code review).

Checked and fine:

  • The overview now describes fetch, held-file retry and PE subsystem changes without claiming self-update support.
  • The fix changes documentation only and preserves the cleanup.

Testing: No commands from the project were run. CI has not run on this head.

Overlaps and merge order: Not determined from the available information.


Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its fix. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The reported cleanup and overview correction are consistent, but the supplied base-to-head diff includes 949 files beyond the described change. CI also has not run on this head. Nothing blocking is left. Recommend approval; not approved on the forge. **What `@fix` changed** I changed this pull request: the new head is de64a94149ec. I rebased it onto `main` (123b44ccb289). I edited its description to match the change. **Changed** - **Release crate overview**: Updated builder/crates/release/src/lib.rs:1 to remove the obsolete self-update reference and describe the retained held-file retry and PE subsystem helpers. No builds or tests were run, as requested. Nothing was built or run: the checks run again on the new head. The described change removes unused self-update swap code and corrects the release crate overview. It reduces misleading code and documentation without an intended player-facing change. **Questions (1)** (not confirmed from the code; they don't hold the recommendation) - Is a90fdf677650 the intended comparison base for this pull request? **Checks:** they run again on this head; a failure shows on the pull request. <details> <summary>Also noticed (1; not asked for, not blocking)</summary> - The supplied base-to-head diff includes 949 changed files, while the pull request describes only the release swap cleanup. </details> <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Not a perf change. The author reports successful Linux builds and release-crate tests, plus identical 775 passed, 145 failed and 10 skipped suite results on the compared trees. **Other systems:** The retained held-file retry and PE subsystem helpers are used by release installation and builder packaging on Windows and Linux. The described removal does not alter those helpers. **Switches:** None in the described change. **Reviewed:** de64a94149ec against 123b44ccb289: Read AGENTS.md, CONTRIBUTING.md, the pull request template, release/src/lib.rs and swap.rs in full; read the cleanup and fix commits' diffs and searched their callers. Skimmed the standards and the supplied base-to-head diff; the latter includes 949 files and was not reviewed in full. Tooling's AGENTS.md and docs/review-checklist.md were absent.; nothing run (a code review). **Checked and fine:** - The overview now describes fetch, held-file retry and PE subsystem changes without claiming self-update support. - The fix changes documentation only and preserves the cleanup. **Testing:** No commands from the project were run. CI has not run on this head. **Overlaps and merge order:** Not determined from the available information. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its fix. Nothing was run; a maintainer decides.</sub>
HumanBean deleted branch refactor/release-swap-dead-code 2026-12-05 19:31:25 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 participants
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
MagicBeanDev/Longshot!3011
No description provided.