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

Commit 09a0b67

Browse files
committed
Merge remote-tracking branch 'synapse/develop' into fix-3599
2 parents 40ee652 + 9e5a429 commit 09a0b67

File tree

747 files changed

+45786
-21356
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

747 files changed

+45786
-21356
lines changed

.buildkite/.env

Lines changed: 0 additions & 13 deletions
This file was deleted.

.buildkite/merge_base_branch.sh

Lines changed: 0 additions & 35 deletions
This file was deleted.

.buildkite/worker-blacklist

Lines changed: 0 additions & 10 deletions
This file was deleted.

.ci/patch_for_twisted_trunk.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/sh
2+
3+
# replaces the dependency on Twisted in `python_dependencies` with trunk.
4+
5+
set -e
6+
cd "$(dirname "$0")"/..
7+
8+
sed -i -e 's#"Twisted.*"#"Twisted @ git+https://github.com/twisted/twisted"#' synapse/python_dependencies.py

.buildkite/postgres-config.yaml renamed to .ci/postgres-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
# CI's Docker setup at the point where this file is considered.
44
server_name: "localhost:8800"
55

6-
signing_key_path: ".buildkite/test.signing.key"
6+
signing_key_path: ".ci/test.signing.key"
77

88
report_stats: false
99

1010
database:
1111
name: "psycopg2"
1212
args:
1313
user: postgres
14-
host: postgres
14+
host: localhost
1515
password: postgres
1616
database: synapse
1717

.buildkite/scripts/postgres_exec.py renamed to .ci/scripts/postgres_exec.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# We use "postgres" as a database because it's bound to exist and the "synapse" one
2424
# doesn't exist yet.
2525
db_conn = psycopg2.connect(
26-
user="postgres", host="postgres", password="postgres", dbname="postgres"
26+
user="postgres", host="localhost", password="postgres", dbname="postgres"
2727
)
2828
db_conn.autocommit = True
2929
cur = db_conn.cursor()

.buildkite/scripts/test_old_deps.sh renamed to .ci/scripts/test_old_deps.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env bash
22

3-
# this script is run by buildkite in a plain `bionic` container; it installs the
3+
# this script is run by GitHub Actions in a plain `bionic` container; it installs the
44
# minimal requirements for tox and hands over to the py3-old tox environment.
55

66
set -ex

.buildkite/scripts/test_synapse_port_db.sh renamed to .ci/scripts/test_synapse_port_db.sh

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,22 @@ pip install -e .
2020
echo "--- Generate the signing key"
2121

2222
# Generate the server's signing key.
23-
python -m synapse.app.homeserver --generate-keys -c .buildkite/sqlite-config.yaml
23+
python -m synapse.app.homeserver --generate-keys -c .ci/sqlite-config.yaml
2424

2525
echo "--- Prepare test database"
2626

2727
# Make sure the SQLite3 database is using the latest schema and has no pending background update.
28-
scripts-dev/update_database --database-config .buildkite/sqlite-config.yaml
28+
scripts-dev/update_database --database-config .ci/sqlite-config.yaml
2929

3030
# Create the PostgreSQL database.
31-
./.buildkite/scripts/postgres_exec.py "CREATE DATABASE synapse"
31+
.ci/scripts/postgres_exec.py "CREATE DATABASE synapse"
3232

3333
echo "+++ Run synapse_port_db against test database"
34-
coverage run scripts/synapse_port_db --sqlite-database .buildkite/test_db.db --postgres-config .buildkite/postgres-config.yaml
34+
coverage run scripts/synapse_port_db --sqlite-database .ci/test_db.db --postgres-config .ci/postgres-config.yaml
3535

3636
# We should be able to run twice against the same database.
3737
echo "+++ Run synapse_port_db a second time"
38-
coverage run scripts/synapse_port_db --sqlite-database .buildkite/test_db.db --postgres-config .buildkite/postgres-config.yaml
38+
coverage run scripts/synapse_port_db --sqlite-database .ci/test_db.db --postgres-config .ci/postgres-config.yaml
3939

4040
#####
4141

@@ -44,14 +44,14 @@ coverage run scripts/synapse_port_db --sqlite-database .buildkite/test_db.db --p
4444
echo "--- Prepare empty SQLite database"
4545

4646
# we do this by deleting the sqlite db, and then doing the same again.
47-
rm .buildkite/test_db.db
47+
rm .ci/test_db.db
4848

49-
scripts-dev/update_database --database-config .buildkite/sqlite-config.yaml
49+
scripts-dev/update_database --database-config .ci/sqlite-config.yaml
5050

5151
# re-create the PostgreSQL database.
52-
./.buildkite/scripts/postgres_exec.py \
52+
.ci/scripts/postgres_exec.py \
5353
"DROP DATABASE synapse" \
5454
"CREATE DATABASE synapse"
5555

5656
echo "+++ Run synapse_port_db against empty database"
57-
coverage run scripts/synapse_port_db --sqlite-database .buildkite/test_db.db --postgres-config .buildkite/postgres-config.yaml
57+
coverage run scripts/synapse_port_db --sqlite-database .ci/test_db.db --postgres-config .ci/postgres-config.yaml

.buildkite/sqlite-config.yaml renamed to .ci/sqlite-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
# schema and run background updates on it.
44
server_name: "localhost:8800"
55

6-
signing_key_path: ".buildkite/test.signing.key"
6+
signing_key_path: ".ci/test.signing.key"
77

88
report_stats: false
99

1010
database:
1111
name: "sqlite3"
1212
args:
13-
database: ".buildkite/test_db.db"
13+
database: ".ci/test_db.db"
1414

1515
# Suppress the key server warning.
1616
trusted_key_servers: []
File renamed without changes.

0 commit comments

Comments
 (0)