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

Commit 8c95839

Browse files
committed
Merge remote-tracking branch 'origin/develop' into rav/sw1v-hotfixes
2 parents abe6a29 + 4379617 commit 8c95839

File tree

352 files changed

+13158
-6298
lines changed

Some content is hidden

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

352 files changed

+13158
-6298
lines changed

.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
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
title: CI run against Twisted trunk is failing
3+
---
4+
See https://github.com/{{env.GITHUB_REPOSITORY}}/actions/runs/{{env.GITHUB_RUN_ID}}

.ci/worker-blacklist

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,2 @@
11
# This file serves as a blacklist for SyTest tests that we expect will fail in
22
# Synapse when run under worker mode. For more details, see sytest-blacklist.
3-
4-
Can re-join room if re-invited
5-
6-
# new failures as of https://github.com/matrix-org/sytest/pull/732
7-
Device list doesn't change if remote server is down
8-
9-
# https://buildkite.com/matrix-dot-org/synapse/builds/6134#6f67bf47-e234-474d-80e8-c6e1868b15c5
10-
Server correctly handles incoming m.device_list_update
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
name: Twisted Trunk
2+
3+
on:
4+
schedule:
5+
- cron: 0 8 * * *
6+
7+
workflow_dispatch:
8+
9+
jobs:
10+
mypy:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-python@v2
16+
- run: .ci/patch_for_twisted_trunk.sh
17+
- run: pip install tox
18+
- run: tox -e mypy
19+
20+
trial:
21+
runs-on: ubuntu-latest
22+
23+
steps:
24+
- uses: actions/checkout@v2
25+
- run: sudo apt-get -qq install xmlsec1
26+
- uses: actions/setup-python@v2
27+
with:
28+
python-version: 3.6
29+
- run: .ci/patch_for_twisted_trunk.sh
30+
- run: pip install tox
31+
- run: tox -e py
32+
env:
33+
TRIAL_FLAGS: "--jobs=2"
34+
35+
- name: Dump logs
36+
# Note: Dumps to workflow logs instead of using actions/upload-artifact
37+
# This keeps logs colocated with failing jobs
38+
# It also ignores find's exit code; this is a best effort affair
39+
run: >-
40+
find _trial_temp -name '*.log'
41+
-exec echo "::group::{}" \;
42+
-exec cat {} \;
43+
-exec echo "::endgroup::" \;
44+
|| true
45+
46+
sytest:
47+
runs-on: ubuntu-latest
48+
container:
49+
image: matrixdotorg/sytest-synapse:buster
50+
volumes:
51+
- ${{ github.workspace }}:/src
52+
53+
steps:
54+
- uses: actions/checkout@v2
55+
- name: Patch dependencies
56+
run: .ci/patch_for_twisted_trunk.sh
57+
working-directory: /src
58+
- name: Run SyTest
59+
run: /bootstrap.sh synapse
60+
working-directory: /src
61+
- name: Summarise results.tap
62+
if: ${{ always() }}
63+
run: /sytest/scripts/tap_to_gha.pl /logs/results.tap
64+
- name: Upload SyTest logs
65+
uses: actions/upload-artifact@v2
66+
if: ${{ always() }}
67+
with:
68+
name: Sytest Logs - ${{ job.status }} - (${{ join(matrix.*, ', ') }})
69+
path: |
70+
/logs/results.tap
71+
/logs/**/*.log*
72+
73+
# open an issue if the build fails, so we know about it.
74+
open-issue:
75+
if: failure()
76+
needs:
77+
- mypy
78+
- trial
79+
- sytest
80+
81+
runs-on: ubuntu-latest
82+
83+
steps:
84+
- uses: actions/checkout@v2
85+
- uses: JasonEtco/create-an-issue@5d9504915f79f9cc6d791934b8ef34f2353dd74d # v2.5.0, 2020-12-06
86+
env:
87+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
88+
with:
89+
update_existing: true
90+
filename: .ci/twisted_trunk_build_failed_issue_template.md

CHANGES.md

Lines changed: 215 additions & 4 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)