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

Run a nightly CI build against Twisted trunk. #10651

Merged
merged 13 commits into from
Aug 23, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
CI against twisted trunk
  • Loading branch information
richvdh committed Aug 18, 2021
commit 16a017f4614827cc807b36bde817949d77180983
8 changes: 8 additions & 0 deletions .ci/patch_for_twisted_trunk.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh

# replaces the dependency on Twisted in `python_dependencies` with trunk.

set -e
cd "$(dirname "$0")"/..

sed -i -e 's#"Twisted.*"#"Twisted @ git+https://github.com/twisted/twisted"#' synapse/python_dependencies.py
29 changes: 24 additions & 5 deletions .github/workflows/twisted_trunk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:

workflow_dispatch:

push:

jobs:
mypy:
runs-on: ubuntu-latest
Expand All @@ -14,9 +16,8 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- run: |
.ci/patch_for_twisted_trunk.sh
pip install tox
tox --notest -e mypy
.tox/env/mypy/bin/pip install git+https://github.com/twisted/twisted
tox -e mypy

trial:
Expand All @@ -29,9 +30,8 @@ jobs:
python-version: 3.6

- run: |
.ci/patch_for_twisted_trunk.sh
pip install tox
tox --notest -e py
.tox/env/mypy/bin/pip install git+https://github.com/twisted/twisted
tox -e py

- name: Dump logs
Expand All @@ -48,8 +48,27 @@ jobs:
sytest:
runs-on: ubuntu-latest
container:
image: matrixdotorg/sytest-synapse:bionic
image: matrixdotorg/sytest-synapse:bullseye
volumes:
- ${{ github.workspace }}:/src

steps:
- uses: actions/checkout@v2
- name: Patch dependencies
run: .ci/patch_for_twisted_trunk.sh
working-directory: /src
- name: Run SyTest
run: /bootstrap.sh synapse
working-directory: /src
- name: Summarise results.tap
if: ${{ always() }}
run: /sytest/scripts/tap_to_gha.pl /logs/results.tap
- name: Upload SyTest logs
uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: Sytest Logs - ${{ job.status }} - (${{ join(matrix.*, ', ') }})
path: |
/logs/results.tap
/logs/**/*.log*