From 637a668b61bdcf802030aab5af84639c6df674c1 Mon Sep 17 00:00:00 2001 From: Bilal Godil Date: Wed, 28 Jan 2026 15:45:06 -0800 Subject: [PATCH 01/13] fix analytics queries --- apps/backend/src/lib/clickhouse.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/backend/src/lib/clickhouse.tsx b/apps/backend/src/lib/clickhouse.tsx index f4e62daf54..b904fe74e6 100644 --- a/apps/backend/src/lib/clickhouse.tsx +++ b/apps/backend/src/lib/clickhouse.tsx @@ -53,7 +53,7 @@ export const getQueryTimingStats = async (client: ClickHouseClient, queryId: str SELECT ProfileEvents['CPUTimeMicroseconds'] / 1000 AS cpu_time_ms, ProfileEvents['RealTimeMicroseconds'] / 1000 AS wall_clock_time_ms - FROM system.query_log + FROM clusterAllReplicas('default', system.query_log) WHERE query_id = {query_id:String} AND type = 'QueryFinish' ORDER BY event_time DESC LIMIT 1 From 7079a40b6537da05c08d61c651fc55fe2df6adb6 Mon Sep 17 00:00:00 2001 From: Bilal Godil Date: Wed, 28 Jan 2026 15:55:01 -0800 Subject: [PATCH 02/13] retry get query timing --- apps/backend/src/lib/clickhouse.tsx | 62 ++++++++++++++++++----------- 1 file changed, 38 insertions(+), 24 deletions(-) diff --git a/apps/backend/src/lib/clickhouse.tsx b/apps/backend/src/lib/clickhouse.tsx index b904fe74e6..0dd1c2e8e2 100644 --- a/apps/backend/src/lib/clickhouse.tsx +++ b/apps/backend/src/lib/clickhouse.tsx @@ -48,30 +48,44 @@ export const getQueryTimingStats = async (client: ClickHouseClient, queryId: str password: clickhouseAdminPassword, }, }); - const profile = await client.query({ - query: ` - SELECT - ProfileEvents['CPUTimeMicroseconds'] / 1000 AS cpu_time_ms, - ProfileEvents['RealTimeMicroseconds'] / 1000 AS wall_clock_time_ms - FROM clusterAllReplicas('default', system.query_log) - WHERE query_id = {query_id:String} AND type = 'QueryFinish' - ORDER BY event_time DESC - LIMIT 1 - `, - query_params: { query_id: queryId }, - auth: { - username: clickhouseAdminUser, - password: clickhouseAdminPassword, - }, - format: "JSON", - }); + const queryProfile = async () => { + const profile = await client.query({ + query: ` + SELECT + ProfileEvents['CPUTimeMicroseconds'] / 1000 AS cpu_time_ms, + ProfileEvents['RealTimeMicroseconds'] / 1000 AS wall_clock_time_ms + FROM clusterAllReplicas('default', system.query_log) + WHERE query_id = {query_id:String} AND type = 'QueryFinish' + ORDER BY event_time DESC + LIMIT 1 + `, + query_params: { query_id: queryId }, + auth: { + username: clickhouseAdminUser, + password: clickhouseAdminPassword, + }, + format: "JSON", + }); + + return await profile.json<{ + cpu_time_ms: number, + wall_clock_time_ms: number, + }>(); + }; - const stats = await profile.json<{ - cpu_time_ms: number, - wall_clock_time_ms: number, - }>(); - if (stats.data.length !== 1) { - throw new StackAssertionError(`Unexpected number of query log results: ${stats.data.length}`, { data: stats.data }); + const retryDelaysMs = [75, 150, 300]; + for (let attempt = 0; attempt <= retryDelaysMs.length; attempt += 1) { + const stats = await queryProfile(); + if (stats.data.length === 1) { + return stats.data[0]; + } + if (stats.data.length > 1) { + throw new StackAssertionError(`Unexpected number of query log results: ${stats.data.length}`, { data: stats.data }); + } + if (attempt < retryDelaysMs.length) { + await new Promise((resolve) => setTimeout(resolve, retryDelaysMs[attempt])); + } } - return stats.data[0]; + + throw new StackAssertionError("Unexpected number of query log results: 0", { data: [] }); }; From a0b2e390062a47c7a1a7a4a39e6b80307648dec6 Mon Sep 17 00:00:00 2001 From: Bilal Godil Date: Wed, 28 Jan 2026 16:07:39 -0800 Subject: [PATCH 03/13] fix test --- .../e2e/tests/backend/endpoints/api/v1/analytics-events.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/e2e/tests/backend/endpoints/api/v1/analytics-events.test.ts b/apps/e2e/tests/backend/endpoints/api/v1/analytics-events.test.ts index df16ba2714..f48e926ac2 100644 --- a/apps/e2e/tests/backend/endpoints/api/v1/analytics-events.test.ts +++ b/apps/e2e/tests/backend/endpoints/api/v1/analytics-events.test.ts @@ -91,7 +91,7 @@ it("cannot read events from other projects", async ({ expect }) => { "branch_id": "main", "event_type": "$token-refresh", "project_id": "", - "team_id": null, + "team_id": "", "user_id": "", }, ], From fdf6a161691c63deb1e0873fb745988220b646dc Mon Sep 17 00:00:00 2001 From: Bilal Godil Date: Wed, 28 Jan 2026 16:27:50 -0800 Subject: [PATCH 04/13] remove cluster all --- apps/backend/src/lib/clickhouse.tsx | 2 +- .../e2e/tests/backend/endpoints/api/v1/analytics-events.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/backend/src/lib/clickhouse.tsx b/apps/backend/src/lib/clickhouse.tsx index 0dd1c2e8e2..d154401fe1 100644 --- a/apps/backend/src/lib/clickhouse.tsx +++ b/apps/backend/src/lib/clickhouse.tsx @@ -54,7 +54,7 @@ export const getQueryTimingStats = async (client: ClickHouseClient, queryId: str SELECT ProfileEvents['CPUTimeMicroseconds'] / 1000 AS cpu_time_ms, ProfileEvents['RealTimeMicroseconds'] / 1000 AS wall_clock_time_ms - FROM clusterAllReplicas('default', system.query_log) + FROM system.query_log WHERE query_id = {query_id:String} AND type = 'QueryFinish' ORDER BY event_time DESC LIMIT 1 diff --git a/apps/e2e/tests/backend/endpoints/api/v1/analytics-events.test.ts b/apps/e2e/tests/backend/endpoints/api/v1/analytics-events.test.ts index f48e926ac2..df16ba2714 100644 --- a/apps/e2e/tests/backend/endpoints/api/v1/analytics-events.test.ts +++ b/apps/e2e/tests/backend/endpoints/api/v1/analytics-events.test.ts @@ -91,7 +91,7 @@ it("cannot read events from other projects", async ({ expect }) => { "branch_id": "main", "event_type": "$token-refresh", "project_id": "", - "team_id": "", + "team_id": null, "user_id": "", }, ], From c1d6fd9af36d2bc8dab5f7c92e2dab87174d70e4 Mon Sep 17 00:00:00 2001 From: Bilal Godil Date: Wed, 28 Jan 2026 16:48:07 -0800 Subject: [PATCH 05/13] more retries --- apps/backend/src/lib/clickhouse.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/backend/src/lib/clickhouse.tsx b/apps/backend/src/lib/clickhouse.tsx index d154401fe1..e3045d69de 100644 --- a/apps/backend/src/lib/clickhouse.tsx +++ b/apps/backend/src/lib/clickhouse.tsx @@ -73,7 +73,7 @@ export const getQueryTimingStats = async (client: ClickHouseClient, queryId: str }>(); }; - const retryDelaysMs = [75, 150, 300]; + const retryDelaysMs = [75, 150, 300, 600, 1200]; for (let attempt = 0; attempt <= retryDelaysMs.length; attempt += 1) { const stats = await queryProfile(); if (stats.data.length === 1) { From 379bc04a51f5c0e64fd202e6fc300a5d430b304b Mon Sep 17 00:00:00 2001 From: Bilal Godil Date: Wed, 28 Jan 2026 17:30:28 -0800 Subject: [PATCH 06/13] try fix tests --- .../workflows/restart-dev-and-test-with-custom-base-port.yaml | 2 +- .github/workflows/restart-dev-and-test.yaml | 2 +- .github/workflows/setup-tests.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/restart-dev-and-test-with-custom-base-port.yaml b/.github/workflows/restart-dev-and-test-with-custom-base-port.yaml index 6e68c036f1..a91407b812 100644 --- a/.github/workflows/restart-dev-and-test-with-custom-base-port.yaml +++ b/.github/workflows/restart-dev-and-test-with-custom-base-port.yaml @@ -38,7 +38,7 @@ jobs: run: pnpm run restart-dev-environment - name: Run tests - run: pnpm run test --reporter=verbose + run: pnpm test run --reporter=verbose - name: Print dev server logs run: cat dev-server.log.untracked.txt diff --git a/.github/workflows/restart-dev-and-test.yaml b/.github/workflows/restart-dev-and-test.yaml index 7d24e87b63..9881efa7a1 100644 --- a/.github/workflows/restart-dev-and-test.yaml +++ b/.github/workflows/restart-dev-and-test.yaml @@ -36,7 +36,7 @@ jobs: run: pnpm run restart-dev-environment - name: Run tests - run: pnpm run test --reporter=verbose + run: pnpm test run --reporter=verbose - name: Print dev server logs run: cat dev-server.log.untracked.txt diff --git a/.github/workflows/setup-tests.yaml b/.github/workflows/setup-tests.yaml index 9efcf6c8fe..434c3dcc7a 100644 --- a/.github/workflows/setup-tests.yaml +++ b/.github/workflows/setup-tests.yaml @@ -43,4 +43,4 @@ jobs: tail: true wait-for: 120s log-output-if: true - - run: pnpm run test --reporter=verbose + - run: pnpm test run --reporter=verbose From 76e0d048ba70002f2f2f0c6f61b10ef1934c3762 Mon Sep 17 00:00:00 2001 From: Bilal Godil Date: Wed, 28 Jan 2026 18:02:30 -0800 Subject: [PATCH 07/13] testing fixes --- ...estart-dev-and-test-with-custom-base-port.yaml | 15 +++++++++++++-- .github/workflows/restart-dev-and-test.yaml | 15 +++++++++++++-- .github/workflows/setup-tests.yaml | 14 +++++++++++++- 3 files changed, 39 insertions(+), 5 deletions(-) diff --git a/.github/workflows/restart-dev-and-test-with-custom-base-port.yaml b/.github/workflows/restart-dev-and-test-with-custom-base-port.yaml index a91407b812..714e12568f 100644 --- a/.github/workflows/restart-dev-and-test-with-custom-base-port.yaml +++ b/.github/workflows/restart-dev-and-test-with-custom-base-port.yaml @@ -37,9 +37,20 @@ jobs: - name: Start dev environment run: pnpm run restart-dev-environment - - name: Run tests - run: pnpm test run --reporter=verbose + - name: Run tests (no watch) + env: + CI: "1" + run: pnpm run test --reporter=verbose -- --run --watch=false - name: Print dev server logs run: cat dev-server.log.untracked.txt if: always() + + - name: Debug running processes + if: always() + run: | + echo "CI=$CI" + node -v + pnpm -v + pgrep -a node || true + ps -eo pid,ppid,pgid,comm | rg -n "node|vitest|pnpm|turbo" || true diff --git a/.github/workflows/restart-dev-and-test.yaml b/.github/workflows/restart-dev-and-test.yaml index 9881efa7a1..e291d71437 100644 --- a/.github/workflows/restart-dev-and-test.yaml +++ b/.github/workflows/restart-dev-and-test.yaml @@ -35,9 +35,20 @@ jobs: - name: Start dev environment run: pnpm run restart-dev-environment - - name: Run tests - run: pnpm test run --reporter=verbose + - name: Run tests (no watch) + env: + CI: "1" + run: pnpm run test --reporter=verbose -- --run --watch=false - name: Print dev server logs run: cat dev-server.log.untracked.txt if: always() + + - name: Debug running processes + if: always() + run: | + echo "CI=$CI" + node -v + pnpm -v + pgrep -a node || true + ps -eo pid,ppid,pgid,comm | rg -n "node|vitest|pnpm|turbo" || true diff --git a/.github/workflows/setup-tests.yaml b/.github/workflows/setup-tests.yaml index 434c3dcc7a..e8654ef37e 100644 --- a/.github/workflows/setup-tests.yaml +++ b/.github/workflows/setup-tests.yaml @@ -43,4 +43,16 @@ jobs: tail: true wait-for: 120s log-output-if: true - - run: pnpm test run --reporter=verbose + - name: Run tests (no watch) + env: + CI: "1" + run: pnpm run test --reporter=verbose -- --run --watch=false + + - name: Debug running processes + if: always() + run: | + echo "CI=$CI" + node -v + pnpm -v + pgrep -a node || true + ps -eo pid,ppid,pgid,comm | rg -n "node|vitest|pnpm|turbo" || true From 7d3c2510ac6dbf3df4e182e8e5aa0c75c598264d Mon Sep 17 00:00:00 2001 From: Bilal Godil Date: Wed, 28 Jan 2026 18:23:57 -0800 Subject: [PATCH 08/13] fix tests attempt --- ...rt-dev-and-test-with-custom-base-port.yaml | 15 +++++++++---- .github/workflows/restart-dev-and-test.yaml | 16 ++++++++++---- .../setup-tests-with-custom-base-port.yaml | 21 ++++++++++++++++++- .github/workflows/setup-tests.yaml | 16 ++++++++++---- 4 files changed, 55 insertions(+), 13 deletions(-) diff --git a/.github/workflows/restart-dev-and-test-with-custom-base-port.yaml b/.github/workflows/restart-dev-and-test-with-custom-base-port.yaml index 714e12568f..d81ce7058f 100644 --- a/.github/workflows/restart-dev-and-test-with-custom-base-port.yaml +++ b/.github/workflows/restart-dev-and-test-with-custom-base-port.yaml @@ -19,6 +19,7 @@ jobs: runs-on: ubicloud-standard-8 env: NEXT_PUBLIC_STACK_PORT_PREFIX: "69" + CI: "1" steps: - uses: actions/checkout@v6 @@ -37,10 +38,14 @@ jobs: - name: Start dev environment run: pnpm run restart-dev-environment - - name: Run tests (no watch) - env: - CI: "1" - run: pnpm run test --reporter=verbose -- --run --watch=false + - name: Run tests (debug cancellation) + run: | + set +e + trap 'echo "Received SIGTERM during tests"; pgrep -a node || true; ps -eo pid,ppid,pgid,comm | rg -n "node|vitest|pnpm|turbo" || true' TERM + pnpm run test --reporter=verbose -- --run --watch=false + status=$? + echo "Test exit code: $status" + exit $status - name: Print dev server logs run: cat dev-server.log.untracked.txt @@ -50,6 +55,8 @@ jobs: if: always() run: | echo "CI=$CI" + echo "Runner: $RUNNER_NAME $RUNNER_OS $RUNNER_ARCH" + echo "GitHub event: $GITHUB_EVENT_NAME" node -v pnpm -v pgrep -a node || true diff --git a/.github/workflows/restart-dev-and-test.yaml b/.github/workflows/restart-dev-and-test.yaml index e291d71437..d9a10f38b1 100644 --- a/.github/workflows/restart-dev-and-test.yaml +++ b/.github/workflows/restart-dev-and-test.yaml @@ -17,6 +17,8 @@ env: jobs: restart-dev-and-test: runs-on: ubicloud-standard-8 + env: + CI: "1" steps: - uses: actions/checkout@v6 @@ -35,10 +37,14 @@ jobs: - name: Start dev environment run: pnpm run restart-dev-environment - - name: Run tests (no watch) - env: - CI: "1" - run: pnpm run test --reporter=verbose -- --run --watch=false + - name: Run tests (debug cancellation) + run: | + set +e + trap 'echo "Received SIGTERM during tests"; pgrep -a node || true; ps -eo pid,ppid,pgid,comm | rg -n "node|vitest|pnpm|turbo" || true' TERM + pnpm run test --reporter=verbose -- --run --watch=false + status=$? + echo "Test exit code: $status" + exit $status - name: Print dev server logs run: cat dev-server.log.untracked.txt @@ -48,6 +54,8 @@ jobs: if: always() run: | echo "CI=$CI" + echo "Runner: $RUNNER_NAME $RUNNER_OS $RUNNER_ARCH" + echo "GitHub event: $GITHUB_EVENT_NAME" node -v pnpm -v pgrep -a node || true diff --git a/.github/workflows/setup-tests-with-custom-base-port.yaml b/.github/workflows/setup-tests-with-custom-base-port.yaml index a4a008dc9f..2fb8d4a5cc 100644 --- a/.github/workflows/setup-tests-with-custom-base-port.yaml +++ b/.github/workflows/setup-tests-with-custom-base-port.yaml @@ -19,6 +19,7 @@ jobs: runs-on: ubicloud-standard-8 env: NEXT_PUBLIC_STACK_PORT_PREFIX: "69" + CI: "1" steps: - uses: actions/checkout@v6 @@ -46,4 +47,22 @@ jobs: tail: true wait-for: 120s log-output-if: true - - run: pnpm run test --reporter=verbose + - name: Run tests (debug cancellation) + run: | + set +e + trap 'echo "Received SIGTERM during tests"; pgrep -a node || true; ps -eo pid,ppid,pgid,comm | rg -n "node|vitest|pnpm|turbo" || true' TERM + pnpm run test --reporter=verbose -- --run --watch=false + status=$? + echo "Test exit code: $status" + exit $status + + - name: Debug running processes + if: always() + run: | + echo "CI=$CI" + echo "Runner: $RUNNER_NAME $RUNNER_OS $RUNNER_ARCH" + echo "GitHub event: $GITHUB_EVENT_NAME" + node -v + pnpm -v + pgrep -a node || true + ps -eo pid,ppid,pgid,comm | rg -n "node|vitest|pnpm|turbo" || true diff --git a/.github/workflows/setup-tests.yaml b/.github/workflows/setup-tests.yaml index e8654ef37e..aa1727314c 100644 --- a/.github/workflows/setup-tests.yaml +++ b/.github/workflows/setup-tests.yaml @@ -17,6 +17,8 @@ env: jobs: setup-tests: runs-on: ubicloud-standard-8 + env: + CI: "1" steps: - uses: actions/checkout@v6 @@ -43,15 +45,21 @@ jobs: tail: true wait-for: 120s log-output-if: true - - name: Run tests (no watch) - env: - CI: "1" - run: pnpm run test --reporter=verbose -- --run --watch=false + - name: Run tests (debug cancellation) + run: | + set +e + trap 'echo "Received SIGTERM during tests"; pgrep -a node || true; ps -eo pid,ppid,pgid,comm | rg -n "node|vitest|pnpm|turbo" || true' TERM + pnpm run test --reporter=verbose -- --run --watch=false + status=$? + echo "Test exit code: $status" + exit $status - name: Debug running processes if: always() run: | echo "CI=$CI" + echo "Runner: $RUNNER_NAME $RUNNER_OS $RUNNER_ARCH" + echo "GitHub event: $GITHUB_EVENT_NAME" node -v pnpm -v pgrep -a node || true From 3130eaba0e5c0c67c21222945712e33c4d54b52c Mon Sep 17 00:00:00 2001 From: Bilal Godil Date: Wed, 28 Jan 2026 18:54:10 -0800 Subject: [PATCH 09/13] fix tests attempt --- .../workflows/restart-dev-and-test-with-custom-base-port.yaml | 4 ++-- .github/workflows/restart-dev-and-test.yaml | 4 ++-- .github/workflows/setup-tests-with-custom-base-port.yaml | 4 ++-- .github/workflows/setup-tests.yaml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/restart-dev-and-test-with-custom-base-port.yaml b/.github/workflows/restart-dev-and-test-with-custom-base-port.yaml index d81ce7058f..27096c2da2 100644 --- a/.github/workflows/restart-dev-and-test-with-custom-base-port.yaml +++ b/.github/workflows/restart-dev-and-test-with-custom-base-port.yaml @@ -41,7 +41,7 @@ jobs: - name: Run tests (debug cancellation) run: | set +e - trap 'echo "Received SIGTERM during tests"; pgrep -a node || true; ps -eo pid,ppid,pgid,comm | rg -n "node|vitest|pnpm|turbo" || true' TERM + trap 'echo "Received SIGTERM during tests"; pgrep -a node || true; ps -eo pid,ppid,pgid,comm | grep -E "node|vitest|pnpm|turbo" || true' TERM pnpm run test --reporter=verbose -- --run --watch=false status=$? echo "Test exit code: $status" @@ -60,4 +60,4 @@ jobs: node -v pnpm -v pgrep -a node || true - ps -eo pid,ppid,pgid,comm | rg -n "node|vitest|pnpm|turbo" || true + ps -eo pid,ppid,pgid,comm | grep -E "node|vitest|pnpm|turbo" || true diff --git a/.github/workflows/restart-dev-and-test.yaml b/.github/workflows/restart-dev-and-test.yaml index d9a10f38b1..56e118b3b6 100644 --- a/.github/workflows/restart-dev-and-test.yaml +++ b/.github/workflows/restart-dev-and-test.yaml @@ -40,7 +40,7 @@ jobs: - name: Run tests (debug cancellation) run: | set +e - trap 'echo "Received SIGTERM during tests"; pgrep -a node || true; ps -eo pid,ppid,pgid,comm | rg -n "node|vitest|pnpm|turbo" || true' TERM + trap 'echo "Received SIGTERM during tests"; pgrep -a node || true; ps -eo pid,ppid,pgid,comm | grep -E "node|vitest|pnpm|turbo" || true' TERM pnpm run test --reporter=verbose -- --run --watch=false status=$? echo "Test exit code: $status" @@ -59,4 +59,4 @@ jobs: node -v pnpm -v pgrep -a node || true - ps -eo pid,ppid,pgid,comm | rg -n "node|vitest|pnpm|turbo" || true + ps -eo pid,ppid,pgid,comm | grep -E "node|vitest|pnpm|turbo" || true diff --git a/.github/workflows/setup-tests-with-custom-base-port.yaml b/.github/workflows/setup-tests-with-custom-base-port.yaml index 2fb8d4a5cc..57ec536ce4 100644 --- a/.github/workflows/setup-tests-with-custom-base-port.yaml +++ b/.github/workflows/setup-tests-with-custom-base-port.yaml @@ -50,7 +50,7 @@ jobs: - name: Run tests (debug cancellation) run: | set +e - trap 'echo "Received SIGTERM during tests"; pgrep -a node || true; ps -eo pid,ppid,pgid,comm | rg -n "node|vitest|pnpm|turbo" || true' TERM + trap 'echo "Received SIGTERM during tests"; pgrep -a node || true; ps -eo pid,ppid,pgid,comm | grep -E "node|vitest|pnpm|turbo" || true' TERM pnpm run test --reporter=verbose -- --run --watch=false status=$? echo "Test exit code: $status" @@ -65,4 +65,4 @@ jobs: node -v pnpm -v pgrep -a node || true - ps -eo pid,ppid,pgid,comm | rg -n "node|vitest|pnpm|turbo" || true + ps -eo pid,ppid,pgid,comm | grep -E "node|vitest|pnpm|turbo" || true diff --git a/.github/workflows/setup-tests.yaml b/.github/workflows/setup-tests.yaml index aa1727314c..7fd35079ea 100644 --- a/.github/workflows/setup-tests.yaml +++ b/.github/workflows/setup-tests.yaml @@ -48,7 +48,7 @@ jobs: - name: Run tests (debug cancellation) run: | set +e - trap 'echo "Received SIGTERM during tests"; pgrep -a node || true; ps -eo pid,ppid,pgid,comm | rg -n "node|vitest|pnpm|turbo" || true' TERM + trap 'echo "Received SIGTERM during tests"; pgrep -a node || true; ps -eo pid,ppid,pgid,comm | grep -E "node|vitest|pnpm|turbo" || true' TERM pnpm run test --reporter=verbose -- --run --watch=false status=$? echo "Test exit code: $status" @@ -63,4 +63,4 @@ jobs: node -v pnpm -v pgrep -a node || true - ps -eo pid,ppid,pgid,comm | rg -n "node|vitest|pnpm|turbo" || true + ps -eo pid,ppid,pgid,comm | grep -E "node|vitest|pnpm|turbo" || true From 9fb0376c1d3eaa865781d2ab3359ad182a02b7d9 Mon Sep 17 00:00:00 2001 From: Bilal Godil Date: Wed, 28 Jan 2026 19:29:47 -0800 Subject: [PATCH 10/13] attempt test fixes --- .github/workflows/setup-tests-with-custom-base-port.yaml | 2 +- .github/workflows/setup-tests.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/setup-tests-with-custom-base-port.yaml b/.github/workflows/setup-tests-with-custom-base-port.yaml index 57ec536ce4..8715533865 100644 --- a/.github/workflows/setup-tests-with-custom-base-port.yaml +++ b/.github/workflows/setup-tests-with-custom-base-port.yaml @@ -16,7 +16,7 @@ env: jobs: setup-tests-with-custom-base-port: - runs-on: ubicloud-standard-8 + runs-on: ubicloud-standard-16 env: NEXT_PUBLIC_STACK_PORT_PREFIX: "69" CI: "1" diff --git a/.github/workflows/setup-tests.yaml b/.github/workflows/setup-tests.yaml index 7fd35079ea..9ad24132cd 100644 --- a/.github/workflows/setup-tests.yaml +++ b/.github/workflows/setup-tests.yaml @@ -16,7 +16,7 @@ env: jobs: setup-tests: - runs-on: ubicloud-standard-8 + runs-on: ubicloud-standard-16 env: CI: "1" steps: From 0f1c48fa88d75e998ad1a1ade1285b92539c176a Mon Sep 17 00:00:00 2001 From: Bilal Godil Date: Thu, 29 Jan 2026 09:09:39 -0800 Subject: [PATCH 11/13] increase ubicloud instance size --- .../workflows/restart-dev-and-test-with-custom-base-port.yaml | 2 +- .github/workflows/restart-dev-and-test.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/restart-dev-and-test-with-custom-base-port.yaml b/.github/workflows/restart-dev-and-test-with-custom-base-port.yaml index 27096c2da2..b7296ca99f 100644 --- a/.github/workflows/restart-dev-and-test-with-custom-base-port.yaml +++ b/.github/workflows/restart-dev-and-test-with-custom-base-port.yaml @@ -16,7 +16,7 @@ env: jobs: restart-dev-and-test-with-custom-base-port: - runs-on: ubicloud-standard-8 + runs-on: ubicloud-standard-16 env: NEXT_PUBLIC_STACK_PORT_PREFIX: "69" CI: "1" diff --git a/.github/workflows/restart-dev-and-test.yaml b/.github/workflows/restart-dev-and-test.yaml index 56e118b3b6..9b99f39f45 100644 --- a/.github/workflows/restart-dev-and-test.yaml +++ b/.github/workflows/restart-dev-and-test.yaml @@ -16,7 +16,7 @@ env: jobs: restart-dev-and-test: - runs-on: ubicloud-standard-8 + runs-on: ubicloud-standard-16 env: CI: "1" From 5cf067bdf21127e57ae2af38c904a72e4dc7c8f2 Mon Sep 17 00:00:00 2001 From: Bilal Godil Date: Thu, 29 Jan 2026 09:27:07 -0800 Subject: [PATCH 12/13] fix typecheck --- docs/src/components/mdx/app-card.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/src/components/mdx/app-card.tsx b/docs/src/components/mdx/app-card.tsx index d56c5cd968..1876e7cd1f 100644 --- a/docs/src/components/mdx/app-card.tsx +++ b/docs/src/components/mdx/app-card.tsx @@ -2,7 +2,7 @@ import { ALL_APPS, AppId } from "@stackframe/stack-shared/dist/apps/apps-config"; import { AppIcon, appSquarePaddingExpression, appSquareWidthExpression } from "@stackframe/stack-shared/dist/apps/apps-ui"; -import { ClipboardList, CreditCard, KeyRound, Mail, Mails, Rocket, ShieldEllipsis, Sparkles, Triangle, Tv, UserCog, Users, Vault, Webhook } from "lucide-react"; +import { ChartLineIcon, ClipboardList, CreditCard, KeyRound, Mail, Mails, Rocket, ShieldEllipsis, Sparkles, Triangle, Tv, UserCog, Users, Vault, Webhook } from "lucide-react"; import Link from "next/link"; import { cn } from "../../lib/cn"; @@ -37,6 +37,7 @@ const APP_ICONS: Record )), vercel: Triangle, + analytics: ChartLineIcon, onboarding: ClipboardList, }; From db30eed6fd7f688ddc4cdb30388a8a982c448615 Mon Sep 17 00:00:00 2001 From: Bilal Godil Date: Thu, 29 Jan 2026 09:43:32 -0800 Subject: [PATCH 13/13] revert temp test fixes --- ...rt-dev-and-test-with-custom-base-port.yaml | 22 ++---------------- .github/workflows/restart-dev-and-test.yaml | 23 ++----------------- .../setup-tests-with-custom-base-port.yaml | 21 +---------------- .github/workflows/setup-tests.yaml | 22 +----------------- 4 files changed, 6 insertions(+), 82 deletions(-) diff --git a/.github/workflows/restart-dev-and-test-with-custom-base-port.yaml b/.github/workflows/restart-dev-and-test-with-custom-base-port.yaml index b7296ca99f..6c1f64f45e 100644 --- a/.github/workflows/restart-dev-and-test-with-custom-base-port.yaml +++ b/.github/workflows/restart-dev-and-test-with-custom-base-port.yaml @@ -19,7 +19,6 @@ jobs: runs-on: ubicloud-standard-16 env: NEXT_PUBLIC_STACK_PORT_PREFIX: "69" - CI: "1" steps: - uses: actions/checkout@v6 @@ -38,26 +37,9 @@ jobs: - name: Start dev environment run: pnpm run restart-dev-environment - - name: Run tests (debug cancellation) - run: | - set +e - trap 'echo "Received SIGTERM during tests"; pgrep -a node || true; ps -eo pid,ppid,pgid,comm | grep -E "node|vitest|pnpm|turbo" || true' TERM - pnpm run test --reporter=verbose -- --run --watch=false - status=$? - echo "Test exit code: $status" - exit $status + - name: Run tests + run: pnpm run test --reporter=verbose - name: Print dev server logs run: cat dev-server.log.untracked.txt if: always() - - - name: Debug running processes - if: always() - run: | - echo "CI=$CI" - echo "Runner: $RUNNER_NAME $RUNNER_OS $RUNNER_ARCH" - echo "GitHub event: $GITHUB_EVENT_NAME" - node -v - pnpm -v - pgrep -a node || true - ps -eo pid,ppid,pgid,comm | grep -E "node|vitest|pnpm|turbo" || true diff --git a/.github/workflows/restart-dev-and-test.yaml b/.github/workflows/restart-dev-and-test.yaml index 9b99f39f45..831148e4e7 100644 --- a/.github/workflows/restart-dev-and-test.yaml +++ b/.github/workflows/restart-dev-and-test.yaml @@ -17,8 +17,6 @@ env: jobs: restart-dev-and-test: runs-on: ubicloud-standard-16 - env: - CI: "1" steps: - uses: actions/checkout@v6 @@ -37,26 +35,9 @@ jobs: - name: Start dev environment run: pnpm run restart-dev-environment - - name: Run tests (debug cancellation) - run: | - set +e - trap 'echo "Received SIGTERM during tests"; pgrep -a node || true; ps -eo pid,ppid,pgid,comm | grep -E "node|vitest|pnpm|turbo" || true' TERM - pnpm run test --reporter=verbose -- --run --watch=false - status=$? - echo "Test exit code: $status" - exit $status + - name: Run tests + run: pnpm run test --reporter=verbose - name: Print dev server logs run: cat dev-server.log.untracked.txt if: always() - - - name: Debug running processes - if: always() - run: | - echo "CI=$CI" - echo "Runner: $RUNNER_NAME $RUNNER_OS $RUNNER_ARCH" - echo "GitHub event: $GITHUB_EVENT_NAME" - node -v - pnpm -v - pgrep -a node || true - ps -eo pid,ppid,pgid,comm | grep -E "node|vitest|pnpm|turbo" || true diff --git a/.github/workflows/setup-tests-with-custom-base-port.yaml b/.github/workflows/setup-tests-with-custom-base-port.yaml index 8715533865..b3d15e503f 100644 --- a/.github/workflows/setup-tests-with-custom-base-port.yaml +++ b/.github/workflows/setup-tests-with-custom-base-port.yaml @@ -19,7 +19,6 @@ jobs: runs-on: ubicloud-standard-16 env: NEXT_PUBLIC_STACK_PORT_PREFIX: "69" - CI: "1" steps: - uses: actions/checkout@v6 @@ -47,22 +46,4 @@ jobs: tail: true wait-for: 120s log-output-if: true - - name: Run tests (debug cancellation) - run: | - set +e - trap 'echo "Received SIGTERM during tests"; pgrep -a node || true; ps -eo pid,ppid,pgid,comm | grep -E "node|vitest|pnpm|turbo" || true' TERM - pnpm run test --reporter=verbose -- --run --watch=false - status=$? - echo "Test exit code: $status" - exit $status - - - name: Debug running processes - if: always() - run: | - echo "CI=$CI" - echo "Runner: $RUNNER_NAME $RUNNER_OS $RUNNER_ARCH" - echo "GitHub event: $GITHUB_EVENT_NAME" - node -v - pnpm -v - pgrep -a node || true - ps -eo pid,ppid,pgid,comm | grep -E "node|vitest|pnpm|turbo" || true + - run: pnpm run test --reporter=verbose diff --git a/.github/workflows/setup-tests.yaml b/.github/workflows/setup-tests.yaml index 9ad24132cd..d20748c93e 100644 --- a/.github/workflows/setup-tests.yaml +++ b/.github/workflows/setup-tests.yaml @@ -17,8 +17,6 @@ env: jobs: setup-tests: runs-on: ubicloud-standard-16 - env: - CI: "1" steps: - uses: actions/checkout@v6 @@ -45,22 +43,4 @@ jobs: tail: true wait-for: 120s log-output-if: true - - name: Run tests (debug cancellation) - run: | - set +e - trap 'echo "Received SIGTERM during tests"; pgrep -a node || true; ps -eo pid,ppid,pgid,comm | grep -E "node|vitest|pnpm|turbo" || true' TERM - pnpm run test --reporter=verbose -- --run --watch=false - status=$? - echo "Test exit code: $status" - exit $status - - - name: Debug running processes - if: always() - run: | - echo "CI=$CI" - echo "Runner: $RUNNER_NAME $RUNNER_OS $RUNNER_ARCH" - echo "GitHub event: $GITHUB_EVENT_NAME" - node -v - pnpm -v - pgrep -a node || true - ps -eo pid,ppid,pgid,comm | grep -E "node|vitest|pnpm|turbo" || true + - run: pnpm run test --reporter=verbose