Skip to content

Conversation

@IanCal
Copy link
Contributor

@IanCal IanCal commented Dec 9, 2025

Several things seem to be really hitting the host test performance locally:

  1. Loading modules (particularly card-api which can cost ~500ms per simple test)
  2. Creating test realms
  3. Creating matrix things

Here I've added two major things:

  1. Snapshotting state (database, matrix, loader) after creating realms
  2. Not reloading the base realm items again and again

The snapshots are purely in memory, so there is no caching to manage between test runs. The concept is that the first test run creates the realm/etc in the beforeeach, and this is then snapshotted and restored for all following tests that use the same beforeeach.

@github-actions
Copy link

github-actions bot commented Dec 9, 2025

Preview deployments

@github-actions
Copy link

github-actions bot commented Dec 9, 2025

Host Test Results

    1 files      1 suites   44m 8s ⏱️
1 749 tests 1 657 ✅ 13 💤  0 ❌ 79 🔥
1 756 runs  1 585 ✅ 13 💤 79 ❌ 79 🔥

For more details on these errors, see this check.

Results for commit c9707bf.

♻️ This comment has been updated with latest results.

@IanCal IanCal changed the base branch from main to test-setup-refactor December 12, 2025 18:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants