Skip to content

Pin AppImage plugin to a versioned release - #10201

Merged
oobabooga merged 3 commits into
unslothai:mainfrom
wasimysaid:fix/versioned-appimage-plugin-pin
Sep 3, 2026
Merged

oobabooga merged 3 commits into
unslothai:mainfrom
wasimysaid:fix/versioned-appimage-plugin-pin

Conversation

@wasimysaid

@wasimysaid wasimysaid commented Sep 2, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • replace the rolling linuxdeploy-plugin-appimage continuous URL with upstream's dated 1-alpha-20250213-1 release
  • keep Unsloth's fail-closed SHA-256 verification using the audited asset digest
  • add a static contract test that requires every fetched AppImage tool to have a full SHA-256 pin and rejects continuous/latest release aliases

Why

The v0.1.805-beta desktop release failed when upstream's monthly rebuild replaced the asset behind the continuous URL. PR #10198 updated the hash to unblock that release, but the same failure would recur on the next rebuild.

Upstream's current rolling source differs from 1-alpha-20250213-1 only by a license addition, CI action bumps, and a FreeBSD-specific compiler-flag fix; there is no Linux runtime feature delta. The selected x86-64 asset hashes to:

992d502a248e14ab185448ddf6f6e7d25558cb84d4623c354c3af350c25fccb3

Test plan

  • regression test fails against the former continuous URL
  • pytest tests/studio/test_appimage_toolchain_contract.py -q (3 passed)
  • Ruff check and format check for the new test
  • bash -n studio/src-tauri/linux/prepare-complete-appimage-tools.sh
  • cold network download matches the pinned SHA-256
  • Desktop app clean machine / Build PR AppImage
  • downstream AppImage portability and model-download lanes

@wasimysaid

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 2, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-03T15:37:36.367481Z 4f45c20 New commits
ℹ️ 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. Can't wait for the next one!

Reviewed commit: 4d7190a900

ℹ️ 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

Copy link
Copy Markdown
Member

Confirmed main still points at the rolling continuous tag in studio/src-tauri/linux/prepare-complete-appimage-tools.sh, so the digest keeps going stale on each upstream rebuild, and moving to the dated release plus the contract test addresses that. Will get this reviewed.

@oobabooga

Copy link
Copy Markdown
Member

I confirmed the premise before merging. The old URL pointed at continuous, a rolling tag upstream rebuilds in place, so the URL stays the same while the bytes change. That is what happened on 2026-09-01: the asset was re-uploaded, the pinned digest no longer matched, and the v0.1.805-beta build failed. Dated releases are published once and never rebuilt, and 1-alpha-20250213-1 bears that out. Its four assets have not changed since 2025-02-13, and a cold download still hashes to the pinned 992d502a.... It is also what GitHub's own releases/latest resolves to, since continuous is flagged as a prerelease.

Worth being explicit that this moves the toolchain backwards rather than only making it stable. The pinned asset is from 2025-02-13 against the 2026-09-01 build main uses today, and the bundled appimagetool goes from the 2025-12-04 build to the 2024-12-29 one. I checked what that costs. The plugin source delta is a LICENSE file, four CI action bumps, and a CMake probe for -static-libgcc support, so there is no Linux runtime change. Packing the same AppDir with each plugin produced byte-identical AppImages, so the shipped desktop app is unaffected. The tradeoff is that we now sit on that older toolchain until someone moves it deliberately, which is the point.

The two unchecked boxes in the test plan are the lanes only CI can run. Both are green: the AppImage build, the five portability lanes, and the model download E2E.

@oobabooga
oobabooga merged commit b319ba3 into unslothai:main Sep 3, 2026
40 of 41 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants