Skip to content

matrix: Add environment mode test support#4236

Draft
backspace wants to merge 22 commits intomainfrom
matrix/tests-environment-mode-cs-10481
Draft

matrix: Add environment mode test support#4236
backspace wants to merge 22 commits intomainfrom
matrix/tests-environment-mode-cs-10481

Conversation

@backspace
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 23, 2026

Host Test Results

    1 files  ±0      1 suites  ±0   1h 57m 47s ⏱️ - 12m 49s
2 056 tests ±0  2 041 ✅ ±0  15 💤 ±0  0 ❌ ±0 
2 071 runs  ±0  2 056 ✅ ±0  15 💤 ±0  0 ❌ ±0 

Results for commit 128f720. ± Comparison against base commit a2591cf.

♻️ This comment has been updated with latest results.

backspace and others added 12 commits March 23, 2026 13:29
…ent-mode-cs-10481

# Conflicts:
#	packages/matrix/docker/synapse/index.ts
#	packages/matrix/helpers/environment-config.ts
#	packages/matrix/helpers/isolated-realm-server.ts
…ent-mode-cs-10481

# Conflicts:
#	packages/matrix/docker/synapse/index.ts
…ent-mode-cs-10481

# Conflicts:
#	mise-tasks/test-services/matrix
- getSynapseURL falls back to MATRIX_TEST_CONTEXT env var so Playwright
  worker processes use the test Synapse (not the dev Synapse)
- Test Synapse temporarily overwrites the dev 'matrix' Traefik route
  (required because Playwright page.route cannot intercept WebSockets);
  teardown restores the dev route
- Test Synapse uses a separate Docker container (boxel-synapse-test-*)
  so the dev Synapse container keeps running
- global.setup waits for host app availability before starting realm server
- page.route rewrites Ember config matrixURL and redirects Matrix API calls
- setRealmRedirects redirects base/skills realm URLs to isolated test server
- Prerender BOXEL_HOST_URL points to isolated realm server (same-origin,
  no CORS issues); standby creation retries after realm server boots
- PG_POOL_MAX defaults to 5 for test processes to avoid exhausting
  Postgres connections when running alongside the dev stack

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant