Repository navigation
ci(.github/workflows): stop falling back to buildx in the dogfood build - #31851
Merged
Merged
Conversation
The fallback was added in #11538, when Depot builds failed because the Depot trial had ended and the job ran on GitHub's ubuntu-latest. The job has run on Depot's own runners since #16223, so the fallback only covers a Depot build failure while Depot's runners still work. In the retained logs it only ever hid one problem: 35 main builds fell back because of a stale branch in Depot's git clone, and their only sign of it was a warning annotation. A fallback build has no layer cache, so it refetches every package and takes minutes instead of seconds. Three of those builds failed on Ubuntu mirror problems that a cached build would not have hit. A Depot failure now fails the build. The buildx setup step existed only for the fallback.
matifali
approved these changes
Nov 6, 2026
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
The dogfood image build falls back to
docker buildx buildon the runner whenever the Depot build fails (buildx-fallback: true). This removes the fallback from both Depot builds, so a Depot failure failsbuild_image. It also removes the "Set up Docker Buildx" step, which only the fallback used.Why remove it:
ubuntu-latestthen. Since feat(flake.nix): switch dogfood dev image to buildNixShellImage from dockerTools #16223 (2025-01) it runs on Depot's own runners (depot-ubuntu-22.04-8), so the fallback only helps when Depot's build service fails while its runners keep working.With #31710, a failed build on main posts to Slack. A re-run after Depot recovers publishes the image.
Decision log
docker-base.yamlandrelease.yamlalready usedepot/build-push-actionwithout a fallback.google-cloud-sdkrename and a HashiCorp key change, failing main from 2026-09-04 until fix(dogfood/coder): refresh apt keyrings and rename google-cloud-sdk #29279 on 2026-09-14). With Depot's cache, such breakage shows up the next timeDockerfile.baseorfiles/changes.depot/build-push-actionrunsdocker buildxonly in its fallback path, and no other step in the workflow orscripts/dogfood/test_image.shuses buildx.build_imagejob logs and the GitHub jobs API. Older logs have expired.make pre-commit-light(with actionlint) passes, and zizmor 1.11.0 with the Makefile's flags reports no findings.build_imagepassed on Depot without the buildx setup step, and the image tooling tests passed. The main path, where Depot failures used to fall back, runs only after merge.