Repository navigation
fix(docker): copy the design schema vectors into the frontend build stage - #3120
Conversation
…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]>
|
Warning Review limit reachedEnable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
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. View limit details
Comment |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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 — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
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 importdocs/design/schemas/buffering-quality/v1/vectors.json. The frontend stage'spnpm run buildtype-checks tests, but the stage never copies that file, and.dockerignoredrops all ofdocs/from the build context. The build stops with TS2307.Dockerfile.devhas the same frontend stage and fails the same way. CI isn't affected because it injects a prebuiltfrontend_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
.dockerignorekeeps excludingdocs/and re-includesdocs/design/schemas/. Both frontend stages copy that directory into/app/docs/design/schemas/, where the tests' relative import resolves.Every relative import in
web/srcthat leavesweb/lands in one of two places:contracts/api/v2/fixtures/, which is already copied, or the buffering-quality vectors. The change copies all ofdocs/design/schemas/rather than onlybuffering-quality/. The directory is about 556 KB of shared cross-client schemas and vectors, so the next web test that imports aplayback-v3orclient-diagnosticsfixture won't break the image again.Validation
origin/mainat c27acf2),docker build --target frontend .on a Linux build host: fails with TS2307 in both player tests.docker build --target frontend .: passes.docker build -f Dockerfile.dev --target frontend .: passes.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
AI Disclosure
🤖 Generated with Claude Code
Note
Fix Docker frontend build by copying
docs/design/schemas/into the build stageThe frontend build (
pnpm run build) needs the shared design schema files, which are excluded from the Docker build context by thedocs/ignore rule.docs/design/schemas/stays in the build context.COPYofdocs/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.