Skip to content

Desktop clean-machine CI: install the universal Windows installer - #19243

Merged
danielhanchen merged 1 commit into
mainfrom
ci/desktop-clean-machine-universal-installer
Nov 24, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
ci/desktop-clean-machine-universal-installer

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Problem

The desktop windows clean-machine job fails on every PR that runs it since release v0.1.923-beta. For example #19238:

##[error]expected exactly one AMD64 installer in the release, found 2 (assets: Unsloth-Desktop-Windows-ARM64.exe, Unsloth-Desktop-Windows-x64.exe, Unsloth-Desktop-Windows.exe)

The next step then fails with "the app wrote no tauri.log", because nothing was installed.

Cause

#18621 (one Windows installer that selects x64 or ARM64) is correct. Releases now ship:

  • Unsloth-Desktop-Windows-x64.exe
  • Unsloth-Desktop-Windows-ARM64.exe
  • Unsloth-Desktop-Windows.exe, which runs the right one for the machine. The release notes send every Windows user to this one.

The clean-machine job treated every asset that is not ARM64 as the x64 installer, so on AMD64 it found two and stopped. Stopping was the job's intended reaction to a packaging change. It just was not updated for this one.

Fix

The Silent install step in desktop-app-clean-machine-ci.yml now recognises the release by name:

  • x64 + ARM64 + universal: install Unsloth-Desktop-Windows.exe on both architectures, which is the path a user takes. It forwards /S to the native installer and returns its exit code.
  • Older releases, ARM64 + unsuffixed x64: the previous per-architecture pick.
  • Any other set: still fails, with the asset list.

After the install, a new check reads the installed app's PE machine type (0x8664 / 0xAA64) and compares it with the runner's architecture. If the universal installer ever picks the wrong payload, this job now fails.

Verification

  • Ran both PowerShell blocks under pwsh against fake dl/ folders:
    • the three-installer release picks the universal installer on AMD64 and ARM64;
    • the older two-installer release picks the unsuffixed installer on AMD64 and -ARM64 on ARM64;
    • other sets fail.
  • Against fake PE headers, the matching build passes and the wrong one fails on each architecture.
  • The 9 test files that read this workflow pass (609 passed), and the YAML parses.
  • The real Windows run is this PR's own desktop windows job.

…8621)

#18621 ships Unsloth-Desktop-Windows-x64.exe and -ARM64.exe plus
Unsloth-Desktop-Windows.exe, which runs the one for the machine. The
clean-machine job treated every non-ARM64 asset as the x64 installer, found
two on AMD64 and stopped ("expected exactly one AMD64 installer"), so the
desktop windows job fails for every PR since v0.1.923-beta.

Recognise the two release shapes by name: with native x64 and ARM64
installers, install Unsloth-Desktop-Windows.exe (where the release notes
send every Windows user); on older releases keep the per-architecture pick.
Any other set still fails. Then check the installed app's PE machine type
against the runner, so the universal installer picking the wrong payload
fails here.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-24T12:06:01.559330Z 61f1053 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: 61f105361b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

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".

@danielhanchen
danielhanchen merged commit 087332d into main Nov 24, 2026
6 of 32 checks passed
@danielhanchen
danielhanchen deleted the ci/desktop-clean-machine-universal-installer branch November 24, 2026 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant