forked-synapse/synapse/storage
Brendan Abolivier 14504ad573
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.
2019-10-28 17:45:32 +00:00
..
data_stores Convert EventContext to attrs (#6218) 2019-10-28 14:29:55 +02:00
engines Merge pull request #6156 from matrix-org/erikj/postgres_any 2019-10-10 16:41:36 +01:00
schema Move schema delta files to the correct data store. 2019-10-24 16:45:03 +01:00
util Remove unnecessary parentheses around return statements (#5931) 2019-08-30 16:28:26 +01:00
__init__.py Move README into synapse/storage/__init__.py 2019-10-22 17:59:31 +01:00
_base.py Fix SQLite take 2 2019-10-10 16:19:40 +01:00
background_updates.py Add CI for synapse_port_db (#6140) 2019-10-28 17:45:32 +00:00
keys.py Move storage classes into a main "data store". 2019-10-21 16:05:06 +01:00
prepare_database.py Clean up prepare_database.py a bit and add comments 2019-10-22 18:43:31 +01:00
presence.py Move storage classes into a main "data store". 2019-10-21 16:05:06 +01:00
push_rule.py Move storage classes into a main "data store". 2019-10-21 16:05:06 +01:00
relations.py Move storage classes into a main "data store". 2019-10-21 16:05:06 +01:00
roommember.py Move storage classes into a main "data store". 2019-10-21 16:05:06 +01:00
state.py Move storage classes into a main "data store". 2019-10-21 16:05:06 +01:00