Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

Synapse: add a build step to run with no optional deps #118

Merged
merged 1 commit into from
Jan 7, 2021
Merged
Changes from all commits
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
114 changes: 36 additions & 78 deletions synapse/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ x-yaml-aliases:
apt-get update && apt-get install -y xmlsec1
python -m pip install tox

retry: &retry_setup
automatic:
- exit_status: -1
limit: 2
- exit_status: 2
limit: 2

Comment on lines +13 to +19
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thought I might as well factor this out rather than add yet another copy.

env:
COVERALLS_REPO_TOKEN: wsJWOby6j0uCYFiCes3r0XauxO27mx8lD

Expand Down Expand Up @@ -117,12 +124,7 @@ steps:
upload: [ "_trial_temp/*/*.log" ]
# - matrix-org/coveralls#v1.0:
# parallel: "true"
retry:
automatic:
- exit_status: -1
limit: 2
- exit_status: 2
limit: 2
retry: *retry_setup

- label: ":python: 3.5 / SQLite"
command:
Expand All @@ -140,12 +142,7 @@ steps:
upload: [ "_trial_temp/*/*.log" ]
# - matrix-org/coveralls#v1.0:
# parallel: "true"
retry:
automatic:
- exit_status: -1
limit: 2
- exit_status: 2
limit: 2
retry: *retry_setup

- label: ":python: 3.6 / SQLite"
command:
Expand All @@ -163,12 +160,7 @@ steps:
upload: [ "_trial_temp/*/*.log" ]
# - matrix-org/coveralls#v1.0:
# parallel: "true"
retry:
automatic:
- exit_status: -1
limit: 2
- exit_status: 2
limit: 2
retry: *retry_setup

- label: ":python: 3.7 / SQLite"
command:
Expand All @@ -186,13 +178,24 @@ steps:
upload: [ "_trial_temp/*/*.log" ]
# - matrix-org/coveralls#v1.0:
# parallel: "true"
retry:
automatic:
- exit_status: -1
limit: 2
- exit_status: 2
limit: 2
retry: *retry_setup

- label: ":python: 3.8 / noextras / SQLite"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why py 3.8? no idea. it was chosen pretty arbitrarily.

command:
- *trial_setup
- "tox -e py38-noextras,combine"
env:
TRIAL_FLAGS: "-j 2"
plugins:
- docker#v3.7.0:
image: "python:3.8"
workdir: "/src"
mount-buildkite-agent: false
propagate-environment: true
- artifacts#v1.3.0:
upload: [ "_trial_temp/*/*.log" ]
retry: *retry_setup

- label: ":python: 3.5 / :postgres: 9.5"
agents:
queue: "medium"
Expand All @@ -216,12 +219,7 @@ steps:
upload: [ "_trial_temp/*/*.log" ]
# - matrix-org/coveralls#v1.0:
# parallel: "true"
retry:
automatic:
- exit_status: -1
limit: 2
- exit_status: 2
limit: 2
retry: *retry_setup

- label: ":python: 3.7 / :postgres: 11"
agents:
Expand All @@ -246,12 +244,7 @@ steps:
upload: [ "_trial_temp/*/*.log" ]
# - matrix-org/coveralls#v1.0:
# parallel: "true"
retry:
automatic:
- exit_status: -1
limit: 2
- exit_status: 2
limit: 2
retry: *retry_setup

- label: ":python: 3.8 / :postgres: 12"
agents:
Expand All @@ -276,12 +269,7 @@ steps:
upload: [ "_trial_temp/*/*.log" ]
# - matrix-org/coveralls#v1.0:
# parallel: "true"
retry:
automatic:
- exit_status: -1
limit: 2
- exit_status: 2
limit: 2
retry: *retry_setup

################################################################################
#
Expand Down Expand Up @@ -313,12 +301,7 @@ steps:
style: "error"
# - matrix-org/coveralls#v1.0:
# parallel: "true"
retry:
automatic:
- exit_status: -1
limit: 2
- exit_status: 2
limit: 2
retry: *retry_setup

- label: "SyTest - :python: 3.5 / :postgres: 9.6 / Monolith"
agents:
Expand Down Expand Up @@ -346,12 +329,7 @@ steps:
style: "error"
# - matrix-org/coveralls#v1.0:
# parallel: "true"
retry:
automatic:
- exit_status: -1
limit: 2
- exit_status: 2
limit: 2
retry: *retry_setup

- label: "SyTest - :python: 3.5 / :postgres: 9.6 / Workers"
agents:
Expand Down Expand Up @@ -383,12 +361,7 @@ steps:
style: "error"
# - matrix-org/coveralls#v1.0:
# parallel: "true"
retry:
automatic:
- exit_status: -1
limit: 2
- exit_status: 2
limit: 2
retry: *retry_setup


- label: "SyTest - :python: 3.8 / :postgres: 12 / Monolith"
Expand Down Expand Up @@ -417,12 +390,7 @@ steps:
style: "error"
# - matrix-org/coveralls#v1.0:
# parallel: "true"
retry:
automatic:
- exit_status: -1
limit: 2
- exit_status: 2
limit: 2
retry: *retry_setup

- label: "SyTest - :python: 3.7 / :postgres: 11 / Workers"
agents:
Expand Down Expand Up @@ -454,12 +422,7 @@ steps:
style: "error"
# - matrix-org/coveralls#v1.0:
# parallel: "true"
retry:
automatic:
- exit_status: -1
limit: 2
- exit_status: 2
limit: 2
retry: *retry_setup

- label: "SyTest - :python: 3.7 / :postgres: 11 / Workers / :redis: Redis"
agents:
Expand Down Expand Up @@ -492,12 +455,7 @@ steps:
style: "error"
# - matrix-org/coveralls#v1.0:
# parallel: "true"
retry:
automatic:
- exit_status: -1
limit: 2
- exit_status: 2
limit: 2
retry: *retry_setup

################################################################################
#
Expand Down