diff --git a/docker-compose.yml b/docker-compose.yml index 3a67ee16..a6d3ea2e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: . diff --git a/infra/scripts/setup.sh b/infra/scripts/setup.sh index 41ed0288..6cf83b81 100755 --- a/infra/scripts/setup.sh +++ b/infra/scripts/setup.sh @@ -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")..." diff --git a/tests/README.md b/tests/README.md index 4c2d4e73..9ce9e050 100644 --- a/tests/README.md +++ b/tests/README.md @@ -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` |