mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-29 06:50:43 +01:00
## Thinking Path > - Paperclip is the open source app people use to manage AI agents for work. > - The `docker-merge-group.yml` workflow builds and probes `linux/amd64` and `linux/arm64` production images in the merge queue so `docker.yml` can promote verified bytes on `master`. > - Every `linux/arm64` merge-group run on `ubuntu-24.04-arm` fails during `docker load --input "$ARCHIVE"` with `open /var/lib/docker/tmp/docker-import-.../blobs/json: no such file or directory`. > - That failure prevents `linux/arm64` merge-group image verification from ever succeeding and leaves red merge-queue workflow runs on every merge. > - This pull request enables Docker's `containerd-snapshotter` image store (and verifies activation after restart) before `Set up Docker Buildx` in the `build` job so `ubuntu-24.04-arm` loads OCI image index archives with provenance attestations cleanly. > - The benefit is green `linux/arm64` merge-group builds while preserving full SLSA provenance attestations and PID 1 orphan-reaping checks. ## Linked Issues or Issue Description **What happened?** Every `linux/arm64` run of `.github/workflows/docker-merge-group.yml` on `ubuntu-24.04-arm` fails in `Verify PID 1 reaps orphaned processes` during `docker load --input "$ARCHIVE"` with `open /var/lib/docker/tmp/docker-import-.../blobs/json: no such file or directory`. **Expected behavior** Both `linux/amd64` and `linux/arm64` merge-group builds should load the OCI archive, pass `scripts/assert-orphan-reaping.sh`, record the verified image, and upload the artifact. **Steps to reproduce** 1. Trigger `.github/workflows/docker-merge-group.yml` via the `master` merge queue (for example, run `46002863710`). 2. Observe `linux/amd64` (`ubuntu-26.04`) passes `docker load`, while `linux/arm64` (`ubuntu-24.04-arm`, classic Docker graphdriver) fails with missing `blobs/json`. ## What Changed - Added a step in `.github/workflows/docker-merge-group.yml` (`build` job, before `Set up Docker Buildx`) that enables Docker's `containerd-snapshotter` image store when not already enabled, restarts Docker, and asserts `containerd.snapshotter` is active in `docker info`. - Added a regression assertion in `scripts/merge-group-image.test.mjs` scoped to the `build` job verifying `containerd-snapshotter` precedes `Set up Docker Buildx`. ## Verification - Ran locally against the PR worktree: - `node --test scripts/merge-group-image.test.mjs scripts/macos-runner-runtime-workflow.test.mjs` — all passed. - `vitest run server/src/__tests__/docker-runner-workflows.test.ts server/src/__tests__/docker-build-stamp.test.ts` — 33/33 passed. - Full PR CI runs on this PR; live `ubuntu-24.04-arm` `docker load` behavior will be verified on the next `merge_group` run after merge. ## Risks - Low risk: scoped strictly to `docker-merge-group.yml` (which has read-only permissions and no registry credentials) and skipped as a no-op on runners that already enable `containerd-snapshotter`. - Easy to roll back by reverting this PR. ## Model Used - Gemini (Antigravity) ## Checklist - [x] I have included a thinking path that traces from project context to this change - [x] I have specified the model used (with version and capability details) - [x] I have checked ROADMAP.md and confirmed this PR does not duplicate planned core work - [x] I have searched GitHub for duplicate or related PRs and linked them above - [x] I have either (a) linked existing issues with `Fixes: #` / `Closes #` / `Refs #` OR (b) described the issue in-PR following the relevant issue template - [x] I have not referenced internal/instance-local Paperclip issues or links (only public GitHub `#NNN` / `github.com/paperclipai/paperclip` URLs)