2021-04-09 03:54:30 -06:00
|
|
|
name: Tests
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: ["develop", "release-*"]
|
|
|
|
pull_request:
|
|
|
|
|
2021-07-22 04:35:06 -06:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
|
|
cancel-in-progress: true
|
2021-08-05 04:22:27 -06:00
|
|
|
|
2021-04-09 03:54:30 -06:00
|
|
|
jobs:
|
2022-03-01 12:47:02 -07:00
|
|
|
check-sampleconfig:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-python@v2
|
2022-04-20 10:33:20 -06:00
|
|
|
- run: pip install .
|
2022-03-02 11:00:26 -07:00
|
|
|
- run: scripts-dev/generate_sample_config.sh --check
|
2022-03-04 05:01:51 -07:00
|
|
|
- run: scripts-dev/config-lint.sh
|
2022-03-01 12:47:02 -07:00
|
|
|
|
2021-04-09 03:54:30 -06:00
|
|
|
lint:
|
2022-04-12 10:35:48 -06:00
|
|
|
uses: "matrix-org/backend-meta/.github/workflows/python-poetry-ci.yml@v1"
|
2022-04-27 07:03:44 -06:00
|
|
|
with:
|
|
|
|
typechecking-extras: "all"
|
2021-04-09 03:54:30 -06:00
|
|
|
|
|
|
|
lint-crlf:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Check line endings
|
|
|
|
run: scripts-dev/check_line_terminators.sh
|
|
|
|
|
|
|
|
lint-newsfile:
|
|
|
|
if: ${{ github.base_ref == 'develop' || contains(github.base_ref, 'release-') }}
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2021-05-26 07:14:43 -06:00
|
|
|
with:
|
|
|
|
ref: ${{ github.event.pull_request.head.sha }}
|
|
|
|
fetch-depth: 0
|
2021-04-09 03:54:30 -06:00
|
|
|
- uses: actions/setup-python@v2
|
2022-03-01 12:47:02 -07:00
|
|
|
- run: "pip install 'towncrier>=18.6.0rc1'"
|
2022-03-02 11:00:26 -07:00
|
|
|
- run: scripts-dev/check-newsfragment.sh
|
2021-08-10 05:15:10 -06:00
|
|
|
env:
|
|
|
|
PULL_REQUEST_NUMBER: ${{ github.event.number }}
|
2021-04-09 03:54:30 -06:00
|
|
|
|
|
|
|
# Dummy step to gate other tests on without repeating the whole list
|
|
|
|
linting-done:
|
2021-07-14 07:41:23 -06:00
|
|
|
if: ${{ !cancelled() }} # Run this even if prior jobs were skipped
|
2022-03-01 12:47:02 -07:00
|
|
|
needs: [lint, lint-crlf, lint-newsfile, check-sampleconfig]
|
2021-04-09 03:54:30 -06:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- run: "true"
|
|
|
|
|
|
|
|
trial:
|
2021-07-14 07:41:23 -06:00
|
|
|
if: ${{ !cancelled() && !failure() }} # Allow previous steps to be skipped, but not fail
|
2021-04-09 03:54:30 -06:00
|
|
|
needs: linting-done
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-12-21 12:37:04 -07:00
|
|
|
python-version: ["3.7", "3.8", "3.9", "3.10"]
|
2021-04-09 03:54:30 -06:00
|
|
|
database: ["sqlite"]
|
2022-04-12 10:41:21 -06:00
|
|
|
extras: ["all"]
|
2021-04-09 03:54:30 -06:00
|
|
|
include:
|
|
|
|
# Newest Python without optional deps
|
2021-10-05 05:43:04 -06:00
|
|
|
- python-version: "3.10"
|
2022-04-12 10:41:21 -06:00
|
|
|
extras: ""
|
2021-04-09 03:54:30 -06:00
|
|
|
|
|
|
|
# Oldest Python with PostgreSQL
|
2021-12-21 12:37:04 -07:00
|
|
|
- python-version: "3.7"
|
2021-04-09 03:54:30 -06:00
|
|
|
database: "postgres"
|
2021-12-21 12:37:04 -07:00
|
|
|
postgres-version: "10"
|
2022-04-12 10:41:21 -06:00
|
|
|
extras: "all"
|
2021-04-09 03:54:30 -06:00
|
|
|
|
2021-10-05 05:43:04 -06:00
|
|
|
# Newest Python with newest PostgreSQL
|
|
|
|
- python-version: "3.10"
|
2021-04-09 03:54:30 -06:00
|
|
|
database: "postgres"
|
2021-10-05 05:43:04 -06:00
|
|
|
postgres-version: "14"
|
2022-04-12 10:41:21 -06:00
|
|
|
extras: "all"
|
2021-04-09 03:54:30 -06:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- run: sudo apt-get -qq install xmlsec1
|
|
|
|
- name: Set up PostgreSQL ${{ matrix.postgres-version }}
|
|
|
|
if: ${{ matrix.postgres-version }}
|
|
|
|
run: |
|
|
|
|
docker run -d -p 5432:5432 \
|
|
|
|
-e POSTGRES_PASSWORD=postgres \
|
|
|
|
-e POSTGRES_INITDB_ARGS="--lc-collate C --lc-ctype C --encoding UTF8" \
|
|
|
|
postgres:${{ matrix.postgres-version }}
|
2022-04-12 10:41:21 -06:00
|
|
|
- uses: matrix-org/setup-python-poetry@v1
|
2021-04-09 03:54:30 -06:00
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
2022-04-12 10:41:21 -06:00
|
|
|
extras: ${{ matrix.extras }}
|
2021-04-09 03:54:30 -06:00
|
|
|
- name: Await PostgreSQL
|
|
|
|
if: ${{ matrix.postgres-version }}
|
|
|
|
timeout-minutes: 2
|
|
|
|
run: until pg_isready -h localhost; do sleep 1; done
|
2022-04-12 10:41:21 -06:00
|
|
|
- run: poetry run trial --jobs=2 tests
|
2021-04-09 03:54:30 -06:00
|
|
|
env:
|
|
|
|
SYNAPSE_POSTGRES: ${{ matrix.database == 'postgres' || '' }}
|
|
|
|
SYNAPSE_POSTGRES_HOST: localhost
|
|
|
|
SYNAPSE_POSTGRES_USER: postgres
|
|
|
|
SYNAPSE_POSTGRES_PASSWORD: postgres
|
|
|
|
- name: Dump logs
|
2021-10-12 14:09:49 -06:00
|
|
|
# Logs are most useful when the command fails, always include them.
|
|
|
|
if: ${{ always() }}
|
2021-04-09 03:54:30 -06:00
|
|
|
# Note: Dumps to workflow logs instead of using actions/upload-artifact
|
|
|
|
# This keeps logs colocated with failing jobs
|
|
|
|
# It also ignores find's exit code; this is a best effort affair
|
|
|
|
run: >-
|
|
|
|
find _trial_temp -name '*.log'
|
|
|
|
-exec echo "::group::{}" \;
|
|
|
|
-exec cat {} \;
|
|
|
|
-exec echo "::endgroup::" \;
|
|
|
|
|| true
|
|
|
|
|
|
|
|
trial-olddeps:
|
2022-04-12 04:50:11 -06:00
|
|
|
# Note: sqlite only; no postgres
|
2021-07-14 07:41:23 -06:00
|
|
|
if: ${{ !cancelled() && !failure() }} # Allow previous steps to be skipped, but not fail
|
2021-04-09 03:54:30 -06:00
|
|
|
needs: linting-done
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Test with old deps
|
2022-01-21 15:23:26 -07:00
|
|
|
uses: docker://ubuntu:focal # For old python and sqlite
|
2022-04-12 04:50:11 -06:00
|
|
|
# Note: focal seems to be using 3.8, but the oldest is 3.7?
|
|
|
|
# See https://github.com/matrix-org/synapse/issues/12343
|
2021-04-09 03:54:30 -06:00
|
|
|
with:
|
|
|
|
workdir: /github/workspace
|
2021-08-11 12:59:57 -06:00
|
|
|
entrypoint: .ci/scripts/test_old_deps.sh
|
2021-04-09 03:54:30 -06:00
|
|
|
- name: Dump logs
|
2021-10-12 14:09:49 -06:00
|
|
|
# Logs are most useful when the command fails, always include them.
|
|
|
|
if: ${{ always() }}
|
2021-04-09 03:54:30 -06:00
|
|
|
# Note: Dumps to workflow logs instead of using actions/upload-artifact
|
|
|
|
# This keeps logs colocated with failing jobs
|
|
|
|
# It also ignores find's exit code; this is a best effort affair
|
|
|
|
run: >-
|
|
|
|
find _trial_temp -name '*.log'
|
|
|
|
-exec echo "::group::{}" \;
|
|
|
|
-exec cat {} \;
|
|
|
|
-exec echo "::endgroup::" \;
|
|
|
|
|| true
|
|
|
|
|
|
|
|
trial-pypy:
|
|
|
|
# Very slow; only run if the branch name includes 'pypy'
|
2022-04-12 10:41:21 -06:00
|
|
|
# Note: sqlite only; no postgres. Completely untested since poetry move.
|
2021-07-14 07:41:23 -06:00
|
|
|
if: ${{ contains(github.ref, 'pypy') && !failure() && !cancelled() }}
|
2021-04-09 03:54:30 -06:00
|
|
|
needs: linting-done
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
2021-12-21 12:37:04 -07:00
|
|
|
python-version: ["pypy-3.7"]
|
2022-04-12 10:41:21 -06:00
|
|
|
extras: ["all"]
|
2021-04-09 03:54:30 -06:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2022-04-12 10:41:21 -06:00
|
|
|
# Install libs necessary for PyPy to build binary wheels for dependencies
|
2021-04-09 03:54:30 -06:00
|
|
|
- run: sudo apt-get -qq install xmlsec1 libxml2-dev libxslt-dev
|
2022-04-12 10:41:21 -06:00
|
|
|
- uses: matrix-org/setup-python-poetry@v1
|
2021-04-09 03:54:30 -06:00
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
2022-04-12 10:41:21 -06:00
|
|
|
extras: ${{ matrix.extras }}
|
|
|
|
- run: poetry run trial --jobs=2 tests
|
2021-04-09 03:54:30 -06:00
|
|
|
- name: Dump logs
|
2021-10-12 14:09:49 -06:00
|
|
|
# Logs are most useful when the command fails, always include them.
|
|
|
|
if: ${{ always() }}
|
2021-04-09 03:54:30 -06:00
|
|
|
# Note: Dumps to workflow logs instead of using actions/upload-artifact
|
|
|
|
# This keeps logs colocated with failing jobs
|
|
|
|
# It also ignores find's exit code; this is a best effort affair
|
|
|
|
run: >-
|
|
|
|
find _trial_temp -name '*.log'
|
|
|
|
-exec echo "::group::{}" \;
|
|
|
|
-exec cat {} \;
|
|
|
|
-exec echo "::endgroup::" \;
|
|
|
|
|| true
|
|
|
|
|
|
|
|
sytest:
|
2021-07-14 07:41:23 -06:00
|
|
|
if: ${{ !failure() && !cancelled() }}
|
2021-04-09 03:54:30 -06:00
|
|
|
needs: linting-done
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
|
|
image: matrixdotorg/sytest-synapse:${{ matrix.sytest-tag }}
|
|
|
|
volumes:
|
|
|
|
- ${{ github.workspace }}:/src
|
|
|
|
env:
|
2021-09-20 10:35:16 -06:00
|
|
|
SYTEST_BRANCH: ${{ github.head_ref }}
|
2021-04-09 03:54:30 -06:00
|
|
|
POSTGRES: ${{ matrix.postgres && 1}}
|
|
|
|
MULTI_POSTGRES: ${{ (matrix.postgres == 'multi-postgres') && 1}}
|
|
|
|
WORKERS: ${{ matrix.workers && 1 }}
|
|
|
|
REDIS: ${{ matrix.redis && 1 }}
|
|
|
|
BLACKLIST: ${{ matrix.workers && 'synapse-blacklist-with-workers' }}
|
2021-08-11 13:08:48 -06:00
|
|
|
TOP: ${{ github.workspace }}
|
2021-04-09 03:54:30 -06:00
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
include:
|
2022-01-21 15:23:26 -07:00
|
|
|
- sytest-tag: focal
|
2021-04-09 03:54:30 -06:00
|
|
|
|
2022-01-21 15:23:26 -07:00
|
|
|
- sytest-tag: focal
|
2021-04-09 03:54:30 -06:00
|
|
|
postgres: postgres
|
|
|
|
|
|
|
|
- sytest-tag: testing
|
|
|
|
postgres: postgres
|
|
|
|
|
2022-01-21 15:23:26 -07:00
|
|
|
- sytest-tag: focal
|
2021-04-09 03:54:30 -06:00
|
|
|
postgres: multi-postgres
|
|
|
|
workers: workers
|
|
|
|
|
|
|
|
- sytest-tag: buster
|
|
|
|
postgres: multi-postgres
|
|
|
|
workers: workers
|
|
|
|
|
|
|
|
- sytest-tag: buster
|
|
|
|
postgres: postgres
|
|
|
|
workers: workers
|
|
|
|
redis: redis
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Prepare test blacklist
|
2021-08-11 12:59:57 -06:00
|
|
|
run: cat sytest-blacklist .ci/worker-blacklist > synapse-blacklist-with-workers
|
2021-04-09 03:54:30 -06:00
|
|
|
- name: Run SyTest
|
|
|
|
run: /bootstrap.sh synapse
|
|
|
|
working-directory: /src
|
2021-06-02 10:10:37 -06:00
|
|
|
- name: Summarise results.tap
|
2021-04-09 03:54:30 -06:00
|
|
|
if: ${{ always() }}
|
2021-06-02 10:10:37 -06:00
|
|
|
run: /sytest/scripts/tap_to_gha.pl /logs/results.tap
|
2021-04-09 03:54:30 -06:00
|
|
|
- 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*
|
|
|
|
|
2021-10-18 09:14:12 -06:00
|
|
|
export-data:
|
|
|
|
if: ${{ !failure() && !cancelled() }} # Allow previous steps to be skipped, but not fail
|
|
|
|
needs: [linting-done, portdb]
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
TOP: ${{ github.workspace }}
|
|
|
|
|
|
|
|
services:
|
|
|
|
postgres:
|
|
|
|
image: postgres
|
|
|
|
ports:
|
|
|
|
- 5432:5432
|
|
|
|
env:
|
|
|
|
POSTGRES_PASSWORD: "postgres"
|
|
|
|
POSTGRES_INITDB_ARGS: "--lc-collate C --lc-ctype C --encoding UTF8"
|
|
|
|
options: >-
|
|
|
|
--health-cmd pg_isready
|
|
|
|
--health-interval 10s
|
|
|
|
--health-timeout 5s
|
|
|
|
--health-retries 5
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- run: sudo apt-get -qq install xmlsec1
|
2022-04-08 13:18:54 -06:00
|
|
|
- uses: matrix-org/setup-python-poetry@v1
|
2021-10-18 09:14:12 -06:00
|
|
|
with:
|
2022-04-08 13:18:54 -06:00
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
extras: "postgres"
|
2021-10-18 09:14:12 -06:00
|
|
|
- run: .ci/scripts/test_export_data_command.sh
|
|
|
|
|
2021-04-09 03:54:30 -06:00
|
|
|
portdb:
|
2021-07-14 07:41:23 -06:00
|
|
|
if: ${{ !failure() && !cancelled() }} # Allow previous steps to be skipped, but not fail
|
2021-04-09 03:54:30 -06:00
|
|
|
needs: linting-done
|
|
|
|
runs-on: ubuntu-latest
|
2021-08-12 03:41:01 -06:00
|
|
|
env:
|
|
|
|
TOP: ${{ github.workspace }}
|
2021-04-09 03:54:30 -06:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
include:
|
2021-12-21 12:37:04 -07:00
|
|
|
- python-version: "3.7"
|
|
|
|
postgres-version: "10"
|
2021-04-09 03:54:30 -06:00
|
|
|
|
2021-10-05 05:43:04 -06:00
|
|
|
- python-version: "3.10"
|
|
|
|
postgres-version: "14"
|
2021-04-09 03:54:30 -06:00
|
|
|
|
|
|
|
services:
|
|
|
|
postgres:
|
|
|
|
image: postgres:${{ matrix.postgres-version }}
|
|
|
|
ports:
|
|
|
|
- 5432:5432
|
|
|
|
env:
|
|
|
|
POSTGRES_PASSWORD: "postgres"
|
|
|
|
POSTGRES_INITDB_ARGS: "--lc-collate C --lc-ctype C --encoding UTF8"
|
|
|
|
options: >-
|
|
|
|
--health-cmd pg_isready
|
|
|
|
--health-interval 10s
|
|
|
|
--health-timeout 5s
|
|
|
|
--health-retries 5
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- run: sudo apt-get -qq install xmlsec1
|
2022-04-08 05:00:05 -06:00
|
|
|
- uses: matrix-org/setup-python-poetry@v1
|
2021-04-09 03:54:30 -06:00
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
2022-04-08 05:00:05 -06:00
|
|
|
extras: "postgres"
|
2021-08-11 12:59:57 -06:00
|
|
|
- run: .ci/scripts/test_synapse_port_db.sh
|
2021-04-09 03:54:30 -06:00
|
|
|
|
|
|
|
complement:
|
2022-05-31 07:02:00 -06:00
|
|
|
if: "${{ !failure() && !cancelled() }}"
|
2021-04-09 03:54:30 -06:00
|
|
|
needs: linting-done
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2022-01-25 08:05:22 -07:00
|
|
|
# The path is set via a file given by $GITHUB_PATH. We need both Go 1.17 and GOPATH on the path to run Complement.
|
|
|
|
# See https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-system-path
|
|
|
|
- name: "Set Go Version"
|
|
|
|
run: |
|
|
|
|
# Add Go 1.17 to the PATH: see https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-Readme.md#environment-variables-2
|
|
|
|
echo "$GOROOT_1_17_X64/bin" >> $GITHUB_PATH
|
|
|
|
# Add the Go path to the PATH: We need this so we can call gotestfmt
|
|
|
|
echo "~/go/bin" >> $GITHUB_PATH
|
|
|
|
|
|
|
|
- name: "Install Complement Dependencies"
|
|
|
|
run: |
|
|
|
|
sudo apt-get update && sudo apt-get install -y libolm3 libolm-dev
|
|
|
|
go get -v github.com/haveyoudebuggedit/gotestfmt/v2/cmd/gotestfmt@latest
|
|
|
|
|
2021-04-09 03:54:30 -06:00
|
|
|
- name: Run actions/checkout@v2 for synapse
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
path: synapse
|
|
|
|
|
2021-06-11 06:17:17 -06:00
|
|
|
# Attempt to check out the same branch of Complement as the PR. If it
|
2022-02-11 07:43:34 -07:00
|
|
|
# doesn't exist, fallback to HEAD.
|
2021-06-11 06:17:17 -06:00
|
|
|
- name: Checkout complement
|
2022-05-31 07:02:00 -06:00
|
|
|
run: synapse/.ci/scripts/checkout_complement.sh
|
|
|
|
|
|
|
|
- run: |
|
|
|
|
set -o pipefail
|
|
|
|
COMPLEMENT_DIR=`pwd`/complement synapse/scripts-dev/complement.sh -json 2>&1 | gotestfmt
|
2021-06-11 06:17:17 -06:00
|
|
|
shell: bash
|
2022-05-31 07:02:00 -06:00
|
|
|
name: Run Complement Tests
|
|
|
|
|
|
|
|
# We only run the workers tests on `develop` for now, because they're too slow to wait for on PRs.
|
|
|
|
# Sadly, you can't have an `if` condition on the value of a matrix, so this is a temporary, separate job for now.
|
|
|
|
# GitHub Actions doesn't support YAML anchors, so it's full-on duplication for now.
|
|
|
|
complement-developonly:
|
|
|
|
if: "${{ !failure() && !cancelled() && (github.ref == 'refs/heads/develop') }}"
|
|
|
|
needs: linting-done
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
# The path is set via a file given by $GITHUB_PATH. We need both Go 1.17 and GOPATH on the path to run Complement.
|
|
|
|
# See https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#adding-a-system-path
|
|
|
|
- name: "Set Go Version"
|
2021-06-11 06:17:17 -06:00
|
|
|
run: |
|
2022-05-31 07:02:00 -06:00
|
|
|
# Add Go 1.17 to the PATH: see https://github.com/actions/virtual-environments/blob/main/images/linux/Ubuntu2004-Readme.md#environment-variables-2
|
|
|
|
echo "$GOROOT_1_17_X64/bin" >> $GITHUB_PATH
|
|
|
|
# Add the Go path to the PATH: We need this so we can call gotestfmt
|
|
|
|
echo "~/go/bin" >> $GITHUB_PATH
|
|
|
|
|
|
|
|
- name: "Install Complement Dependencies"
|
|
|
|
run: |
|
|
|
|
sudo apt-get update && sudo apt-get install -y libolm3 libolm-dev
|
|
|
|
go get -v github.com/haveyoudebuggedit/gotestfmt/v2/cmd/gotestfmt@latest
|
|
|
|
|
|
|
|
- name: Run actions/checkout@v2 for synapse
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
path: synapse
|
|
|
|
|
|
|
|
# Attempt to check out the same branch of Complement as the PR. If it
|
|
|
|
# doesn't exist, fallback to HEAD.
|
|
|
|
- name: Checkout complement
|
2022-06-01 08:57:09 -06:00
|
|
|
run: synapse/.ci/scripts/checkout_complement.sh
|
2021-04-09 03:54:30 -06:00
|
|
|
|
2022-01-25 08:05:22 -07:00
|
|
|
- run: |
|
|
|
|
set -o pipefail
|
2022-05-31 07:02:00 -06:00
|
|
|
WORKERS=1 COMPLEMENT_DIR=`pwd`/complement synapse/scripts-dev/complement.sh -json 2>&1 | gotestfmt
|
2022-01-10 04:46:40 -07:00
|
|
|
shell: bash
|
2022-01-25 08:05:22 -07:00
|
|
|
name: Run Complement Tests
|
2021-07-20 04:41:19 -06:00
|
|
|
|
|
|
|
# a job which marks all the other jobs as complete, thus allowing PRs to be merged.
|
|
|
|
tests-done:
|
2021-07-22 04:10:30 -06:00
|
|
|
if: ${{ always() }}
|
2021-07-20 04:41:19 -06:00
|
|
|
needs:
|
2022-03-07 05:24:06 -07:00
|
|
|
- check-sampleconfig
|
2021-07-22 04:10:30 -06:00
|
|
|
- lint
|
|
|
|
- lint-crlf
|
|
|
|
- lint-newsfile
|
2021-07-20 04:41:19 -06:00
|
|
|
- trial
|
|
|
|
- trial-olddeps
|
|
|
|
- sytest
|
2022-03-07 05:24:06 -07:00
|
|
|
- export-data
|
2021-07-20 04:41:19 -06:00
|
|
|
- portdb
|
|
|
|
- complement
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-03-07 05:24:06 -07:00
|
|
|
- uses: matrix-org/done-action@v2
|
|
|
|
with:
|
|
|
|
needs: ${{ toJSON(needs) }}
|
|
|
|
|
|
|
|
# The newsfile lint may be skipped on non PR builds
|
|
|
|
skippable:
|
|
|
|
lint-newsfile
|