Skip to content

[AI] fix: clean the sync server Docker build context - #9542

Merged
MikesGlitch merged 1 commit into
actualbudget:masterfrom
lfrb:ai/docker-build-fix
Nov 25, 2026
Merged

MikesGlitch merged 1 commit into
actualbudget:masterfrom
lfrb:ai/docker-build-fix

Conversation

@lfrb

@lfrb lfrb commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Description

Running yarn build:browser and yarn build:server locally will pull the translations. Subsequent runs of sync-server Docker builds are then failing.

This patch fixes it by copying .gitignore into the dependency installation stage and excluding generated desktop-client locale files from the Docker build context.

codex automatically found and fixed the issue.

Related issue(s)

Testing

Docker builds are now successful even after yarn commands were used locally

Checklist

  • Release notes added (see link above)
  • No obvious regressions in affected areas
  • Self-review has been performed - I have read every line of this diff and can explain what each change does and why it is needed

@actual-github-bot actual-github-bot Bot changed the title [AI] fix: clean the sync server Docker build context [WIP] [AI] fix: clean the sync server Docker build context Nov 13, 2026
@github-actions

Copy link
Copy Markdown
Contributor

👋 Hello contributor!

We would love to review your PR! Before we can do that, please make sure:

  • ✅ All CI checks pass
  • ✅ The PR is moved from draft to open (if applicable)
  • ✅ The "[WIP]" prefix is removed from the PR title
  • ✅ The PR description follows the provided template, with all checklist boxes filled in
  • ✅ All CodeRabbit code review comments are resolved (if you disagree with anything - reply to the bot with your reasoning so we can read through it). The bot will eventually approve the PR.
  • ✅ Any AI usage is disclosed (see our AI Usage Policy)

A quick note on volume: please get one PR reviewed and merged before opening several more. A stack of simultaneous, similar PRs from one author is reviewed slowly, and low-effort, untested, or undisclosed-AI PRs may be closed without a detailed review.

We do this to reduce the TOIL the core contributor team has to go through for each PR and to allow for speedy reviews and merges.

For more information, please see our Contributing Guide.

@coderabbitai

coderabbitai Bot commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Docker ignore rules now exclude packages/desktop-client/locale. The sync-server dependency stage now copies .gitignore. A release note records the Docker image build fix.

Changes: Sync server Docker build

Layer / File(s) Summary
Docker build inputs and release note
.dockerignore, sync-server.Dockerfile, upcoming-release-notes/fix-sync-server-docker-build.md
The Docker ignore rules exclude packages/desktop-client/locale. The sync-server dependency stage copies .gitignore. A release note describes the Docker image build fix.

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Bug fix

Suggested labels: size small

Suggested reviewers: matissjanis

Merge Risk: Minimal · up to a6ebd

The change restores sync-server Docker builds after local translation pulls. It is small and low risk, and nothing blocks merging.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: cleaning the sync server Docker build context. The changeset excludes generated desktop-client locale files via .dockerignore and copies .gitignore in the sync-server …
Description check Passed The description states the problem: running yarn build:browser or yarn build:server locally pulls translations, which then breaks sync-server Docker builds. It explains the fix: copying .gitignore int…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the main change: cleaning the sync server Docker build context. The changeset excludes generated desktop-client locale files via .dockerignore and copies .gitignore in the sync-server Dockerfile dependency stage, so the title matches the primary change. The bracketed [AI] prefix is noise but does not make the title unrelated.

Full details: Description check

Explanation

The description states the problem: running yarn build:browser or yarn build:server locally pulls translations, which then breaks sync-server Docker builds. It explains the fix: copying .gitignore into the dependency installation stage and excluding generated desktop-client locale files from the build context. This matches the changeset files.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between e9afd77 and a6ebdcf.

Files selected for processing: 3

  • .dockerignore
  • sync-server.Dockerfile
  • upcoming-release-notes/fix-sync-server-docker-build.md

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@lfrb lfrb changed the title [WIP] [AI] fix: clean the sync server Docker build context [AI] fix: clean the sync server Docker build context Nov 14, 2026
@tabedzki

Copy link
Copy Markdown
Member

Do you have the failing build log? I tried unsuccessfully to reproduce the original issue that this solves.

@lfrb

lfrb commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

You should see the issue if you do:

yarn build:browser

in a clean checkout and then:

podman build -f sync-server.Dockerfile .

The build fails at RUN yarn build:server with:

   Updating translations...
   error: pathspec '.' did not match any file(s) known to git

@tabedzki

Copy link
Copy Markdown
Member

Using podman, my agent was able to reproduce this. Interesting that it found the error after using podman. The fix is just the .dockerignore. I don't think we need the modified Dockerfile. Can you confirm that just the .dockerignore solves the problem?

@lfrb

lfrb commented Nov 21, 2026

Copy link
Copy Markdown
Contributor Author

The .gitignore is needed because the docker build is using git add -A for Lage and we want to ignore generated data.

@lfrb

lfrb commented Nov 25, 2026

Copy link
Copy Markdown
Contributor Author

Can it be merged? I'm trying to open PR for other fixes, but I'm blocked by the limit.

Comment thread sync-server.Dockerfile Resolved
@MikesGlitch

Copy link
Copy Markdown
Member

I was unable to replicate the issue on master, but approving anyway as it's fine as a general improvement

@MikesGlitch
MikesGlitch added this pull request to the merge queue Nov 25, 2026
Merged via the queue into actualbudget:master with commit 4ff4aac Nov 25, 2026
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants