From 4135e6ee3ba349428257c1a8da57bc8dad322dff Mon Sep 17 00:00:00 2001 From: devops-engineer Date: Mon, 1 Jun 2026 21:38:16 +0000 Subject: [PATCH] fix(itest): broadcast org-root test seeds workspace_status='online' not invalid 'running' The workspace_status enum (migrations 043/046) has no 'running' value; valid alive state is 'online'. Seed INSERTs used 'running' -> pq rejects it at setup, failing TestIntegration_BroadcastOrgRoot_NonRootSenderResolvesToRoot. Masked until now because Handlers Postgres Integration kept failing at the runner node/checkout step (ded docker-host:host). Status is irrelevant to the org-root CTE (it walks parent_id); 'online' is the correct alive value. --- .../workspace_broadcast_org_root_integration_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/workspace-server/internal/handlers/workspace_broadcast_org_root_integration_test.go b/workspace-server/internal/handlers/workspace_broadcast_org_root_integration_test.go index ad52c385e..00ac04677 100644 --- a/workspace-server/internal/handlers/workspace_broadcast_org_root_integration_test.go +++ b/workspace-server/internal/handlers/workspace_broadcast_org_root_integration_test.go @@ -102,21 +102,21 @@ func TestIntegration_BroadcastOrgRoot_NonRootSenderResolvesToRoot(t *testing.T) // root — parent_id NULL. if _, err := conn.ExecContext(ctx, ` INSERT INTO workspaces (id, name, tier, runtime, status, parent_id) - VALUES ($1, $2, 2, 'claude-code', 'running', NULL) + VALUES ($1, $2, 2, 'claude-code', 'online', NULL) `, rootID, prefix+"-root"); err != nil { t.Fatalf("seed root: %v", err) } // mid — child of root. if _, err := conn.ExecContext(ctx, ` INSERT INTO workspaces (id, name, tier, runtime, status, parent_id) - VALUES ($1, $2, 2, 'claude-code', 'running', $3) + VALUES ($1, $2, 2, 'claude-code', 'online', $3) `, midID, prefix+"-mid", rootID); err != nil { t.Fatalf("seed mid: %v", err) } // leaf — child of mid (a non-root, non-direct-child sender). if _, err := conn.ExecContext(ctx, ` INSERT INTO workspaces (id, name, tier, runtime, status, parent_id) - VALUES ($1, $2, 2, 'claude-code', 'running', $3) + VALUES ($1, $2, 2, 'claude-code', 'online', $3) `, leafID, prefix+"-leaf", midID); err != nil { t.Fatalf("seed leaf: %v", err) } -- 2.52.0