mirror of
https://github.com/element-hq/synapse.git
synced 2026-11-12 07:48:29 +00:00
Run the Rust Postgres driver in CI
The driver's Rust tests are gated on a live server and CI's bare `cargo test` skipped them all, and nothing ran trial or Complement through the driver. Give the cargo-test job a Postgres service, add a trial matrix cell with `SYNAPSE_TEST_RUST_DRIVER=1`, and a Complement cell that passes `RUST_DRIVER=1` through `complement.sh` to the image's `SYNAPSE_USE_RUST_DRIVER`. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ULdieJyQoHNzeHq42H2M1p
This commit is contained in:
1 parent
3d5bc6d24d
commit
d4c8dadaa6
5 files changed
+40
-1
No files matched your search
@@ -37,6 +37,10 @@ jobs:
|
||||
- arrangement: workers
|
||||
database: Postgres
|
||||
|
||||
- arrangement: monolith
|
||||
database: Postgres
|
||||
driver: rust
|
||||
|
||||
steps:
|
||||
- name: Checkout synapse codebase
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
@@ -114,6 +118,7 @@ jobs:
|
||||
env:
|
||||
POSTGRES: ${{ (matrix.database == 'Postgres') && 1 || '' }}
|
||||
WORKERS: ${{ (matrix.arrangement == 'workers') && 1 || '' }}
|
||||
RUST_DRIVER: ${{ (matrix.driver == 'rust') && 1 || '' }}
|
||||
|
||||
- name: Formatted sanity check Complement test logs
|
||||
# Always run this step if we attempted to run the Complement tests.
|
||||
@@ -146,6 +151,7 @@ jobs:
|
||||
env:
|
||||
POSTGRES: ${{ (matrix.database == 'Postgres') && 1 || '' }}
|
||||
WORKERS: ${{ (matrix.arrangement == 'workers') && 1 || '' }}
|
||||
RUST_DRIVER: ${{ (matrix.driver == 'rust') && 1 || '' }}
|
||||
TEST_ONLY_IGNORE_POETRY_LOCKFILE: ${{ inputs.use_latest_deps && 1 || '' }}
|
||||
TEST_ONLY_SKIP_DEP_HASH_VERIFICATION: ${{ inputs.use_twisted_trunk && 1 || '' }}
|
||||
|
||||
@@ -183,6 +189,7 @@ jobs:
|
||||
env:
|
||||
POSTGRES: ${{ (matrix.database == 'Postgres') && 1 || '' }}
|
||||
WORKERS: ${{ (matrix.arrangement == 'workers') && 1 || '' }}
|
||||
RUST_DRIVER: ${{ (matrix.driver == 'rust') && 1 || '' }}
|
||||
TEST_ONLY_IGNORE_POETRY_LOCKFILE: ${{ inputs.use_latest_deps && 1 || '' }}
|
||||
TEST_ONLY_SKIP_DEP_HASH_VERIFICATION: ${{ inputs.use_twisted_trunk && 1 || '' }}
|
||||
|
||||
|
||||
Reference in new issue
Block a user