Skip to content

Update implementation #6117

Update implementation

Update implementation #6117

Triggered via push May 12, 2026 02:46
Status Failure
Total duration 1h 30m 53s
Artifacts
Check if migrations changed
8s
Check if migrations changed
Back-compat — Current branch migrations with dev branch code
28m 8s
Back-compat — Current branch migrations with dev branch code
No migration changes (skipped)
0s
No migration changes (skipped)
Forward-compat — Current branch code with dev branch migrations
37m 48s
Forward-compat — Current branch code with dev branch migrations
Fit to window
Zoom out
Zoom in

Annotations

15 errors and 2 warnings
Back-compat — Current branch migrations with dev branch code
Process completed with exit code 1.
src/auto-migrations/migration-tests.test.ts > database migration tests > 20260420000000_add_project_onboarding_state > default-and-updates: apps/backend/prisma/migrations/20260420000000_add_project_onboarding_state/tests/default-and-updates.ts#L42
Error: Snapshot `database migration tests > 20260420000000_add_project_onboarding_state > default-and-updates 1` mismatched - Expected + Received - { - "selected_apps": [ - "authentication", - "emails", - ], - "selected_config_choice": "create-new", - "selected_email_theme_id": null, - "selected_payments_country": "US", - "selected_sign_in_methods": [ - "credential", - "magicLink", - ], - } + "{"selected_config_choice":"create-new","selected_apps":["authentication","emails"],"selected_sign_in_methods":["credential","magicLink"],"selected_email_theme_id":null,"selected_payments_country":"US"}" ❯ Module.postMigration prisma/migrations/20260420000000_add_project_onboarding_state/tests/default-and-updates.ts:42:54 ❯ src/auto-migrations/migration-tests.test.ts:148:13
tests/backend/endpoints/api/v1/auth/cli/route.test.ts > should create a new CLI auth attempt with custom expiration time: apps/e2e/tests/backend/endpoints/api/v1/auth/cli/route.test.ts#L35
AssertionError: expected 400 to be 200 // Object.is equality - Expected + Received - 200 + 400 ❯ tests/backend/endpoints/api/v1/auth/cli/route.test.ts:35:27
tests/backend/endpoints/api/v1/auth/cli/route.test.ts > should create a new CLI auth attempt: apps/e2e/tests/backend/endpoints/api/v1/auth/cli/route.test.ts#L20
AssertionError: expected 119951 to be greater than 7190000 ❯ tests/backend/endpoints/api/v1/auth/cli/route.test.ts:20:47
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 @@ -5,19 +5,19 @@ "AQ": [ { "display_name": null, "id": "<stripped UUID>", "last_active_at_millis": <stripped field 'last_active_at_millis'>, - "primary_email": "mailbox-1--<stripped UUID>@stack-generated.example.com", + "primary_email": "mailbox-2--<stripped UUID>@stack-generated.example.com", "profile_image_url": null, "signed_up_at_millis": <stripped field 'signed_up_at_millis'>, }, { "display_name": null, "id": "<stripped UUID>", "last_active_at_millis": <stripped field 'last_active_at_millis'>, - "primary_email": "mailbox-2--<stripped UUID>@stack-generated.example.com", + "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": [ ❯ it.timeout tests/backend/endpoints/api/v1/internal-metrics.test.ts:179:20
src/auto-migrations/migration-tests.test.ts > database migration tests > 20260420000000_add_project_onboarding_state > default-and-updates: apps/backend/prisma/migrations/20260420000000_add_project_onboarding_state/tests/default-and-updates.ts#L42
Error: Snapshot `database migration tests > 20260420000000_add_project_onboarding_state > default-and-updates 1` mismatched - Expected + Received - { - "selected_apps": [ - "authentication", - "emails", - ], - "selected_config_choice": "create-new", - "selected_email_theme_id": null, - "selected_payments_country": "US", - "selected_sign_in_methods": [ - "credential", - "magicLink", - ], - } + "{"selected_config_choice":"create-new","selected_apps":["authentication","emails"],"selected_sign_in_methods":["credential","magicLink"],"selected_email_theme_id":null,"selected_payments_country":"US"}" ❯ Module.postMigration prisma/migrations/20260420000000_add_project_onboarding_state/tests/default-and-updates.ts:42:54 ❯ src/auto-migrations/migration-tests.test.ts:148:13
tests/backend/endpoints/api/v1/auth/password/update.test.ts > should not update passwords without old password: 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/update.test.ts:95:3 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { extraData: { messages: [] }, customCaptureExtraArgs: [ { messages: [] } ] }
tests/backend/endpoints/api/v1/auth/mfa/sign-in.test.ts > should reject invalid attempt codes: 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/mfa/sign-in.test.ts:67:23 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { extraData: { messages: [] }, customCaptureExtraArgs: [ { messages: [] } ] }
tests/backend/endpoints/api/v1/auth/cli/route.test.ts > should create a new CLI auth attempt with custom expiration time: apps/e2e/tests/backend/endpoints/api/v1/auth/cli/route.test.ts#L35
AssertionError: expected 400 to be 200 // Object.is equality - Expected + Received - 200 + 400 ❯ tests/backend/endpoints/api/v1/auth/cli/route.test.ts:35:27
tests/backend/endpoints/api/v1/auth/cli/route.test.ts > should create a new CLI auth attempt: apps/e2e/tests/backend/endpoints/api/v1/auth/cli/route.test.ts#L20
AssertionError: expected 119974 to be greater than 7190000 ❯ tests/backend/endpoints/api/v1/auth/cli/route.test.ts:20:47
tests/backend/endpoints/api/v1/internal/failed-emails-digest.test.ts > with valid credentials > should return 200 and process dry run request: apps/e2e/tests/backend/backend-helpers.ts#L494
StackAssertionError: Sign-in code message not found after 40 attempts This is likely an error in Stack. Please make sure you are running the newest version and report it. ❯ sendSignInCode tests/backend/backend-helpers.ts:494:17 ❯ Object.signIn tests/backend/backend-helpers.ts:507:33 ❯ testFailedEmails tests/backend/endpoints/api/v1/internal/failed-emails-digest.test.ts:66:5 ❯ it.repeats tests/backend/endpoints/api/v1/internal/failed-emails-digest.test.ts:158:37 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { extraData: { response: { status: 200, headers: { constructor: 'Function<Headers>', append: 'Function<append>', delete: 'Function<delete>', get: 'Function<get>', has: 'Function<has>', set: 'Function<set>', getSetCookie: 'Function<getSetCookie>', keys: 'Function<keys>', values: 'Function<values>', entries: 'Function<entries>', forEach: 'Function<forEach>' }, body: { nonce: '6enk0xq43ghxme7scy2j05p5jqkm0rgxr0gmr2r' }, fromRequestInit: { method: 'POST', body: '{"email":"default-mailbox--319a5b4a-ed5d-4a9c-8ba3-335755309f53@stack-generated.example.com","callback_url":"http://localhost:12345/some-callback-url","bot_challenge_token":"mock-turnstile-ok:send_magic_link_email"}', headers: { 'content-type': 'application/json', 'x-stack-access-type': 'client', 'x-stack-project-id': 'internal', 'x-stack-publishable-client-key': 'this-publishable-client-key-is-for-local-development-only', 'x-stack-secret-server-key': 'this-secret-server-key-is-for-local-development-only', 'x-stack-super-secret-admin-key': 'this-super-secret-admin-key-is-for-local-development-only', 'x-stack-allow-anonymous-user': 'true' } }, constructor: 'Function<NiceResponse>', getNicifiableKeys: 'Function<getNicifiableKeys>', follow: 'Function<follow>' }, messages: [], outboxEmails: [ { id: '5ab18c0e-c668-4055-a346-2f5d1e0cf264', created_at_millis: 1778558579020, updated_at_millis: 1778558579240, tsx_source: 'import { type } from "arktype"\nimport { Button, Section, Hr, Text, Heading } from "@react-email/components";\nimport { Subject, NotificationCategory, Props } from "@stackframe/emails";\n\nexport const variablesSchema = type({\n emailVerificationLink: "string"\n})\n\nexport function EmailTemplate({ user, project, variables }: Props<typeof variablesSchema.infer>) {\n return (\n <>\n <Subject value={`Verify your email at ${project.displayName}`} />\n <NotificationCategory value="Transactional" />\n <div className="font-sans text-base font-normal tracking-[0.15008px] leading-[1.5] m-0 py-8 w-full min-h-full">\n <Section>\n <Heading as="h3" className="font-sans font-bold text-[20px] text-center py-4 px-6 m-0">\n Verify your email at {project.displayName}\n </Heading>\n <p className="font-sans font-normal text-[14px] text-center pt-2 px-6 pb-4 m-0 opacity-80">\n Hi{user.displayName ? (", " + user.displayName) : \'\'}! Please click on the following button to verify your email.\n </p>\n <div className="text-center py-3 px-6">\n <Button\n href={variables.emailVerificationLink}\n className="text-black font-sans font-bold text-[14px] inline-block bg-[#f0f0f0] rounded-[4px] py-3 px-5 no-underline border-0"\n >\n Verify my email\n </Button>\n </div>\n <div className="py-4 px-6">\n <Hr className="opacity-20" />\n </div>\n <p className="font-sans font-normal text-[12px] text-center pt-1 px-6 pb-6 m-0 opacity-60">\n If you were not expecting this email, you can safely ignore it. \n </p>\n </Section>\n </div>\n </>\n )\n}\n\nEmailTemplate.PreviewVariables = {\n emailVerificationLink: "#"\n} satisfies typeof variablesSchema.infer', theme_id: '1df07ae6-abf3-4a40-83a5-a1a2cbe336ac', to: { type: 'user-custom-emails', user_id: '97bc2174-d2d8-4341-8250-76418cfeee4c', emails: [ '53926851-84af-4c5f-be7d-a5272a957a93@stack-js-test.example.com' ] }, variables:
tests/backend/endpoints/api/v1/internal/failed-emails-digest.test.ts > with valid credentials > should return 200 and process dry run request: apps/e2e/tests/backend/endpoints/api/v1/internal/failed-emails-digest.test.ts#L127
Error: Snapshot `with valid credentials > should return 200 and process dry run request 13` mismatched - Expected + Received [ { "emails": [ { - "subject": "", - "to": ["User ID: <stripped UUID>"], - }, - { "subject": "Verify your email at Test Failed Emails Project", "to": ["default-mailbox--<stripped UUID>@stack-generated.example.com"], }, ], "project_id": "<stripped UUID>", "tenancy_id": "<stripped UUID>", - "tenant_owner_emails": [ - "default-mailbox--<stripped UUID>@stack-generated.example.com", - "default-mailbox--<stripped UUID>@stack-generated.example.com", - ], + "tenant_owner_emails": ["default-mailbox--<stripped UUID>@stack-generated.example.com"], }, ] ❯ testFailedEmails tests/backend/endpoints/api/v1/internal/failed-emails-digest.test.ts:127:39 ❯ it.repeats tests/backend/endpoints/api/v1/internal/failed-emails-digest.test.ts:158:37
tests/backend/endpoints/api/v1/internal/failed-emails-digest.test.ts > with valid credentials > should return 200 and process dry run request: apps/e2e/tests/backend/endpoints/api/v1/internal/failed-emails-digest.test.ts#L127
Error: Snapshot `with valid credentials > should return 200 and process dry run request 9` mismatched - Expected + Received [ { "emails": [ { - "subject": "", - "to": ["User ID: <stripped UUID>"], - }, - { "subject": "Verify your email at Test Failed Emails Project", "to": ["default-mailbox--<stripped UUID>@stack-generated.example.com"], }, ], "project_id": "<stripped UUID>", "tenancy_id": "<stripped UUID>", - "tenant_owner_emails": [ - "default-mailbox--<stripped UUID>@stack-generated.example.com", - "default-mailbox--<stripped UUID>@stack-generated.example.com", - ], + "tenant_owner_emails": ["default-mailbox--<stripped UUID>@stack-generated.example.com"], }, ] ❯ testFailedEmails tests/backend/endpoints/api/v1/internal/failed-emails-digest.test.ts:127:39 ❯ it.repeats tests/backend/endpoints/api/v1/internal/failed-emails-digest.test.ts:158:37
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 @@ -5,29 +5,19 @@ "AQ": [ { "display_name": null, "id": "<stripped UUID>", "last_active_at_millis": <stripped field 'last_active_at_millis'>, - "primary_email": "mailbox-1--<stripped UUID>@stack-generated.example.com", - "profile_image_url": null, - "signed_up_at_millis": <stripped field 'signed_up_at_millis'>, - }, - { - "display_name": null, - "id": "<stripped UUID>", - "last_active_at_millis": <stripped field 'last_active_at_millis'>, "primary_email": "mailbox-2--<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", + "primary_email": "mailbox-1--<stripped UUID>@stack-generated.example.com", "profile_image_url": null, "signed_up_at_millis": <stripped field 'signed_up_at_millis'>, }, ], }, @@ -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
Back-compat — Current branch migrations with dev branch code
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/
Forward-compat — Current branch code with dev branch migrations
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/