-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Remove references to BuildKite in favour of GitHub Actions #10573
Changes from all commits
8da9e3c
03fb99a
3d67b8c
c5988a8
58e5da5
c0ebdfc
b924a5c
33ef86a
6fcc3e0
cb5976e
92a8e68
314a739
74fcd5a
8785289
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,20 +38,15 @@ jobs: | |
if: ${{ github.base_ref == 'develop' || contains(github.base_ref, 'release-') }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Note: This and the script can be simplified once we drop Buildkite. See: | ||
# https://github.com/actions/checkout/issues/266#issuecomment-638346893 | ||
# https://github.com/actions/checkout/issues/416 | ||
- uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
fetch-depth: 0 | ||
- uses: actions/setup-python@v2 | ||
- run: pip install tox | ||
- name: Patch Buildkite-specific test script | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wasn't sure what @callahad had in mind here (see line 41 above) for simplifying the check-newsfragment script. Aside: I can't seem to leave a comment on line 41 because(?) it's not part of the diff hunk? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
welcome to github PR review! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ... of course you can make it part of the diff hunk by removing the comment about Buildkite :). I think you've done is all that was needed here. I'm not sure how it relates to the issues about checkout though. I guess they are meant to be a separate comment. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please can you remove the comment at line 41? |
||
run: | | ||
sed -i -e 's/\$BUILDKITE_PULL_REQUEST/${{ github.event.number }}/' \ | ||
scripts-dev/check-newsfragment | ||
- run: scripts-dev/check-newsfragment | ||
env: | ||
PULL_REQUEST_NUMBER: ${{ github.event.number }} | ||
DMRobertson marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
lint-sdist: | ||
runs-on: ubuntu-latest | ||
|
@@ -144,7 +139,7 @@ jobs: | |
uses: docker://ubuntu:bionic # For old python and sqlite | ||
with: | ||
workdir: /github/workspace | ||
entrypoint: .buildkite/scripts/test_old_deps.sh | ||
entrypoint: .ci/scripts/test_old_deps.sh | ||
env: | ||
TRIAL_FLAGS: "--jobs=2" | ||
- name: Dump logs | ||
|
@@ -197,12 +192,12 @@ jobs: | |
volumes: | ||
- ${{ github.workspace }}:/src | ||
env: | ||
BUILDKITE_BRANCH: ${{ github.head_ref }} | ||
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' }} | ||
TOP: ${{ github.workspace }} | ||
|
||
strategy: | ||
fail-fast: false | ||
|
@@ -232,7 +227,7 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Prepare test blacklist | ||
run: cat sytest-blacklist .buildkite/worker-blacklist > synapse-blacklist-with-workers | ||
run: cat sytest-blacklist .ci/worker-blacklist > synapse-blacklist-with-workers | ||
- name: Run SyTest | ||
run: /bootstrap.sh synapse | ||
working-directory: /src | ||
|
@@ -252,6 +247,8 @@ jobs: | |
if: ${{ !failure() && !cancelled() }} # Allow previous steps to be skipped, but not fail | ||
needs: linting-done | ||
runs-on: ubuntu-latest | ||
env: | ||
TOP: ${{ github.workspace }} | ||
strategy: | ||
matrix: | ||
include: | ||
|
@@ -281,13 +278,7 @@ jobs: | |
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Patch Buildkite-specific test scripts | ||
run: | | ||
sed -i -e 's/host="postgres"/host="localhost"/' .buildkite/scripts/postgres_exec.py | ||
sed -i -e 's/host: postgres/host: localhost/' .buildkite/postgres-config.yaml | ||
sed -i -e 's|/src/||' .buildkite/{sqlite,postgres}-config.yaml | ||
sed -i -e 's/\$TOP/\$GITHUB_WORKSPACE/' .coveragerc | ||
- run: .buildkite/scripts/test_synapse_port_db.sh | ||
- run: .ci/scripts/test_synapse_port_db.sh | ||
|
||
complement: | ||
if: ${{ !failure() && !cancelled() }} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Remove references to BuildKite in favour of GitHub Actions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think these lines might have been something separate, but meh, they aren't adding much value imho