Skip to content

server: Add caching for realm endpoints test#4248

Merged
backspace merged 1 commit intomainfrom
server/realm-endpoints-test-caching-cs-10344
Mar 26, 2026
Merged

server: Add caching for realm endpoints test#4248
backspace merged 1 commit intomainfrom
server/realm-endpoints-test-caching-cs-10344

Conversation

@backspace
Copy link
Contributor

@backspace backspace commented Mar 26, 2026

The average runtime for this job in March has been 14m9s and it took 10m24s here.

@backspace backspace self-assigned this Mar 26, 2026
@backspace backspace added the enhancement New feature or request label Mar 26, 2026
@github-actions
Copy link

Host Test Results

    1 files  ±0      1 suites  ±0   1h 56m 41s ⏱️ - 11m 58s
2 051 tests ±0  2 036 ✅ ±0  15 💤 ±0  0 ❌ ±0 
2 066 runs  ±0  2 051 ✅ ±0  15 💤 ±0  0 ❌ ±0 

Results for commit 7afadb9. ± Comparison against base commit 0900ac6.

@backspace backspace marked this pull request as ready for review March 26, 2026 01:34
@backspace backspace requested a review from a team March 26, 2026 01:34
@habdelra habdelra requested a review from Copilot March 26, 2026 01:41
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR speeds up realm-endpoints-test by switching two test modules from ad-hoc realm-server setup to the cached setupPermissionedRealmCached fixture, reducing repeated DB/realm initialization work.

Changes:

  • Replaced manual tmp dir + setupDB + runTestRealmServer wiring with setupPermissionedRealmCached for the “mounted at origin” test module.
  • Replaced manual setup with setupPermissionedRealmCached for the “serving from a subdirectory” module (custom realmURL preserved).
  • Removed the now-unused testRealmURL import.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@backspace backspace merged commit 724fc8b into main Mar 26, 2026
116 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants