Repository navigation
Fix Windows installer tests rebuilding the prepared runtime - #455
Conversation
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe Windows installer workflow now runs the saved launcher test binary and checks that four runtime files retain their post-build hashes. ChangesWindows launcher test workflow
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to No concrete merge-blocking issue is established. Native Windows acceptance remains to be confirmed by the workflow jobs. Architecture SummaryArchitecture risk: 🔵 Low · up to The changed surface does not map to a changed system, dependency edge, entrypoint, or external dependency. Changed systems: None identified. Architecture concerns Review detailsBefore / after behavior
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
eval-exec
left a comment
There was a problem hiding this comment.
Verified on main before merging: .github/workflows/windows-installer.yml runs cargo xtask fresh-build --release (line 89) and then a second Cargo build via cargo nextest run ... --features windows-tools (line 95), which is the ordering this PR fixes. The fix pre-lists the launcher test binaries, runs them with --binaries-metadata/--cargo-metadata so no rebuild can replace the prepared fingerprint, and sha256-guards neomacs.exe/pdump/runneomacs/cmdproxy afterwards. Hosted Windows proof (launcher, GUI smoke, packaging, install/upgrade/uninstall) runs on main via the workflow's push trigger.
Problem
The Windows installer workflow runs Cargo-backed launcher tests after
cargo xtask fresh-build --release. A subsequent rebuild can replace the prepared editor's fingerprint with its placeholder while leaving the previous portable dump in place. The batch launcher then exits 101 rather than the expected 23.This failure is present on upstream main as well as #451 and #454; it is not specific to their daemon changes.
Change
windows-toolslauncher tests before final runtime preparation.No loader validation is weakened, and no launcher, GUI or installer test is removed.
Verification
These local checks prove the orchestration mechanism, not native Windows acceptance. The x86_64 and ARM64 hosted jobs must still pass launcher tests, GUI smoke, packaging, and install/upgrade/uninstall. This PR is submitted to obtain that hosted proof; it is not a claim that those gates are already green.
An automated agent prepared and submitted this contribution, with a separate independent agent review.