Skip to content

Commit cc63d6b

Browse files
committed
Run Complement tests with MAS in GitHub Actions
Add a 'workers + Postgres + MAS' matrix entry to the complement test workflow. When the `mas: true` matrix flag is set, the MAS=1 environment variable is passed to complement.sh, enabling the full MAS integration (stack: Synapse workers, MAS compat layer, registration shim) to be exercised in CI.
1 parent 4562295 commit cc63d6b

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/complement_tests.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ jobs:
3737
- arrangement: workers
3838
database: Postgres
3939

40+
- arrangement: workers
41+
database: Postgres
42+
mas: true
43+
4044
steps:
4145
- name: Checkout synapse codebase
4246
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -103,6 +107,7 @@ jobs:
103107
env:
104108
POSTGRES: ${{ (matrix.database == 'Postgres') && 1 || '' }}
105109
WORKERS: ${{ (matrix.arrangement == 'workers') && 1 || '' }}
110+
MAS: ${{ (matrix.mas == true) && 1 || '' }}
106111

107112
- name: Formatted sanity check Complement test logs
108113
# Always run this step if we attempted to run the Complement tests.
@@ -132,6 +137,7 @@ jobs:
132137
env:
133138
POSTGRES: ${{ (matrix.database == 'Postgres') && 1 || '' }}
134139
WORKERS: ${{ (matrix.arrangement == 'workers') && 1 || '' }}
140+
MAS: ${{ (matrix.mas == true) && 1 || '' }}
135141
TEST_ONLY_IGNORE_POETRY_LOCKFILE: ${{ inputs.use_latest_deps && 1 || '' }}
136142
TEST_ONLY_SKIP_DEP_HASH_VERIFICATION: ${{ inputs.use_twisted_trunk && 1 || '' }}
137143

@@ -162,6 +168,7 @@ jobs:
162168
env:
163169
POSTGRES: ${{ (matrix.database == 'Postgres') && 1 || '' }}
164170
WORKERS: ${{ (matrix.arrangement == 'workers') && 1 || '' }}
171+
MAS: ${{ (matrix.mas == true) && 1 || '' }}
165172
TEST_ONLY_IGNORE_POETRY_LOCKFILE: ${{ inputs.use_latest_deps && 1 || '' }}
166173
TEST_ONLY_SKIP_DEP_HASH_VERIFICATION: ${{ inputs.use_twisted_trunk && 1 || '' }}
167174

0 commit comments

Comments
 (0)