Skip to content

[fix] Build the dev web image from a clean checkout - #7029

Merged
mmabrouk merged 1 commit into
release/v0.119.1from
fix/dev-web-image-stale-scripts-path-1191
Sep 22, 2026
Merged

mmabrouk merged 1 commit into
release/v0.119.1from
fix/dev-web-image-stale-scripts-path-1191

Conversation

@mmabrouk

Copy link
Copy Markdown
Member

Context

A clean checkout of release/v0.119.1 cannot build the dev web image. docker build fails with failed to compute cache key ... "/oss/scripts": not found, because web/oss/docker/Dockerfile.dev and web/ee/docker/Dockerfile.dev still COPY oss/scripts ./oss/scripts, and the OSS and EE dev compose files still bind-mount web/oss/scripts. That directory does not exist anymore: commit 1df98eb83b moved copy-pdf-worker.mjs into web/packages/agenta-entities/scripts, and a later commit removed the script and the pdfjs worker plumbing entirely. Existing local checkouts kept building only because the deleted web/oss/scripts directory was still sitting there, untracked, on disk.

Changes

Removed the four stale references to oss/scripts:

  • web/oss/docker/Dockerfile.dev:98
  • web/ee/docker/Dockerfile.dev:101
  • hosting/docker-compose/oss/docker-compose.dev.yml:60
  • hosting/docker-compose/ee/docker-compose.dev.yml:67

The gh/production Dockerfiles never referenced oss/scripts and are unaffected. I grepped the whole tree for oss/scripts and copy-pdf-worker (Dockerfiles, compose files, web entrypoint, package.json scripts, GitHub workflows) and found no other stale reference under web/. The remaining oss/scripts hits are all hosting/railway/oss/scripts/, an unrelated Railway deploy path.

Tests / notes

Built both dev web images from a fresh plain-git worktree of this branch (no untracked leftovers to mask the bug):

  • docker build -f web/oss/docker/Dockerfile.dev web/ succeeded.
  • docker build -f web/ee/docker/Dockerfile.dev web/ succeeded.

Both compose files still parse as valid YAML after the edit. I could not run a full docker compose config against real env values because the dev .env.oss.dev / .env.ee.dev files are gitignored and not present in a fresh worktree; the plain YAML parse confirms the edit did not break the file structure.

Commit 1df98eb moved web/oss/scripts/copy-pdf-worker.mjs into
web/packages/agenta-entities/scripts, and a later commit removed the
script entirely, so web/oss/scripts no longer exists. The dev
Dockerfiles and compose files still COPY/mount that directory, so a
clean checkout fails to build the dev web image with
"failed to compute cache key ... /oss/scripts: not found". Existing
checkouts only kept building because the deleted directory was still
sitting there untracked.

Remove the four stale references. The gh/production Dockerfiles never
referenced oss/scripts and are unaffected.
@mmabrouk

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Review Change StackReview Change Stack

Understand this PR’s impact

Explore downstream dependencies and potential security impact with Blast Radius.

View blast radius →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Advanced

Run ID: f565c455-c7fb-4d6e-b5e1-b87f93dce07f

📥 Commits

Reviewing files that changed from the base of the PR and between b0e817c and f3502ff.

📒 Files selected for processing (4)
  • hosting/docker-compose/ee/docker-compose.dev.yml
  • hosting/docker-compose/oss/docker-compose.dev.yml
  • web/ee/docker/Dockerfile.dev
  • web/oss/docker/Dockerfile.dev
💤 Files with no reviewable changes (4)
  • hosting/docker-compose/oss/docker-compose.dev.yml
  • web/oss/docker/Dockerfile.dev
  • hosting/docker-compose/ee/docker-compose.dev.yml
  • web/ee/docker/Dockerfile.dev

Included review availability: Your plan provides up to 8 included reviews per hour; 2 remain after this review.


📝 Summary

Summary by CodeRabbit

  • Chores
    • Updated development container setup to stop copying and mounting the oss/scripts directory.
    • Other development image build steps and startup configuration remain unchanged.

Walkthrough

The development Dockerfiles no longer copy oss/scripts. The OSS and EE Docker Compose configurations no longer mount the scripts directory into the web service.

Changes

Development scripts removal

Layer / File(s) Summary
Remove OSS scripts from development setup
web/*/docker/Dockerfile.dev, hosting/docker-compose/*/docker-compose.dev.yml
The development Dockerfiles no longer copy oss/scripts. The Compose configurations no longer mount ../../../web/oss/scripts at /app/oss/scripts.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~5 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
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.
Description check ✅ Passed The description clearly explains that the pull request removes stale oss/scripts references to restore development image builds from clean checkouts. It also documents the affected files and validatio…
Title check ✅ Passed The title concisely and accurately summarizes the main change: fixing development web image builds from a clean checkout.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

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

Comment @coderabbitai help to get the list of available commands.

@coderabbitai

coderabbitai Bot commented Sep 21, 2026

Copy link
Copy Markdown
Contributor
⚠️ Action not completed

Already reviewed the last commit. Use @coderabbitai full review to rerun a review of the entire changeset.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@github-actions

github-actions Bot commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Railway Preview Environment

Status Destroyed (PR closed)

Updated at 2026-09-22T08:18:38.543Z

@mmabrouk
mmabrouk merged commit ba0608b into release/v0.119.1 Sep 22, 2026
68 checks passed
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