Repository navigation
Fix the armv7 worker build and wait for running jobs on shutdown - #51
Merged
Merged
Conversation
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.
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.
Requested by Yannis · project thread
Why
CI on main fails in the
imagejob: publishing the worker forlinux/arm/v7stops withghcr.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
--platform=$BUILDPLATFORM, the same as reckon. uv only runs in the build stage, which already runs on the build machine.OnTerminatewaits 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 testandgo test -race -count=3 ./jobs/pass locally.Generated by Claude Code