fix: remaining platform/ path references in scripts, tests, compose

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Hongming Wang 2026-04-18 00:32:03 -07:00
parent 5344fccf64
commit ca7e9972ff
3 changed files with 5 additions and 5 deletions

View File

@ -103,12 +103,12 @@ services:
platform:
build:
# Build context MUST be repo root, not ./platform — the Dockerfile
# COPYs `platform/migrations`, `platform/go.mod`,
# COPYs `workspace-server/migrations`, `workspace-server/go.mod`,
# `workspace-configs-templates/` etc. via repo-relative paths so it
# can bake in templates + migrations alongside the platform binary.
# When context was ./platform earlier, docker silently cached an
# earlier image (the COPY platform/migrations resolved to nothing
# under ./platform/, so layers stopped invalidating) — manifested
# earlier image (the COPY workspace-server/migrations resolved to nothing
# under ./workspace-server/, so layers stopped invalidating) — manifested
# as migration 023 not landing after PR #417 merged. CI workflow
# already uses context=. , this aligns local with CI.
context: .

View File

@ -27,7 +27,7 @@ KEA=$(docker compose -f "$ROOT_DIR/docker-compose.infra.yml" exec -T redis redis
echo " notify-keyspace-events = $KEA"
echo "==> Running migrations..."
MIGRATIONS_DIR="$ROOT_DIR/platform/migrations"
MIGRATIONS_DIR="$ROOT_DIR/workspace-server/migrations"
if [ -d "$MIGRATIONS_DIR" ]; then
for f in "$MIGRATIONS_DIR"/*.sql; do
echo " Applying $(basename "$f")..."

View File

@ -6,7 +6,7 @@ This repo uses the standard monorepo testing convention: **unit tests live with
| Scope | Location |
|---|---|
| Go unit + integration (platform, CLI, handlers) | `platform/**/*_test.go` — run with `cd platform && go test -race ./...` |
| Go unit + integration (platform, CLI, handlers) | `workspace-server/**/*_test.go` — run with `cd workspace-server && go test -race ./...` |
| TypeScript unit (canvas components, hooks, store) | `canvas/src/**/__tests__/` — run with `cd canvas && npm test -- --run` |
| TypeScript unit (MCP server handlers) | `mcp-server/src/__tests__/` — run with `cd mcp-server && npx jest` |
| Python unit (workspace runtime, adapters) | `workspace-template/tests/` — run with `cd workspace-template && python3 -m pytest` |