Skip to content

Fix the armv7 worker build and wait for running jobs on shutdown - #51

Merged
kalfasyan merged 2 commits into
mainfrom
claude/project-thread-n6v9kl
Nov 18, 2026
Merged

kalfasyan merged 2 commits into
mainfrom
claude/project-thread-n6v9kl

Conversation

@kalfasyan

Copy link
Copy Markdown
Collaborator

Requested by Yannis · project thread

Why

CI on main fails in the image job: publishing the worker for linux/arm/v7 stops with ghcr.io/astral-sh/uv:0.11.32@sha256:df4c…: no match for platform in manifest. The uv image has amd64 and arm64 builds only.

What

  • workers/Dockerfile: take uv in its own stage with --platform=$BUILDPLATFORM, the same as reckon. uv only runs in the build stage, which already runs on the build machine.
  • backend/jobs: the catch-up run started on serve, and cron runs, are now tracked per job, and OnTerminate waits for them before the app closes. Runs that would start after that are skipped. Without this, a run can record its result after the app is gone; this crashed shoppa's tests now and then. New test: TestShutdownWaitsForARunningJob.

PR CI builds amd64 only, so the armv7 fix shows on main after merge. reckon's main build uses this pattern and passes for all three platforms.

Checks

make check, make test and go test -race -count=3 ./jobs/ pass locally.


Generated by Claude Code

The uv image is pinned by digest, and that index has no armv7 build, so the
armv7 worker build on main fails with "no match for platform in manifest".
uv only runs on the build machine, so take it for the build platform, as
reckon already does.
A catch-up run started when the server starts runs in the background and
records its result when it ends. When the app stopped first, as tests do as
soon as they finish, that write hit a closed app and could crash the test run
(seen in shoppa). Each job now tracks its runs, and the app waits for them on
terminate; runs that would start after that are skipped.
@kalfasyan kalfasyan self-assigned this Nov 18, 2026
@kalfasyan
kalfasyan merged commit fcb7c58 into main Nov 18, 2026
13 checks passed
@kalfasyan
kalfasyan deleted the claude/project-thread-n6v9kl branch November 18, 2026 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants