Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Remove dockerfile-pgtests #12336

Merged
merged 2 commits into from
Mar 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog.d/12336.misc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove the (broadly unused, dev-only) dockerfile for pg tests.
30 changes: 0 additions & 30 deletions docker/Dockerfile-pgtests

This file was deleted.

19 changes: 0 additions & 19 deletions docker/run_pg_tests.sh

This file was deleted.

21 changes: 0 additions & 21 deletions docs/development/contributing_guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,27 +220,6 @@ export SYNAPSE_POSTGRES_PASSWORD=mydevenvpassword
trial
```

#### Prebuilt container

Since configuring PostgreSQL can be fiddly, we can make use of a pre-made
Docker container to set up PostgreSQL and run our tests for us. To do so, run

```shell
scripts-dev/test_postgresql.sh
```

Any extra arguments to the script will be passed to `tox` and then to `trial`,
so we can run a specific test in this container with e.g.

```shell
scripts-dev/test_postgresql.sh tests.replication.test_sharded_event_persister.EventPersisterShardTestCase
```

The container creates a folder in your Synapse checkout called
`.tox-pg-container` and uses this as a tox environment. The output of any
`trial` runs goes into `_trial_temp` in your synapse source directory — the same
as running `trial` directly on your host machine.

## Run the integration tests ([Sytest](https://github.com/matrix-org/sytest)).

The integration tests are a more comprehensive suite of tests. They
Expand Down
19 changes: 0 additions & 19 deletions scripts-dev/test_postgresql.sh

This file was deleted.