-
Notifications
You must be signed in to change notification settings - Fork 65
SWIFT-1337, SWIFT-1629, SWIFT-1557, SWIFT-1566: Various maintenance-related changes #773
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
7003fff
drop Swift 5.1; only depend on NIOCore and NIOPosix where applicable
kmahar b212422
evg config updates
kmahar 03da661
various fixes
kmahar 441c686
bump tools versions and fix violations
kmahar c4d71d4
add back linuxmain
kmahar 23b8bd1
ignore ns not found running distinct
kmahar c0e9f64
no LB for leak checks
kmahar ae2a0e7
add comment
kmahar 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 |
---|---|---|
|
@@ -336,15 +336,9 @@ functions: | |
script: | | ||
set -o xtrace | ||
set -o errexit | ||
|
||
if [ "${SWIFT_MINOR_VERSION}" = "main-snapshot" ]; then | ||
export SWIFT_VERSION="${SWIFT_MINOR_VERSION}" | ||
else | ||
# otherwise, find the latest patch release for the specified version | ||
${PYTHON} -m virtualenv ./requests-env | ||
./requests-env/${VENV_BIN_DIR}/python3 -m pip install requests | ||
export SWIFT_VERSION="$(./requests-env/${VENV_BIN_DIR}/python3 .evergreen/get_latest_swift_patch.py ${SWIFT_MINOR_VERSION})" | ||
fi | ||
${PYTHON} -m virtualenv ./requests-env | ||
./requests-env/${VENV_BIN_DIR}/python3 -m pip install requests | ||
export SWIFT_VERSION="$(./requests-env/${VENV_BIN_DIR}/python3 .evergreen/get_latest_swift_patch.py ${SWIFT_MINOR_VERSION})" | ||
echo "SWIFT_VERSION: $SWIFT_VERSION" > swift-version.yml | ||
cat swift-version.yml | ||
- command: expansions.update | ||
|
@@ -620,6 +614,72 @@ tasks: | |
MONGODB_VERSION: "5.0" | ||
TOPOLOGY: "sharded_cluster" | ||
- func: "run tests" | ||
|
||
- name: "test-5.0-load_balancer" | ||
tags: ["5.0", "load-balancer"] | ||
commands: | ||
- func: "prepare resources" | ||
- func: "fix absolute paths" | ||
- func: "bootstrap mongo-orchestration" | ||
vars: | ||
MONGODB_VERSION: "5.0" | ||
TOPOLOGY: "sharded_cluster" | ||
LOAD_BALANCER: "true" | ||
- func: start-load-balancer | ||
- func: "run-lb-tests" | ||
vars: | ||
TOPOLOGY: "load_balanced" | ||
- func: stop-load-balancer | ||
|
||
- name: "test-6.0-standalone" | ||
tags: ["6.0", "standalone"] | ||
commands: | ||
- func: "prepare resources" | ||
- func: "fix absolute paths" | ||
- func: "bootstrap mongo-orchestration" | ||
vars: | ||
MONGODB_VERSION: "6.0" | ||
TOPOLOGY: "server" | ||
- func: "run tests" | ||
|
||
- name: "test-6.0-replica_set" | ||
tags: ["6.0", "replica_set"] | ||
commands: | ||
- func: "prepare resources" | ||
- func: "fix absolute paths" | ||
- func: "bootstrap mongo-orchestration" | ||
vars: | ||
MONGODB_VERSION: "6.0" | ||
TOPOLOGY: "replica_set" | ||
- func: "run tests" | ||
|
||
- name: "test-6.0-sharded_cluster" | ||
tags: ["6.0", "sharded_cluster"] | ||
exec_timeout_secs: 3600 # TODO SWIFT-1410: remove | ||
commands: | ||
- func: "prepare resources" | ||
- func: "fix absolute paths" | ||
- func: "bootstrap mongo-orchestration" | ||
vars: | ||
MONGODB_VERSION: "6.0" | ||
TOPOLOGY: "sharded_cluster" | ||
- func: "run tests" | ||
|
||
- name: "test-6.0-load_balancer" | ||
tags: ["6.0", "load-balancer"] | ||
commands: | ||
- func: "prepare resources" | ||
- func: "fix absolute paths" | ||
- func: "bootstrap mongo-orchestration" | ||
vars: | ||
MONGODB_VERSION: "6.0" | ||
TOPOLOGY: "sharded_cluster" | ||
LOAD_BALANCER: "true" | ||
- func: start-load-balancer | ||
- func: "run-lb-tests" | ||
vars: | ||
TOPOLOGY: "load_balanced" | ||
- func: stop-load-balancer | ||
|
||
- name: "test-latest-standalone" | ||
tags: ["latest", "standalone"] | ||
|
@@ -671,6 +731,56 @@ tasks: | |
TOPOLOGY: "load_balanced" | ||
- func: stop-load-balancer | ||
|
||
- name: "test-rapid-standalone" | ||
tags: ["rapid", "standalone"] | ||
commands: | ||
- func: "prepare resources" | ||
- func: "fix absolute paths" | ||
- func: "bootstrap mongo-orchestration" | ||
vars: | ||
MONGODB_VERSION: "rapid" | ||
TOPOLOGY: "server" | ||
- func: "run tests" | ||
|
||
- name: "test-rapid-replica_set" | ||
tags: ["rapid", "replica_set"] | ||
commands: | ||
- func: "prepare resources" | ||
- func: "fix absolute paths" | ||
- func: "bootstrap mongo-orchestration" | ||
vars: | ||
MONGODB_VERSION: "rapid" | ||
TOPOLOGY: "replica_set" | ||
- func: "run tests" | ||
|
||
- name: "test-rapid-sharded_cluster" | ||
tags: ["rapid", "sharded_cluster"] | ||
exec_timeout_secs: 3600 # TODO SWIFT-1410: remove | ||
commands: | ||
- func: "prepare resources" | ||
- func: "fix absolute paths" | ||
- func: "bootstrap mongo-orchestration" | ||
vars: | ||
MONGODB_VERSION: "rapid" | ||
TOPOLOGY: "sharded_cluster" | ||
- func: "run tests" | ||
|
||
- name: "test-rapid-load_balancer" | ||
tags: ["rapid", "load-balancer"] | ||
commands: | ||
- func: "prepare resources" | ||
- func: "fix absolute paths" | ||
- func: "bootstrap mongo-orchestration" | ||
vars: | ||
MONGODB_VERSION: "rapid" | ||
TOPOLOGY: "sharded_cluster" | ||
LOAD_BALANCER: "true" | ||
- func: start-load-balancer | ||
- func: "run-lb-tests" | ||
vars: | ||
TOPOLOGY: "load_balanced" | ||
- func: stop-load-balancer | ||
|
||
- name: "test-atlas-connectivity" | ||
tags: ["atlas-connect"] | ||
commands: | ||
|
@@ -1049,6 +1159,14 @@ axes: | |
display_name: "latest" | ||
variables: | ||
MONGODB_VERSION: "latest" | ||
- id: "rapid" | ||
display_name: "rapid" | ||
variables: | ||
MONGODB_VERSION: "rapid" | ||
- id: "6.0" | ||
display_name: "6.0" | ||
variables: | ||
MONGODB_VERSION: "6.0" | ||
- id: "5.0" | ||
display_name: "5.0" | ||
variables: | ||
|
@@ -1087,6 +1205,13 @@ axes: | |
PYTHON: "/opt/mongodbtoolchain/v3/bin/python3" | ||
VENV_BIN_DIR: "bin" | ||
|
||
- id: macos-10.14 | ||
display_name: "macOS 10.14" | ||
run_on: macos-1014 | ||
variables: | ||
PYTHON: "/opt/mongodbtoolchain/v3/bin/python3" | ||
VENV_BIN_DIR: "bin" | ||
|
||
- id: macos-11 | ||
display_name: "macOS 11" | ||
run_on: macos-1100 | ||
|
@@ -1112,10 +1237,6 @@ axes: | |
- id: swift-version | ||
display_name: "Swift" | ||
values: | ||
- id: "5.1" | ||
display_name: "Swift 5.1" | ||
variables: | ||
SWIFT_MINOR_VERSION: "5.1" | ||
- id: "5.2" | ||
display_name: "Swift 5.2" | ||
variables: | ||
|
@@ -1250,27 +1371,32 @@ buildvariants: | |
|
||
- matrix_name: "min-version-compile" | ||
matrix_spec: | ||
# Ubuntu 20.04 does not have Swift 5.1 toolchains. | ||
os-fully-featured: | ||
- "macos-11" | ||
- "ubuntu-18.04" | ||
swift-version: "5.1" | ||
- macos-10.14 | ||
- ubuntu-18.04 | ||
- ubuntu-20.04 | ||
swift-version: "5.2" | ||
display_name: "Compile ${swift-version} ${os-fully-featured}" | ||
tasks: | ||
- "compile" | ||
|
||
- matrix_name: "tests-all" | ||
matrix_spec: | ||
os-fully-featured: "*" | ||
os-fully-featured: | ||
- macos-11 | ||
- ubuntu-18.04 | ||
- ubuntu-20.04 | ||
swift-version: | ||
- "5.5" | ||
- "5.6" | ||
- "5.7-dev" | ||
ssl-auth: "*" | ||
display_name: "${swift-version} ${os-fully-featured} ${ssl-auth}" | ||
tasks: | ||
- ".rapid !.load-balancer" | ||
- ".latest !.load-balancer" | ||
- ".5.0" | ||
- ".6.0 !.load-balancer" | ||
- ".5.0 !.load-balancer" | ||
- ".4.4" | ||
- ".4.2" | ||
- ".4.0" | ||
|
@@ -1302,7 +1428,10 @@ buildvariants: | |
|
||
- matrix_name: "atlas-connect" | ||
matrix_spec: | ||
os-fully-featured: "*" | ||
os-fully-featured: | ||
- macos-11 | ||
- ubuntu-18.04 | ||
- ubuntu-20.04 | ||
swift-version: | ||
- "5.5" | ||
- "5.6" | ||
|
@@ -1340,6 +1469,8 @@ buildvariants: | |
- "ubuntu-20.04" | ||
versions: | ||
- latest | ||
- rapid | ||
- 6.0 | ||
- 5.0 | ||
- 4.4 | ||
swift-version: "5.6" | ||
|
@@ -1363,6 +1494,8 @@ buildvariants: | |
swift-version: "5.6" | ||
versions: | ||
- latest | ||
- rapid | ||
- 6.0 | ||
- 5.0 | ||
- 4.4 | ||
display_name: "OCSP ${swift-version} ${os-fully-featured} ${versions}" | ||
|
@@ -1382,6 +1515,9 @@ buildvariants: | |
tasks: | ||
# Versioned API was introduced in MongoDB 4.7 | ||
- "test-latest-standalone" | ||
- "test-rapid-standalone" | ||
- "test-6.0-standalone" | ||
- "test-5.0-standalone" | ||
|
||
- matrix_name: "format-lint" | ||
display_name: "Format and Lint" | ||
|
@@ -1418,4 +1554,4 @@ buildvariants: | |
ssl-auth: "*" | ||
check-leaks: "leaks" | ||
tasks: | ||
- ".5.0" | ||
- ".6.0 !.load-balancer" | ||
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. we check for leaks on macOS which does not have haproxy installed and so cannot run LB tests. this explicit skip wasn't necessary before because we were not running LB tests on 5.0 |
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
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
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
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
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
Oops, something went wrong.
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.
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.
for similar reasons to the BSON PR re limited 10.15 hosts, the Swift 5.2 tests are now run on macOS 10.14