Skip to content

🤖 fix: copy dependency patches into Docker builder stage - #3812

Merged
ThomasK33 merged 1 commit into
mainfrom
fix/dockerfile-copy-patches
Aug 6, 2026
Merged

🤖 fix: copy dependency patches into Docker builder stage#3812
ThomasK33 merged 1 commit into
mainfrom
fix/dockerfile-copy-patches

Conversation

@ThomasK33

Copy link
Copy Markdown
Member

Summary

Fixes the Smoke / Docker merge-group failure that currently blocks every merge-queue entry: the Docker builder stage never copies patches/, so bun install --frozen-lockfile fails on the patchedDependencies entry added in #3798.

Background

#3798 added package.jsonpatchedDependenciespatches/@ai-sdk%2Fxai@4.0.28.patch. smoke-docker only runs on merge_group events (not per-PR), so the missing COPY was never exercised before landing. Since then, merge-group runs fail deterministically:

error: could not find patch file patches/@ai-sdk%2Fxai@4.0.28.patch
failed to solve: process "/bin/sh -c bun install --frozen-lockfile && touch node_modules/.installed" did not complete successfully: exit code: 1

Observed on two consecutive merge-group runs for #3797 (31077517436, 31080586729), each with Smoke / Docker as the only failing job.

Implementation

One COPY patches/ patches/ before bun install in the builder stage, alongside the other install inputs (package.json, bun.lock, bunfig.toml, scripts/postinstall.sh).

Validation

  • Reproduced the failure locally with docker build --target builder on unpatched origin/main — fails with the exact CI error.
  • Same build with this fix completes the builder stage successfully.

Generated with mux • Model: anthropic:claude-fable-5 • Thinking: xhigh • Cost: $69.35

package.json patchedDependencies references patches/@ai-sdk%2Fxai@4.0.28.patch
(added in #3798), but the Dockerfile never copied patches/, so
'bun install --frozen-lockfile' fails inside the image. smoke-docker only
runs on merge_group, so this slipped past PR CI and now fails every
merge-queue entry.
@ThomasK33

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: f54332886a

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@ThomasK33
ThomasK33 added this pull request to the merge queue Aug 6, 2026
Merged via the queue into main with commit afb2d94 Aug 6, 2026
19 of 20 checks passed
@ThomasK33
ThomasK33 deleted the fix/dockerfile-copy-patches branch August 6, 2026 07:45
@mux-bot mux-bot Bot mentioned this pull request Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant