Skip to content

Commit 3de8f5d

Browse files
authored
ci: Remove Matrix as factory workflow dependency (#5096)
This consolidates Matrix setup for cleaner dependency-tracking.
1 parent dcd6003 commit 3de8f5d

77 files changed

Lines changed: 380 additions & 229 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude/skills/indexing-diagnostics/SKILL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1273,7 +1273,7 @@ WHERE realm_url = '<realm-url>' AND username = '<user-from-artifact>';
12731273

12741274
Then re-mint with `--permissions read,write,realm-owner` (or whatever the columns are). Booleans translate one-to-one to array entries; column `realm_owner` becomes `realm-owner` (note the dash).
12751275

1276-
For local dev: matrix `server_name` is `localhost` (`packages/matrix/docker/synapse/dev/homeserver.yaml:1`), so user IDs are `@<username>:localhost`. Two local-dev modes are supported:
1276+
For local dev: matrix `server_name` is `localhost` (`packages/matrix/support/synapse/dev/homeserver.yaml:1`), so user IDs are `@<username>:localhost`. Two local-dev modes are supported:
12771277

12781278
- **Standard mode** (no `BOXEL_ENVIRONMENT` set) — realm at `https://localhost:4201/...`, host-app at `https://localhost:4200`.
12791279
- **Environment mode** (`BOXEL_ENVIRONMENT=<name>` set) — realm at `http://realm-server.<slug>.localhost/...`, host-app at `http://host.<slug>.localhost` (Traefik routing per `mise-tasks/lib/env-vars.sh`).

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ module.exports = {
108108
'packages/boxel-cli/src/commands/realm/status.ts',
109109
'packages/boxel-cli/src/commands/realm/sync.ts',
110110
'packages/boxel-cli/src/lib/realm-sync-base.ts',
111-
'packages/matrix/helpers/isolated-realm-server.ts',
111+
'packages/matrix/support/isolated-realm-server.ts',
112112
'packages/postgres/pg-queue.ts',
113113
'packages/postgres/pg-transaction-manager.ts',
114114
'packages/realm-server/node-realm.ts',

.github/workflows/ci-software-factory.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ on:
1313
- "packages/base/**"
1414
- "packages/boxel-icons/**"
1515
- "packages/host/**"
16-
- "packages/matrix/**"
16+
- "packages/matrix/support/**"
1717
- "packages/postgres/**"
1818
- "packages/realm-server/**"
1919
- "packages/realm-test-harness/**"

.github/workflows/sync-synapse-templates.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
branches: [main]
66
paths:
7-
- "packages/matrix/docker/synapse/templates/**"
7+
- "packages/matrix/support/synapse/templates/**"
88
workflow_dispatch:
99
inputs:
1010
environment:
@@ -56,15 +56,15 @@ jobs:
5656

5757
- name: Replace URL in registration success template
5858
run: |
59-
sed -i "s/http:\/\/localhost:4200/https:\/\/${{ env.HOST_DOMAIN }}/" packages/matrix/docker/synapse/templates/registration_success.html
59+
sed -i "s/http:\/\/localhost:4200/https:\/\/${{ env.HOST_DOMAIN }}/" packages/matrix/support/synapse/templates/registration_success.html
6060
6161
- name: Replace icon URL with one from matching subdomain
6262
run: |
63-
sed -i "s/d12nxmpmo97fii.cloudfront.net\/boxel-icon.png/${{ env.BOXEL_ICON_DOMAIN_AND_PATH }}/" packages/matrix/docker/synapse/templates/_base.html
63+
sed -i "s/d12nxmpmo97fii.cloudfront.net\/boxel-icon.png/${{ env.BOXEL_ICON_DOMAIN_AND_PATH }}/" packages/matrix/support/synapse/templates/_base.html
6464
6565
- name: S3 Sync
6666
run: |
67-
aws s3 sync packages/matrix/docker/synapse/templates s3://${{ env.AWS_S3_BUCKET }}/templates
67+
aws s3 sync packages/matrix/support/synapse/templates s3://${{ env.AWS_S3_BUCKET }}/templates
6868
6969
- name: Restart Synapse ECS Service
7070
run: |

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ This will create a new SQLite schema based on the current postgres DB (the schem
436436

437437
### Matrix Server
438438

439-
The boxel platform leverages a Matrix server called Synapse in order to support identity, workflow, and chat behaviors. This project uses a dockerized Matrix server. We have multiple matrix server configurations (currently one for development that uses a persistent DB, and one for testing that uses an in-memory DB). You can find and configure these matrix servers at `packages/matrix/docker/synapse/*`.
439+
The boxel platform leverages a Matrix server called Synapse in order to support identity, workflow, and chat behaviors. This project uses a dockerized Matrix server. We have multiple matrix server configurations (currently one for development that uses a persistent DB, and one for testing that uses an in-memory DB). You can find and configure these matrix servers at `packages/matrix/support/synapse/*`.
440440

441441
This server is automatically started as part of `mise run dev`, but if you wish to control it separately:
442442

packages/matrix/docker/smtp4dev.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
import { dockerCreateNetwork, dockerRun, dockerStop, dockerRm } from './index';
1+
import {
2+
dockerCreateNetwork,
3+
dockerRun,
4+
dockerStop,
5+
dockerRm,
6+
} from '../support/docker';
27

38
interface Options {
49
mailClientPort?: number;

packages/matrix/docker/synapse/templates/_base.html

Lines changed: 0 additions & 42 deletions
This file was deleted.

packages/matrix/docker/synapse/templates/add_threepid.html

Lines changed: 0 additions & 9 deletions
This file was deleted.

packages/matrix/docker/synapse/templates/add_threepid_failure.html

Lines changed: 0 additions & 7 deletions
This file was deleted.

packages/matrix/docker/synapse/templates/add_threepid_success.html

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)