Skip to content

fix(tests): use sql.json in onboarding migration test and refresh metrics snapshot #12759

fix(tests): use sql.json in onboarding migration test and refresh metrics snapshot

fix(tests): use sql.json in onboarding migration test and refresh metrics snapshot #12759

Triggered via pull request May 8, 2026 16:55
Status Failure
Total duration 38m 56s
Artifacts

e2e-api-tests.yaml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

5 errors and 2 warnings
E2E Tests (Node 22.x, Freestyle mock)
Process completed with exit code 1.
tests/backend/endpoints/api/v1/auth/password/send-reset-code.test.ts > should not send a password reset code if the redirect URL is invalid: apps/e2e/tests/helpers.ts#L254
StackAssertionError: Expected at least 1 messages with subject containing "Verify your email", but found 0 This is likely an error in Stack. Please make sure you are running the newest version and report it. ❯ Mailbox.waitForMessagesWithSubjectCount tests/helpers.ts:254:13 ❯ Mailbox.waitForMessagesWithSubject tests/helpers.ts:240:14 ❯ Object.signUpWithEmail tests/backend/backend-helpers.ts:586:9 ❯ tests/backend/endpoints/api/v1/auth/password/send-reset-code.test.ts:87:3 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { extraData: { messages: [] }, customCaptureExtraArgs: [ { messages: [] } ] }
tests/backend/endpoints/api/v1/auth/password/reset.test.ts > should be able to check the password reset code without using it: apps/e2e/tests/helpers.ts#L254
StackAssertionError: Expected at least 1 messages with subject containing "Verify your email", but found 0 This is likely an error in Stack. Please make sure you are running the newest version and report it. ❯ Mailbox.waitForMessagesWithSubjectCount tests/helpers.ts:254:13 ❯ Mailbox.waitForMessagesWithSubject tests/helpers.ts:240:14 ❯ Object.signUpWithEmail tests/backend/backend-helpers.ts:586:9 ❯ tests/backend/endpoints/api/v1/auth/password/reset.test.ts:112:3 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { extraData: { messages: [] }, customCaptureExtraArgs: [ { messages: [] } ] }
tests/backend/endpoints/api/v1/internal-metrics.test.ts > should handle anonymous users with activity correctly: apps/e2e/tests/backend/endpoints/api/v1/internal-metrics.test.ts#L311
AssertionError: expected +0 to be 1 // Object.is equality - Expected + Received - 1 + 0 ❯ it.timeout tests/backend/endpoints/api/v1/internal-metrics.test.ts:311:29
tests/backend/endpoints/api/v1/internal-metrics.test.ts > should return metrics data with users: apps/e2e/tests/backend/endpoints/api/v1/internal-metrics.test.ts#L179
Error: Snapshot `should return metrics data with users > metrics_result_with_users 1` mismatched - Expected + Received @@ -18,20 +18,10 @@ "primary_email": "mailbox-1--<stripped UUID>@stack-generated.example.com", "profile_image_url": null, "signed_up_at_millis": <stripped field 'signed_up_at_millis'>, }, ], - "CH": [ - { - "display_name": null, - "id": "<stripped UUID>", - "last_active_at_millis": <stripped field 'last_active_at_millis'>, - "primary_email": "mailbox-3--<stripped UUID>@stack-generated.example.com", - "profile_image_url": null, - "signed_up_at_millis": <stripped field 'signed_up_at_millis'>, - }, - ], }, "analytics_overview": { "anonymous_visitors_fallback": 0, "avg_session_seconds": 0, "daily_anonymous_visitors_fallback": [ @@ -3021,12 +3011,9 @@ "server_metadata": null, "signed_up_at_millis": <stripped field 'signed_up_at_millis'>, }, ], "total_users": 9, - "users_by_country": { - "AQ": 2, - "CH": 1, - }, + "users_by_country": { "AQ": 2 }, }, "headers": Headers { <some fields may have been hidden> }, } ❯ it.timeout tests/backend/endpoints/api/v1/internal-metrics.test.ts:179:20
E2E Tests (Node 22.x, Freestyle prod)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: JarvusInnovations/background-action@v1.0.7, pnpm/action-setup@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/
E2E Tests (Node 22.x, Freestyle mock)
Node.js 20 actions are deprecated. The following actions are running on Node.js 20 and may not work as expected: JarvusInnovations/background-action@v1.0.7, pnpm/action-setup@v4. Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Node.js 20 will be removed from the runner on September 16th, 2026. Please check if updated versions of these actions are available that support Node.js 24. To opt into Node.js 24 now, set the FORCE_JAVASCRIPT_ACTIONS_TO_NODE24=true environment variable on the runner or in your workflow file. Once Node.js 24 becomes the default, you can temporarily opt out by setting ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION=true. For more information see: https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/