Skip to content

fix(.github/workflows): build dogfood images from the checkout - #31777

Merged
mafredri merged 3 commits into
mainfrom
mafredri/dogfood-local-context
Nov 6, 2026
Merged

mafredri merged 3 commits into
mainfrom
mafredri/dogfood-local-context

Conversation

@mafredri

@mafredri mafredri commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

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 has refs/remotes/origin/test, although the test branch was deleted on 2026-06-09. When the commit is not in the clone, Depot fetches every branch, git cannot create the test/* branches next to origin/test, and the fetch exits 1. PR builds fetch only refs/pull/N/merge and 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. .dockerignore already limits the base build's upload to Dockerfile.base and files/.

Decision log
  • Not resetting Depot's cache: the error comes back whenever Depot's clone has a branch x that is deleted and x/y is later pushed.
  • Evidence: all 35 fallback logs contain falling back to buildx and '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.
  • One-time cache miss: this PR's Depot build transferred a 21 kB local context and reused the first RUN layer, but rebuilt from the COPY of files/ onward. The first main build after merge should do the same once.
  • vscode-coder step: CI runs it only after fix(.github/workflows): build the vscode-coder dogfood image #31717 fixes its if:, so this PR's CI does not exercise the context: dogfood/vscode-coder line. A local docker build --no-cache dogfood/vscode-coder passed; its Dockerfile copies nothing from the context.
  • Checked locally: a docker build of Dockerfile.base with . as the context, through the package install step, passed. make pre-commit-light passes, and zizmor 1.11.0 with the Makefile's flags reports no findings.
  • Checked by this PR's CI: build_image passed on Depot. The main push path, where the fetch fails, runs only after merge.
  • Overlap with fix(.github/workflows): build the vscode-coder dogfood image #31717: it changes the vscode-coder step's if:, a different line from the context: change here.

🤖 This PR was created with the help of Coder Agents.

mafredri commented Nov 5, 2026

Copy link
Copy Markdown
Member Author

@codex review
/coder-agents-review

@coder-agents-review

coder-agents-review Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Chat: Review posted | View chat
Requested: 2026-11-05 11:44 UTC by @mafredri
Spend: $3.38 / $100.00

Review history
  • R1 (2026-11-05): 8 reviewers, 2 P4, COMMENT. Review

deep-review v0.13.0 | Round 1 | fb36a3d..dfc357b

Last posted: Round 1, 2 findings (2 P4), COMMENT. Review

Finding inventory

Finding inventory: PR #31777

Findings

# Sev Status Location Summary Round Reviewer Posted
CRF-1 P4 Open dogfood.yaml:223 vscode-coder context change is never exercised; step gated on removed 22.04 matrix value R1 Netero Yes
CRF-2 P4 Open dogfood.yaml:145 New context comment omits the missing-commit trigger condition and is longer than needed R1 Leorio P4, Gon P2 Yes
CRF-3 Note Note (body) dogfood.yaml:148 Local context uploads the same files compute-base-sha.sh hashes R1 Mafuuu, Knov No
CRF-4 Note Dropped by orchestrator (asks for no change; reason is in the base step comment and commit message) dogfood.yaml:223 vscode-coder context line has no comment of its own R1 Gon No
CRF-5 Note Dropped by orchestrator (praise, no action) dogfood.yaml (commit dfc357b) Commit message is complete R1 Leorio No
CRF-6 Note Dropped by orchestrator (praise, no action) dogfood.yaml:148 Local context content equals git context content R1 Kite, Mafu-san No
CRF-7 OOS Out of scope (body) dogfood.yaml:140 buildx-fallback: true hides Depot failures behind a passing uncached build R1 Pariston, Mafuuu No
CRF-8 OOS Out of scope (body) .dockerignore:3 Header still names removed ubuntu-22.04 Dockerfile.base R1 Mafuuu, Gon, Leorio, Kite, Knov No

Contested and acknowledged

None.

Round log

Round 1

Netero 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).
Cross-check: Gon P2 (comment verbosity) and Leorio P4 (comment omits trigger condition) on the same comment gave opposite directions; merged into CRF-2 at P4 with one rewrite that is shorter and states the condition. Gon P2 downgrade: keep-argument was that a long comment costs every reader under the project's concise-comment rule; downgraded because no statement is wrong under Gon's reading and his rewrite differs by two lines. Praise notes dropped. 2 P4 posted, 1 Note (body), 2 OOS. Reviewed against fb36a3d..dfc357b.

About deep-review

CRF = Coder Review Finding (P0-P4, Nit, Note)

Reviewer Focus
Bisky tests
Chopper ops/errors
Churn-guard change verification
Ging language modernization
Gon naming
Hisoka edge cases
Killua perf
Kite change integrity
Knov contracts
Knuckle SQL
Komugi flake/determinism
Kurapika security
Law decomposition
Leorio docs
Luffy product
Mafu-san process
Mafuuu contracts
Melody dispatch/pairing
Meruem structural
Nami frontend
Netero mechanical checks
Pariston premise testing
Pen-botter product gaps
Razor verification
Robin duplication
Ryosuke Go arch
Takumi concurrency
Zoro shape

🤖 Managed by Coder Agents.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-05T11:46:13.398203Z dfc357b Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

This comment has been minimized.

coder-agents-review[bot]

This comment was marked as outdated.

@mafredri
mafredri force-pushed the mafredri/dogfood-local-context branch from dfc357b to 0fac6dc Compare November 5, 2026 15:25
@mafredri

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.
@mafredri
mafredri enabled auto-merge (squash) November 6, 2026 17:38
@mafredri
mafredri force-pushed the mafredri/dogfood-local-context branch from 0fac6dc to 76be0c0 Compare November 6, 2026 17:39
@mafredri
mafredri merged commit 3bcf67f into main Nov 6, 2026
34 checks passed
@mafredri
mafredri deleted the mafredri/dogfood-local-context branch November 6, 2026 17:56
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 6, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants