Repository navigation
Add ci-flatpak: Flatpak's sandbox and Flathub's VSCodium at pinned commits - #8
Merged
Merged
Conversation
added 6 commits
November 16, 2026 02:53
…thub refuses the ostree client)
… fix list columns
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.
Adds
ci-flatpak, the image for comline-vscode's Flatpak sandbox e2e (comline-vscode#33), so that job stops installing Flatpak with apt and caching ~1 GB of Flathub downloads on a bare VM.What is in it
DEBIAN_SNAPSHOT, one more target inimages/Dockerfile, same build / smoke / size / reproducibility checks, same publish + attest path.dbus-run-session), procps (pgrep, which the e2e runs on the "host"), ostree (only to prune), plus the base's git/ca-certificates/zstd. No compiler, no Node.com.vscodium.codiumand its runtimeorg.freedesktop.Sdk//26.08as a system installation, at exact Flathub commits (VSCODIUM_COMMIT,RUNTIME_COMMITARGs). The commit is in the image labelorg.comlineproject.ci-flatpak.vscodium-commit, and in/etc/ci-flatpak/vscodium-commit(andruntime-commit) so a job can log it. Flathub's remote file is fetched with a pinned SHA-256 like the other downloads.exclude), since Flathub's VSCodium is x86_64 here.Pinning by commit
ostree pull REF@COMMITis refused: Flathub's CDN answers HTTP 403 to theostreeclient's user agent (libostree/..., any version), while flatpak's is let through. Soimages/flatpak-install.shinstalls the ref, runsflatpak update --commit=<pinned>, and prunes. The runtime downgrade path was exercised in this PR's first green run (pinned to the previous Sdk commit, which the build moved to, then back to the current one); the app and runtime pins are currently Flathub's latest. If Flathub ever drops a commit from a ref's history the build fails loudly and the pin is bumped.Root, not a dedicated user
The default user stays root, as for every job container: the runner mounts the workspace and
HOMEinto it, and flatpak needs no helper process as root.XDG_RUNTIME_DIR=/run/user/0is created in the image.--privilegedis required (documented in the README and Dockerfile): bubblewrap needs namespaces and a fresh/proc, which Docker's default seccomp and masked paths refuse.Checks added
--filesystem=hostand--talk-name=org.freedesktop.Flatpak.images/flatpak-sandbox-check.sh, indocker run --privileged:dbus-run-session -- flatpak run --command=/app/share/codium/com.vscodium.codium --env=ELECTRON_RUN_AS_NODE=1 com.vscodium.codium -e "console.log(process.versions.electron)"prints the Electron version (43.7.7), and the sandbox starts a program on the "host" throughflatpak-spawn --host. Run on the PR build, on the pushed image, and (after merge) as a realcontainer:job (flatpak-container).Size
941 MB compressed, 2571 MB uncompressed (most of it the 1.8 GB Sdk runtime).
Not done / differences from the brief
flatpak-containerjob (published image as a realcontainer:job) can only run after the first publish on main.