mirror of
https://github.com/element-hq/synapse.git
synced 2026-11-04 15:37:49 +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
@@ -358,6 +358,12 @@ main() {
|
||||
export PASS_SYNAPSE_COMPLEMENT_USE_ASYNCIO_REACTOR=true
|
||||
fi
|
||||
|
||||
if [[ -n "$RUST_DRIVER" ]]; then
|
||||
# Talk to Postgres through the native Rust driver (`use_rust_driver`)
|
||||
# instead of psycopg2. Only meaningful with POSTGRES=1.
|
||||
export PASS_SYNAPSE_USE_RUST_DRIVER=true
|
||||
fi
|
||||
|
||||
if [[ -n "$UNIX_SOCKETS" ]]; then
|
||||
# Enable full on Unix socket mode for Synapse, Redis and Postgresql
|
||||
export PASS_SYNAPSE_USE_UNIX_SOCKET=1
|
||||
|
||||
Reference in new issue
Block a user