Repository navigation
Fix Windows Rust tests by embedding the app manifest in test executables - #213
Merged
Merged
Conversation
tauri-build links its app manifest into binaries only, so on Windows the lib unit test executable starts without the Common Controls v6 dependency and dies with STATUS_ENTRYPOINT_NOT_FOUND before any test runs. On MSVC, hand the same manifest to the linker for every target instead, without the default UAC section, so the app's embedded manifest keeps its content. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ata check The linker-generated manifest dropped tauri-winres' whitespace, so the app's embedded manifest bytes changed. Compile the same resource script tauri-winres writes, but for every target, so the binary's manifest is byte-identical. Running the safe save tests on Windows also showed the app-data guard comparing a missing folder in plain form against an existing one in `\\?\` form; canonicalize the deepest existing folder on both sides instead. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
vycdev
added a commit
that referenced
this pull request
Nov 20, 2026
Merge the four Open in Slicer bullets into one entry for the shipped flow, fold Multi-head filament requirements into Multi-head printing, and move the decode-once image work into its own Changed entry. Move touch-up history fixes that predate v4.3 into Fixed, add the missing diagnostics folder fix, and reduce the cats benchmark entry to one Fixed line. Fold in the notes from PRs merged since (#203, #205, #206, #208, #209, #210, #212, #213) and trim test-only and maintenance details that do not help users. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 20, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every PR fails
Rust tests (windows-latest)since #207 and #204 met ondevelop. The lib test executable builds, then exits with0xc0000139(STATUS_ENTRYPOINT_NOT_FOUND) before any test runs. tauri-build embeds the Windows app manifest only into binaries. Its Common Controls v6 dependency is what makesTaskDialogIndirectand friends resolvable, so the test executable, which links the same Tauri and dialog code, can't load. The cause isembed_resource::compileemittingrustc-link-arg-bins.src-tauri/build.rsnow turns off tauri-build's manifest on Windows MSVC and embeds it in every target. It writes the same resource script tauri-winres writes, from a verbatim copy of tauri-build's manifest insrc-tauri/windows/app-manifest.xml, and compiles it withembed_resource::compile_for_everything.embed-resource3.0.6 was already in the lockfile through tauri-winres.I first tried Tauri's documented linker route (
/MANIFEST:EMBED+/MANIFESTINPUT). It was semantically identical, but the linker strips tauri-winres' whitespace, so the app's embedded manifest bytes changed. The resource-script route keeps them byte-identical.Running the safe_save tests on Windows for the first time also caught a bug in #207's app-data guard. It compared a missing destination folder in plain
C:\…form against an existing data folder in canonical\\?\C:\…form. That case was harmless, because creating the temporary file fails when the folder doesn't exist, but the guard now canonicalizes the deepest existing folder on both sides.Proof:
Rust testson windows-latest (31 tests, including the safe_save IPC test), ubuntu-22.04 and macOS. The first dispatch, before the guard fix, showed the test executable loading and only the app-data assertion failing.kromacut.exewith thisbuild.rsand with develop's, then extracted both embedded manifests withmt.exe. Same SHA-256 (A8943B08…), andfc /bfound no differences. The test executable now carries the same manifest.ubuntu-latestis now 26.04, where Playwright has no Chromium build. That is unrelated and handled by Keep e2e CI working on a cold cache by pinning runners to Ubuntu 24.04 #211.No changelog entry: CI and test only, with no user-visible change.
Council review
Rounds: 1
Both approved. I applied Opus's two comment nits: the manifest copy's tauri-build version, and the escaping wording. I declined Sol's nit to also compare raw icon and version-info resources from a full NSIS build: that code path is unchanged, since
new_without_app_manifest()only drops the manifest.Created with Claude Opus 5.5 in Claude Code (T3 Code).
🤖 Generated with Claude Code