Skip to content

Flaky "Database is not available in this session" error on Email IDP finish password reset test #4467

Closed

Description

@marcelomendoncasoares

When running the CI for #4462, we had an unexpected "Database is not available in this session" error, although this file was not modified in any way.

The error happened only on Windows and persisted after re-running. Moreover, this error means that the config for the database was not loaded while loading Serverpod configs, but this is done exactly in the same way as all other IDP integration tests.

+4 -1: loading test\email\email_idp\email_idp_finish_password_reset_test.dart [E]
  Failed to load "test\email\email_idp\email_idp_finish_password_reset_test.dart": Database is not available in this session.
  package:serverpod/src/server/session.dart 94:7                       Session.db
  package:serverpod_test/src/test_serverpod.dart 73:13                 new InternalServerpodSession
  package:serverpod_test/src/test_serverpod.dart 208:12                TestServerpod.createSession
  package:serverpod_test/src/with_serverpod.dart 99:44                 buildWithServerpod
  test\test_tools\serverpod_test_tools.dart 101:7                      withServerpod
  test\email\email_idp\email_idp_finish_password_reset_test.dart 12:3  main

If this persists, we should investigate and fix the flaky test.

Activity

  1. added
    bug
    test
    flaky
    on Dec 17, 2025
  2. moved this from Inbox 📫 to Backlog 🗂️ in Serverpod Frameworkson Dec 17, 2025
  3. moved this from Backlog 🗂️ to Done 🚀 in Serverpod Frameworkson Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugflakytest

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions