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:
Erik JohnstonandClaude Fable 5.1 committed 2026-10-12 18:55:01 +00:00
1 parent 3d5bc6d24d
commit d4c8dadaa6
5 files changed
+40 -1

No files matched your search

+6
View File
@@ -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