Skip to content

fix(docker): copy the design schema vectors into the frontend build stage - #3120

Merged
Quick104 merged 1 commit into
mainfrom
silo/docker-build-design-fixtures
Oct 27, 2026
Merged

Quick104 merged 1 commit into
mainfrom
silo/docker-build-design-fixtures

Conversation

@Quick104

@Quick104 Quick104 commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Closes #3119
Related issue: N/A
Validation tasks: none

docker build . fails on main, so nobody can build the Silo image from a checkout. Since #2699, two web player tests import docs/design/schemas/buffering-quality/v1/vectors.json. The frontend stage's pnpm run build type-checks tests, but the stage never copies that file, and .dockerignore drops all of docs/ from the build context. The build stops with TS2307. Dockerfile.dev has the same frontend stage and fails the same way. CI isn't affected because it injects a prebuilt frontend_dist.

This change adds docs/design/schemas/ back to the build context and copies it into the frontend stage of both Dockerfiles, next to the existing copy of the v2 contract fixtures.

Approach

.dockerignore keeps excluding docs/ and re-includes docs/design/schemas/. Both frontend stages copy that directory into /app/docs/design/schemas/, where the tests' relative import resolves.

Every relative import in web/src that leaves web/ lands in one of two places: contracts/api/v2/fixtures/, which is already copied, or the buffering-quality vectors. The change copies all of docs/design/schemas/ rather than only buffering-quality/. The directory is about 556 KB of shared cross-client schemas and vectors, so the next web test that imports a playback-v3 or client-diagnostics fixture won't break the image again.

Validation

  • Base (origin/main at c27acf2), docker build --target frontend . on a Linux build host: fails with TS2307 in both player tests.
  • This branch, docker build --target frontend .: passes.
  • This branch, docker build -f Dockerfile.dev --target frontend .: passes.
  • This branch, full docker build .: passes.
  • make verify-local-paths: passes.

Evidence

Evidence: https://evidence.siloserver.org/r/silo-server/issue-3119/

No user-visible change. The page has the build steps, build identity, and the failing and passing build log excerpts.

Risks

None identified. The runtime image is unchanged. Only the build context and the frontend build stage gain the schema files.

Checklist

  • I read and can explain the complete diff.
  • This pull request addresses one concern.
  • Each test this pull request adds meets "Decide what to test" in CONTRIBUTING.md.
  • The Evidence section shows every change a user can see, or says there is none.

AI Disclosure

  • Harness: Claude Code in T3 Code
  • Tool(s): Claude Code
  • Model(s): claude-opus-5-5
  • Involvement: Fully AI-generated at the maintainer's direction; human verification pending
  • Adversarial review: n/a

🤖 Generated with Claude Code

Note

Fix Docker frontend build by copying docs/design/schemas/ into the build stage

The frontend build (pnpm run build) needs the shared design schema files, which are excluded from the Docker build context by the docs/ ignore rule.

  • Adds an exception pattern in .dockerignore so docs/design/schemas/ stays in the build context.
  • Adds a COPY of docs/design/schemas/ to /app/docs/design/schemas/ in the frontend build stages of both Dockerfile and Dockerfile.dev, before the build runs.

Macroscope summarized 4bc33ef.

…tage

Two web player tests import docs/design/schemas/buffering-quality/v1/vectors.json,
and the frontend build type-checks tests. The image build excluded docs/ from the
context and never copied it, so `docker build .` failed with TS2307.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@silo-triage silo-triage Bot added the size/S 0–49 added + deleted lines (all files); change volume, not priority. label Oct 27, 2026
@coderabbitai

coderabbitai Bot commented Oct 27, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

  • Ask an admin to enable usage-based reviews

Open in CodeRabbit

Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing.

Next included review available in 8 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e18bb517-451c-4b6a-b417-1391e2c0a892
Commits

Reviewing files that changed from the base of the PR and between bca55f7 and 4bc33ef.

Files selected for processing: 3
  • .dockerignore
  • Dockerfile
  • Dockerfile.dev
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 27, 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-10-27T00:50:01.420073Z 4bc33ef PR opened
🔒 Security Review ✅ Completed 2026-10-27T00:51:28.195993Z 4bc33ef PR opened
ℹ️ 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.

@silo-kody

silo-kody Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

Silo Kody — review complete

Review finished. Check the inline comments for findings and verify each suggestion against the code and tests.

Reviewing changes in Silo
  • Include the related issue, expected behavior, and validation steps in the PR description.
  • For API changes, describe the effect on Apple and Android clients and Jellyfin compatibility.
  • For plugin changes, identify the affected SDK contract, plugin, and catalog entry.
  • Follow this repository's AGENTS.md and CONTRIBUTING.md.
  • Request another review with @kody start-review in a PR comment.
  • React with 👍 or 👎 to give feedback on individual suggestions.
Review settings
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ❌
⚠️ 2 Kody Rule(s) were not evaluated

These rules declare that they need repository context beyond this diff, and the review could not retrieve it, so they were not judged on this pull request:

  • Preserve optional store capabilities through production wrappers
  • Detach mandatory cleanup from request cancellation and bound its lifetime

@silo-triage silo-triage Bot added bug Something isn't working priority: P1 Core-path bug; painful workaround — next after P0 labels Oct 27, 2026
@Quick104
Quick104 merged commit 4f13b5c into main Oct 27, 2026
26 checks passed
@Quick104
Quick104 deleted the silo/docker-build-design-fixtures branch October 27, 2026 01:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working priority: P1 Core-path bug; painful workaround — next after P0 size/S 0–49 added + deleted lines (all files); change volume, not priority.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] docker build fails on main: web tests import a fixture the frontend stage doesn't copy

1 participant