Repository navigation
Desktop: ship a complete Linux AppImage - #8695
Conversation
|
@codex review |
💡 Codex Reviewunsloth/.github/workflows/release-desktop.yml Lines 639 to 640 in 373377b This check makes every desktop release build fail before packaging: the workflow contains only one actual unsloth/.github/workflows/desktop-app-clean-machine-ci.yml Lines 588 to 589 in 373377b In the Ubuntu and Debian container rows, this package list does not install unsloth/studio/src-tauri/src/process.rs Line 21 in 373377b When the AppImage is launched from a shell whose ℹ️ 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". |
|
Separately from the three findings in the current Codex review, I found two additional merge blockers and one compatibility defect at the current PR head, 373377b. I built the AppImage from that commit in Ubuntu 22.04 using the versions and pinned AppImage tools in Compatibility defect: the artifact mixes its bundled Ubuntu 22.04 runtime with host GIO modules
However, extracting it shows that it bundles Ubuntu 22.04's ./Unsloth_2026.4.8_amd64.AppImage --appimage-extract
find squashfs-root/usr/lib -maxdepth 1 \
\( -name 'libnghttp2.so*' -o -name 'libcurl*.so*' \) -printUbuntu 22.04's WebKit and libsoup both resolve ldd /usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.1.so.0 | grep nghttp2
ldd /usr/lib/x86_64-linux-gnu/libsoup-3.0.so.0 | grep nghttp2
nm -D /usr/lib/x86_64-linux-gnu/libnghttp2.so.14 \
| grep nghttp2_option_set_no_rfc9113 || trueThe first two commands resolve I ran the PR's packaged model-download WebDriver flow on Ubuntu 24.04, substituting this branch-built artifact for the published release. The UI rendered, sent At the same time, This demonstrates that the mixed runtime is still present: the host proxy and dconf GIO modules fail to load against the bundled libraries. It does not demonstrate that the primary download path is currently broken. The deterministic local backend does not require proxy resolution, and the download flow completed successfully despite those module failures. At minimum, remove Rejecting bundled I consider this a release-relevant defect because the PR claims one coherent bundled web runtime. I would not use this evidence alone to claim that model downloading is broken, because the tested download did succeed. Merge blocker 1: pull requests do not build or test the code under review as an AppImageThe PR adds two shipped-artifact tests:
Those are useful release-asset tests, but neither builds or downloads an artifact produced from the checked-out PR commit. if: github.event.pull_request.head.repo.fork != trueThis PR is from a fork, and the current check results confirm that both jobs are skipped: Even on a same-repository PR, these jobs test a published release instead of the checked-out commit. Therefore none of the artifact evidence above can be caught before release by the added CI. This does not require building an AppImage on every repository PR or rebuilding it in every matrix lane. Scope the work to PRs that change AppImage-relevant source, configuration, packaging, workflow, or tests. One unprivileged Ubuntu 22.04 job can build the unsigned AppImage once and upload it. The existing portability matrix and WebDriver job can each download and test that same artifact. For same-repository PRs, the four portability lanes and WebDriver test already run, so changing their artifact source does not materially increase the cost of those tests. The incremental cost is one unsigned AppImage build plus artifact upload and download. Fork PRs currently pay none of this cost because the jobs are skipped; enabling the unprivileged, path-scoped flow would add that cost only to relevant fork PRs such as this one. Release signing keys and release API access are not needed. Merge blocker 2: the portability smoke omits required host librariesAfter locally supplying the already-reported missing verifier tool, I ran the branch artifact in fresh Ubuntu 22.04 and Debian 12 containers with the exact Debian-family package list. Both exited 127 with: for image in ubuntu:22.04 debian:12; do
docker run --rm \
-v "$PWD/Unsloth_2026.4.8_amd64.AppImage:/Unsloth.AppImage:ro" \
"$image" bash -lc '
apt-get update -qq
DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends \
ca-certificates python3 xvfb xauth libgles2 libgl1 fontconfig libfribidi0 binutils
APPIMAGE_EXTRACT_AND_RUN=1 xvfb-run -a /Unsloth.AppImage
'
doneAfter installing that library, On Ubuntu 22.04, the same smoke reached the managed desktop backend after adding these packages to the workflow's current list: This follows the PR's own runtime boundary. The underdeclared package list is also present in the regular clean-machine AppImage lane. The WebDriver lane spells out the same reduced graphics list, but The two CI findings block independently because the PR artifact is not tested and the declared portability job cannot execute successfully as written. The mixed GIO runtime is a narrower compatibility defect and test gap whose observed user-visible impact was limited in this run. I would keep the merge conflict as a separate mechanical requirement, and treat immutable plugin URLs plus extra forbidden-library assertions as hardening rather than current failures. |
|
@codex review |
|
Codex Review: Didn't find any major issues. Bravo. 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". |
# Conflicts: # studio/src-tauri/tauri.conf.json
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 24dac3f5f8
ℹ️ 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".
|
@codex review |
|
Codex Review: Didn't find any major issues. Swish! 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". |
|
I rechecked the current PR head, a38da47. The previously reported AppImage issues are fixed. The PR now builds one unsigned AppImage from the checked-out pull request commit in I built the current head independently in Ubuntu 22.04 using the PR's pinned AppImage toolchain. The result was: The current verifier passed: Inspection of the finished AppImage confirmed that the host-owned libraries covered by the repaired boundary are absent, including The generated AppRun hook clears inherited additive GIO modules and selects the bundled module directory: unset GIO_EXTRA_MODULES
export GIO_MODULE_DIR="$APPDIR/usr/lib/x86_64-linux-gnu/gio/modules"The managed-child environment regression tests also pass. They confirm that AppDir library paths and the GUI-only GIO variables are removed from managed backend children while caller-provided host paths such as I ran the current artifact through the PR's complete portability smoke in fresh containers using the package lists now declared by the workflow. All four lanes passed verification, rendered the packaged frontend, completed desktop authentication, and reported no loader errors: Passed on: I also ran the current artifact through the real packaged model-download WebDriver flow on Ubuntu 24.04. It selected the GGUF, sent One PR-caused CI failure remains. assert workflow.count("python3 .github/scripts/resolve-desktop-release.py") == 3
assert workflow.count('if [ -z "$REL_TAG" ]; then') == 3The workflow now correctly has four of each because the new shipped-AppImage path adds a fourth release lookup. This is the sole failure in the current GitHub security regression job: Both expected counts should be updated from |
|
Pushed 16cb194 to fix the one remaining PR-caused CI failure.
I checked the rest of the red checks and none of them come from this PR. Core, Backend CI (Python 3.10 to 3.13 and Repo tests CPU) and The AppImage work itself looks good. Building the unsigned artifact from the checked-out commit in Three non blocking notes for later:
|
|
Pushed fd34080. It fixes a defect I found by running the artifact your own What I foundThe complete AppImage changes the environment every child process inherits. I dumped it by replacing That is the classic AppRun behaviour and it is correct for the app itself.
The fix
It returns immediately when VerificationThe tauri crate needs WebKit dev headers I do not have locally, so I extracted the new functions and the test module into a standalone crate with the same
CI has now confirmed it in the tree: Everything else I checked and found clean
One thing I did not fix
External links opened through |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 20ab5bad57
ℹ️ 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".
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! 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". |
|
Confirmed b4923a6 end to end, and your reuse of I pulled the artifact Previously that symlink pointed at Current state at b4923a6:
Nothing further from me. The remaining red checks on this PR are |
Summary
Closes #8463.
Why
The thin AppImage avoided the earlier Linux Mint mixed-runtime failure by requiring host GTK/WebKitGTK/AppIndicator. That made the artifact unable to start on Fedora and other machines without those libraries, which contradicts normal AppImage expectations. This restores one coherent bundled web runtime without coupling it to host graphics drivers or contaminating the managed Python backend.
Validation
POST /api/hub/download, rendered progress, sentPOST /api/hub/download/cancel, and reached the cancelled UI statecd studio/src-tauri && cargo test --no-fail-fast— 343 passedgit diff --checkcargo testreports one pre-existing unused-variable warning insrc/main.rs.