-
Notifications
You must be signed in to change notification settings - Fork 235
test: move connectivity tests to EVG (without kerberos) #2846
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
Changes from all commits
b780a9a
7bc609b
3e6ff17
ce0748b
1a3b299
6b17a58
44883d5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -304,6 +304,46 @@ functions: | |
|
||
DEBUG=${debug} MONGODB_VERSION=${mongodb_version|4} npm run --unsafe-perm --workspace compass-e2e-tests test-packaged-ci | ||
|
||
test-connectivity: | ||
- command: shell.exec | ||
# Fail the task if it's idle for 10 mins | ||
timeout_secs: 600 | ||
params: | ||
working_dir: src | ||
shell: bash | ||
env: | ||
<<: *compass-env | ||
COMPASS_SKIP_KERBEROS_TESTS: 'true' | ||
COMPASS_RUN_DOCKER_TESTS: 'true' | ||
DEBUG: ${debug} | ||
script: | | ||
set -e | ||
# Load environment variables | ||
eval $(.evergreen/print-compass-env.sh) | ||
|
||
git clone -b v1.2.4 https://github.com/mongodb-js/devtools-docker-test-envs.git test-envs | ||
docker-compose -f test-envs/docker/enterprise/docker-compose.yaml up -d | ||
docker-compose -f test-envs/docker/ldap/docker-compose.yaml up -d | ||
docker-compose -f test-envs/docker/scram/docker-compose.yaml up -d | ||
docker-compose -f test-envs/docker/sharded/docker-compose.yaml up -d | ||
docker-compose -f test-envs/docker/ssh/docker-compose.yaml up -d | ||
docker-compose -f test-envs/docker/tls/docker-compose.yaml up -d | ||
docker-compose -f test-envs/docker/kerberos/docker-compose.yaml up -d | ||
|
||
stop_all_docker_containers() { | ||
docker-compose -f test-envs/docker/enterprise/docker-compose.yaml down -v --remove-orphans | ||
docker-compose -f test-envs/docker/ldap/docker-compose.yaml down -v --remove-orphans | ||
docker-compose -f test-envs/docker/scram/docker-compose.yaml down -v --remove-orphans | ||
docker-compose -f test-envs/docker/sharded/docker-compose.yaml down -v --remove-orphans | ||
docker-compose -f test-envs/docker/ssh/docker-compose.yaml down -v --remove-orphans | ||
docker-compose -f test-envs/docker/tls/docker-compose.yaml down -v --remove-orphans | ||
docker-compose -f test-envs/docker/kerberos/docker-compose.yaml down -v --remove-orphans | ||
} | ||
|
||
trap "stop_all_docker_containers" ERR | ||
npm run test-connectivity --workspace mongodb-data-service | ||
stop_all_docker_containers | ||
|
||
save-windows-artifacts: | ||
- <<: *save-artifact | ||
params: | ||
|
@@ -523,6 +563,16 @@ tasks: | |
compass_distribution: compass-readonly | ||
variants: [ubuntu] | ||
|
||
- name: test-connectivity | ||
tags: ['required-for-publish'] | ||
commands: | ||
- func: prepare | ||
- func: install | ||
- func: bootstrap | ||
gribnoysup marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- func: test-connectivity | ||
vars: | ||
debug: 'compass*,electron*,hadron*,mongo*' | ||
|
||
# copied as test-packaged-app-macos due to depends_on variation | ||
- name: test-packaged-app | ||
tags: ['required-for-publish'] | ||
|
@@ -712,6 +762,12 @@ buildvariants: | |
# everything in one go | ||
- name: publish | ||
|
||
- name: ubuntu_connectivity_tests | ||
display_name: Connectivity Tests | ||
run_on: ubuntu1604-large | ||
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. Since ubuntu 16.04 has already been EOL for almost a year and this is dockerized anyway, could we maybe use a newer distro like 20.04 here? I assume the build team will be interested in removing 16.04 support at some point 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. sure |
||
tasks: | ||
- name: test-connectivity | ||
|
||
- name: rhel | ||
display_name: RHEL | ||
run_on: rhel76-large | ||
|
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.
Why not the other ones though?
env
supports evergreen expansions. But it's a total nit, so feel free to ignoreThere 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.
Didn't know that, let's move them, is not like that though rn in other functions, I'll try and see what happens i guess, if it works i'll move also the rest