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

Commit

Permalink
Remove dockerfile-pgtests (#12336)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Robertson authored Mar 31, 2022
1 parent 5a32ec5 commit 15cdcf8
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 89 deletions.
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.

0 comments on commit 15cdcf8

Please sign in to comment.