VA-53: idempotent buildx builder setup in build-package.yml #59
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/VA-53-buildx-idempotent"
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?
Summary
VA-53:
build-package.ymlfailed on recent merges (run #207 @ef48f994, 2s; run #203 @0cd08d74, 1m33s; no logs were captured).Root cause (the recurring 2s failure)
The "Set up buildx builder" step ran
docker buildx create --name agent-builder --driver docker-container --useunconditionally. On the persistent Forgejo runner the named builder survives between jobs, so the next run'screatefails fast with "existing instance for agent-builder" - a recurring ~2s failure on every run after the first on a given runner (matches #207).Fix
Reuse the builder if it exists, otherwise create it, then
inspect --bootstrapto (re)start its BuildKit container in case a prior run's container was pruned. (A docker-container-driver builder is required because the build uses--output type=local, which the defaultdockerdriver can't do.)The build itself is healthy
docker build --file oci-build/release.Dockerfile .succeeds on current main - the binary compiles (release, 2m30s) and exports. Run #203's longer 1m33s failure looks like a transient runner network/resource miss (the build reproduces green, and run #194 with the same dependency set passed), so it is not a code issue.Validation
YAML parses and the shell step passes
bash -n. The fix can only fully prove out on the next push tomain(build-package doesn't run in the PR check), where it should no longer collide on the leftover builder.Refs VA-53.