fix(orchestrator): Dockerfile prisma generate + vitest reflect-metadata setup #703

Merged
jason.woltje merged 1 commits from fix/ms23-orchestrator-prisma-generate into main 2026-03-07 04:45:18 +00:00
Owner

Two CI fixes unblocking MS23 P0 tasks:

Fix 1 — Docker build failure (CI #948)
The orchestrator Dockerfile never ran , so the Docker image build failed with TS2305/TS2339 errors (PrismaClient not found, model properties missing). Added:

  • COPY apps/api/prisma to both deps and builder stages
  • RUN pnpm prisma:generate before turbo build in builder stage
  • Added script to orchestrator package.json

Fix 2 — Test failure (CI #949)
DTO unit tests added by P0-003 use decorators that require . Added to vitest.config.ts.

Unblocks: MS23-P0-002 (re-deploy), MS23-P0-003 (SSE stream PR)

Two CI fixes unblocking MS23 P0 tasks: **Fix 1 — Docker build failure (CI #948)** The orchestrator Dockerfile never ran , so the Docker image build failed with TS2305/TS2339 errors (PrismaClient not found, model properties missing). Added: - COPY apps/api/prisma to both deps and builder stages - RUN pnpm prisma:generate before turbo build in builder stage - Added script to orchestrator package.json **Fix 2 — Test failure (CI #949)** DTO unit tests added by P0-003 use decorators that require . Added to vitest.config.ts. Unblocks: MS23-P0-002 (re-deploy), MS23-P0-003 (SSE stream PR)
jason.woltje added 1 commit 2026-03-07 04:45:11 +00:00
Two CI fixes:
1. Orchestrator Dockerfile now copies apps/api/prisma schema and runs
   prisma generate before build. Fixes TS2305/TS2339 errors (PrismaClient
   and model properties not found) in docker-build-orchestrator step.
2. Add reflect-metadata to vitest setupFiles. Fixes class-transformer
   decorator error (Reflect.getMetadata is not a function) in DTO unit tests.
jason.woltje merged commit 98e892f23c into main 2026-03-07 04:45:18 +00:00
Sign in to join this conversation.