diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2019-10-28 17:45:32 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-28 17:45:32 +0000 |
commit | 14504ad5736ae230d759d8fadccd8babb42fa548 (patch) | |
tree | 3bcb3ad652a29c6884c94089bf161a94e64709f0 /.buildkite/sqlite-config.yaml | |
parent | Fix broken URL in docker/README.md (#6264) (diff) | |
download | synapse-14504ad5736ae230d759d8fadccd8babb42fa548.tar.xz |
Add CI for synapse_port_db (#6140)
This adds: * a test sqlite database * a configuration file for the sqlite database * a configuration file for a postgresql database (using the credentials in `.buildkite/docker-compose.pyXX.pgXX.yaml`) as well as a new script named `.buildkite/scripts/test_synapse_port_db.sh` that: 1. installs Synapse 2. updates the test sqlite database to the latest schema and runs background updates on it 3. creates an empty postgresql database 4. run the `synapse_port_db` script to migrate the test sqlite database to the empty postgresql database (with coverage) Step `2` is done via a new script located at `scripts-dev/update_database`. The test sqlite database is extracted from a SyTest run, so that it can be considered as an actual homeserver's database with actual data in it.
Diffstat (limited to '.buildkite/sqlite-config.yaml')
-rw-r--r-- | .buildkite/sqlite-config.yaml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/.buildkite/sqlite-config.yaml b/.buildkite/sqlite-config.yaml new file mode 100644 index 0000000000..56503cc4ce --- /dev/null +++ b/.buildkite/sqlite-config.yaml @@ -0,0 +1,16 @@ +# Configuration file used for testing the 'synapse_port_db' script. +# Tells the 'update_database' script to connect to the test SQLite database to upgrade its +# schema and run background updates on it. +server_name: "test" + +report_stats: false + +database: + name: "sqlite3" + args: + database: ".buildkite/test_db.db" + +# Suppress the key server warning. +trusted_key_servers: + - server_name: "matrix.org" +suppress_key_server_warning: true |