This repository was archived by the owner on Apr 26, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Test Synapse against Complement with workers. #12810
Merged
Merged
Changes from 4 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
be69bd2
Run Complement with workers in CI
reivilibre 322d22f
Newsfile
reivilibre a974ccb
Split workers' tests by regex into 4 different jobs for now
reivilibre a2ae63e
Merge branch 'develop' into rei/complement_workers_in_ci
reivilibre 9b3cdeb
Restrict Complement workers tests to develop branch
reivilibre 7f9870e
Cut out the regex rubbish
reivilibre d539339
Work around the lack of YAML anchors or other easy reuse primitives, …
reivilibre 50a9264
Move checkout to a script
reivilibre 06b1221
Flatten develop-only
reivilibre 5f1efa4
Flatten normal (reversible later)
reivilibre b998416
Fix path to script
reivilibre 58819e1
Update .ci/scripts/checkout_complement.sh
reivilibre File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/bin/bash | ||
|
||
mkdir -p complement | ||
# Attempt to use the version of complement which best matches the current | ||
# build. Depending on whether this is a PR or release, etc. we need to | ||
# use different fallbacks. | ||
# | ||
# 1. First check if there's a similarly named branch (GITHUB_HEAD_REF | ||
# for pull requests, otherwise GITHUB_REF). | ||
# 2. Attempt to use the base branch, e.g. when merging into release-vX.Y | ||
# (GITHUB_BASE_REF for pull requests). | ||
# 3. Use the default complement branch ("HEAD"). | ||
for BRANCH_NAME in "$GITHUB_HEAD_REF" "$GITHUB_BASE_REF" "${GITHUB_REF#refs/heads/}" "HEAD"; do | ||
# Skip empty branch names and merge commits. | ||
if [[ -z "$BRANCH_NAME" || $BRANCH_NAME =~ ^refs/pull/.* ]]; then | ||
continue | ||
fi | ||
|
||
(wget -O - "https://github.com/matrix-org/complement/archive/$BRANCH_NAME.tar.gz" | tar -xz --strip-components=1 -C complement) && break | ||
done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.