Repository navigation
fix(.github/workflows): build dogfood images from the checkout - #31777
Conversation
|
@codex review |
|
Chat: Review posted | View chat Review history
deep-review v0.13.0 | Round 1 | Last posted: Round 1, 2 findings (2 P4), COMMENT. Review Finding inventoryFinding inventory: PR #31777Findings
Contested and acknowledgedNone. Round logRound 1Netero first pass: 1 P4 (CRF-1). Law not run (effective +8). Round type: round 1, full panel, focused (one workflow file). Panel: Pariston, Mafuuu (core), Gon, Leorio (floor), Mafu-san (agent-authored), Hisoka, Kite, wildcard Knov (random from distilled set). No domain specialist triggers (YAML only). About deep-reviewCRF = Coder Review Finding (P0-P4, Nit, Note)
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
This comment has been minimized.
This comment has been minimized.
dfc357b to
0fac6dc
Compare
This comment has been minimized.
This comment has been minimized.
Depot's cached clone of coder/coder still has the `test` branch, which was deleted on 2026-06-09. Fetching a commit that is not in the clone fetches every branch, and git cannot create the `test/*` branches next to `origin/test`, so the fetch fails. Every main push build since at least 2026-09-15 fell back to buildx on the runner without Depot's layer cache. PR builds fetch only the merge ref and were not affected. Passing the checked-out tree as the context removes the fetch. .dockerignore already limits the upload to what Dockerfile.base uses.
The comment narrated the incident and left out the condition that matters: Depot fetches every branch only for a commit SHA missing from its clone, which is why PR builds, which fetch the merge ref, never failed. Say that in one sentence.
… SHA The comment read as if every build by SHA fails. Depot fetches every branch only when the commit is missing from its clone; builds whose commit is already there succeed.
0fac6dc to
76be0c0
Compare
Main builds of the dogfood image fail whenever the commit is missing from Depot's cached clone of coder/coder. The base and vscode-coder builds use the git context (
{{defaultContext}}), which Depot fetches into that clone. The clone still hasrefs/remotes/origin/test, although thetestbranch was deleted on 2026-06-09. When the commit is not in the clone, Depot fetches every branch, git cannot create thetest/*branches next toorigin/test, and the fetch exits 1. PR builds fetch onlyrefs/pull/N/mergeand are not affected. Re-runs pass because the failed fetch already stored the commit.Until #31851 removed the buildx fallback, these builds fell back to an uncached buildx build on the runner: 35 of the 42 retained main push builds (2026-08-19 to 2026-11-05) did. Now they fail, as the main build for #31851 did.
This passes the checked-out tree as the context, so Depot no longer fetches from git.
.dockerignorealready limits the base build's upload toDockerfile.baseandfiles/.Decision log
xthat is deleted andx/yis later pushed.falling back to buildxand'refs/remotes/origin/test' exists, and so does the failed main build for ci(.github/workflows): stop falling back to buildx in the dogfood build #31851. The other 7 main push builds found the commit already in the clone. Older logs have expired.RUNlayer, but rebuilt from theCOPYoffiles/onward. The first main build after merge should do the same once.if:, so this PR's CI does not exercise thecontext: dogfood/vscode-coderline. A localdocker build --no-cache dogfood/vscode-coderpassed; its Dockerfile copies nothing from the context.docker buildofDockerfile.basewith.as the context, through the package install step, passed.make pre-commit-lightpasses, and zizmor 1.11.0 with the Makefile's flags reports no findings.build_imagepassed on Depot. The main push path, where the fetch fails, runs only after merge.if:, a different line from thecontext:change here.