ci: build the Linux Flatpak bundle in a Docker sandbox on Namespace runners #47
No reviewers
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
key-store/key.store!47
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "claude/epic-hellman-ad90c4"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
build-linux.yml(jobBuild (Linux x86_64)) has failed on every run since 2026-05-25 (last green run 8910), whenbc668f53moved it fromkey-store-agenttonamespace-profile-linux-large.Root cause. The Namespace job container has no
CAP_SYS_ADMINand blocks unprivileged user namespaces;nsc runoffers no privileged mode. Soflatpak-builder'sbwrapdies on the first module (bwrap: Creating new namespace failed: Operation not permitted) even with the setuid bubblewrap thatprepare-flatpak-ci-sandbox.shsets up (the process is already root — the container lacks the privilege).--disable-sandboxdoes not exist in flatpak-builder, so that fallback was a no-op.Fix (per KSE-0173 §10/§15/§16, already proven green in the release Flatpak repo matrix, e.g. runs 17147/17114):
Scripts/build-flatpak-docker.sh— privilegeddebian:12-slimsandbox aroundScripts/build-flatpak.sh(archive checkout, ensure-nix,ci-nix develop .#flatpak), copies the bundle back toLinux/App/build/. Mirrorsbuild-flatpak-testing-repo-docker.sh.Scripts/build-flatpak-ci.sh— CI entry: direct Bazel path whenunshare -Urworks on the runner, Docker sandbox otherwise (KEYSTORE_FLATPAK_USE_DOCKER=auto|1|0).build-linux.yml/build-flatpak.yml→namespace-profile-linux-amd64-large(enable_docker), call the CI entry, path triggers for the new scripts.Linux/App/README.md, KSE-0173 §27.The release lane's
Build (Linux)(onkey-store-agent-host) andBuild (Flatpak Repo *)(Docker sandbox) are green and untouched.Verification: workflow_dispatch of
build-linux.ymlon this branch (run id in the PR comments).🤖 Generated with Claude Code
Verification:
workflow_dispatchofbuild-linux.ymlon this branch → run 17184 (UI index 17150, https://git.key.store/key-store/key.store/actions/runs/17150) is green onnamespace-profile-linux-amd64-large:Building Flatpak bundle in a Namespace Docker sandbox→ all modules built →Flatpak bundle written to /workspace/Linux/App/build/store.key.application.flatpak→Docker-backed Flatpak bundle copied to …/Linux/App/build/store.key.application.flatpak→Job succeeded(10:18–10:33 UTC).Note for the record: the first attempt of the PR-triggered run (17183) was cut off at 10:17 because Forgejo handed it to a daemon-mode runner (
nscloud-176cbcc386d5, launched 08:47 for the release lane) two minutes before that instance's 90-minutensc run --durationexpired; Forgejo re-queued the job. That is a pre-existing forgejo-nsc lifecycle issue (together with ~70% of Namespace launches being destroyed within seconds by the dispatcher's first stop-check), tracked separately.44e9ecb93e84d37aeacf