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

Commit 7d33ba7

Browse files
committed
Merge remote-tracking branch 'origin/release-v1.36' into hs/hacked-together-event-cache
2 parents dacc395 + 1c8045f commit 7d33ba7

File tree

233 files changed

+11287
-4938
lines changed

Some content is hidden

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

233 files changed

+11287
-4938
lines changed

.buildkite/postgres-config.yaml

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

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

88
report_stats: false
99

@@ -16,6 +16,4 @@ database:
1616
database: synapse
1717

1818
# Suppress the key server warning.
19-
trusted_key_servers:
20-
- server_name: "matrix.org"
21-
suppress_key_server_warning: true
19+
trusted_key_servers: []

.buildkite/scripts/test_synapse_port_db.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ scripts-dev/update_database --database-config .buildkite/sqlite-config.yaml
3333
echo "+++ Run synapse_port_db against test database"
3434
coverage run scripts/synapse_port_db --sqlite-database .buildkite/test_db.db --postgres-config .buildkite/postgres-config.yaml
3535

36+
# We should be able to run twice against the same database.
37+
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
39+
3640
#####
3741

3842
# Now do the same again, on an empty database.

.buildkite/sqlite-config.yaml

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

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

88
report_stats: false
99

@@ -13,6 +13,4 @@ database:
1313
database: ".buildkite/test_db.db"
1414

1515
# Suppress the key server warning.
16-
trusted_key_servers:
17-
- server_name: "matrix.org"
18-
suppress_key_server_warning: true
16+
trusted_key_servers: []

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ workflows:
4141
- dockerhubuploadlatest:
4242
filters:
4343
branches:
44-
only: master
44+
only: [ master, main ]
4545

4646
commands:
4747
docker_prepare:

.github/workflows/docs.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Deploy the documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- develop
7+
8+
workflow_dispatch:
9+
10+
jobs:
11+
pages:
12+
name: GitHub Pages
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v2
16+
17+
- name: Setup mdbook
18+
uses: peaceiris/actions-mdbook@4b5ef36b314c2599664ca107bb8c02412548d79d # v1.1.14
19+
with:
20+
mdbook-version: '0.4.9'
21+
22+
- name: Build the documentation
23+
run: mdbook build
24+
25+
- name: Deploy latest documentation
26+
uses: peaceiris/actions-gh-pages@068dc23d9710f1ba62e86896f84735d869951305 # v3.8.0
27+
with:
28+
github_token: ${{ secrets.GITHUB_TOKEN }}
29+
keep_files: true
30+
publish_dir: ./book
31+
destination_dir: ./develop

.github/workflows/tests.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,13 @@ jobs:
3434
if: ${{ github.base_ref == 'develop' || contains(github.base_ref, 'release-') }}
3535
runs-on: ubuntu-latest
3636
steps:
37+
# Note: This and the script can be simplified once we drop Buildkite. See:
38+
# https://github.com/actions/checkout/issues/266#issuecomment-638346893
39+
# https://github.com/actions/checkout/issues/416
3740
- uses: actions/checkout@v2
41+
with:
42+
ref: ${{ github.event.pull_request.head.sha }}
43+
fetch-depth: 0
3844
- uses: actions/setup-python@v2
3945
- run: pip install tox
4046
- name: Patch Buildkite-specific test script
@@ -226,9 +232,9 @@ jobs:
226232
- name: Run SyTest
227233
run: /bootstrap.sh synapse
228234
working-directory: /src
229-
- name: Dump results.tap
235+
- name: Summarise results.tap
230236
if: ${{ always() }}
231-
run: cat /logs/results.tap
237+
run: /sytest/scripts/tap_to_gha.pl /logs/results.tap
232238
- name: Upload SyTest logs
233239
uses: actions/upload-artifact@v2
234240
if: ${{ always() }}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,6 @@ __pycache__/
4646
/docs/build/
4747
/htmlcov
4848
/pip-wheel-metadata/
49+
50+
# docs
51+
book/

CHANGES.md

Lines changed: 267 additions & 5 deletions

INSTALL.md

Lines changed: 7 additions & 5 deletions

MANIFEST.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ exclude mypy.ini
4040
exclude sytest-blacklist
4141
exclude test_postgresql.sh
4242

43+
include book.toml
4344
include pyproject.toml
4445
recursive-include changelog.d *
4546

0 commit comments

Comments
 (0)