Repository navigation
Windows setup: route the stale-manifest failure through Exit-SetupFailure - #7569
Merged
Merged
Conversation
…lure The manifest-removal guard added in #7492 exits with a bare 'exit 1', so in Tauri mode the installer never emits the [TAURI:ERROR] line and the desktop UI falls back to a generic failure instead of naming the cause. Every other failure path in studio/setup.ps1 goes through Exit-SetupFailure, and tests/sh/test_tauri_retry_failure_context.sh asserts that invariant, so 'Repo tests (CPU)' has been red on main since that merge.
Member
Author
|
@codex review |
|
Codex Review: Didn't find any major issues. Nice work! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
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.
Problem
Repo tests (CPU)is red onmain, and every open PR inherits it:tests/sh/test_tauri_retry_failure_context.shasserts thatstudio/setup.ps1contains exactly one explicitexit, theexit $CodeinsideExit-SetupFailure. The stale-manifest guard added in #7492 exits directly instead:That is not only a test invariant.
Exit-SetupFailureis what emits the[TAURI:ERROR] <message>line, so on this path the desktop installer exits 1 with no structured error and the UI shows its generic fallback instead of naming the cause. The 34 other failure sites in the file all go through the helper.Fix
Route the one stray exit through
Exit-SetupFailure, keeping the twoWrite-Hostdetail lines for the console, matching the pattern used everywhere else in the file.Verification
On a clean checkout of
mainat 52a9601,tests/sh/test_tauri_retry_failure_context.shfails at that assertion. With this one line changed it passes:The rest of the shell suite that CI runs is green locally (
test_install_host_defaults.shandtest_install_rollback_lifecycle.share the two the workflow skips by name).