-
Notifications
You must be signed in to change notification settings - Fork 188
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
feat(e2e): Smoke tests task & initial entrypoint COMPASS-8531 #6571
Changes from 11 commits
b37ec80
77fb9aa
db7d752
a52b299
1e72a54
92bdb85
fcb5ad6
c8f0a6b
24b4665
a712bfc
fd6396d
2badcfd
17f4152
47e2816
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 |
---|---|---|
|
@@ -60,6 +60,40 @@ const PACKAGE_BUILD_VARIANTS = [ | |
} | ||
]; | ||
|
||
const SMOKETEST_BUILD_VARIANTS = [ | ||
{ | ||
name: 'smoketest-ubuntu', | ||
display_name: 'Smoketest Ubuntu', | ||
run_on: 'ubuntu2004-large', | ||
depends_on: 'package-ubuntu', | ||
}, | ||
|
||
// { | ||
// name: 'smoketest-windows', | ||
// display_name: 'Smoketest Windows', | ||
// run_on: 'windows-vsCurrent-large', | ||
// depends_on: 'package-windows', | ||
// }, | ||
// { | ||
// name: 'smoketest-rhel', | ||
// display_name: 'Smoketest RHEL', | ||
// run_on: 'rhel80-large', | ||
// depends_on: 'package-rhel', | ||
// }, | ||
// { | ||
// name: 'smoketest-macos-x64', | ||
// display_name: 'Smoketest MacOS Intel', | ||
// run_on: 'macos-14', | ||
// depends_on: 'package-macos-x64', | ||
// }, | ||
// { | ||
// name: 'smoketest-macos-arm', | ||
// display_name: 'Smoketest MacOS Arm64', | ||
// run_on: 'macos-14-arm64', | ||
// depends_on: 'package-macos-arm', | ||
// } | ||
]; | ||
|
||
const TEST_PACKAGED_APP_BUILD_VARIANTS = [ | ||
{ | ||
name: 'test-packaged-app-ubuntu', | ||
|
@@ -180,6 +214,19 @@ buildvariants: | |
<% } %> | ||
<% } %> | ||
|
||
<% for (const buildVariant of SMOKETEST_BUILD_VARIANTS) { %> | ||
<% for (const distribution of ['compass']) { %> | ||
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. Looping through just compass here rather than all of COMPASS_DISTRIBUTIONS. For now. Until we want to test readonly and isolated. |
||
- name: <%= buildVariant.name %>-<%= distribution %> | ||
display_name: <%= buildVariant.display_name %> (<%= distribution %>) | ||
run_on: <%= buildVariant.run_on %> | ||
depends_on: | ||
- name: package-<%= distribution %> | ||
variant: <%= buildVariant.depends_on %> | ||
tasks: | ||
- name: smoketest-<%= distribution %> | ||
<% } %> | ||
<% } %> | ||
|
||
- name: test-eol-servers | ||
display_name: Test EoL Servers | ||
run_on: ubuntu1804-large | ||
|
@@ -424,6 +471,22 @@ tasks: | |
- func: save-all-artifacts | ||
vars: | ||
compass_distribution: <%= distribution %> | ||
<% } %> | ||
|
||
<% for (const distribution of ['compass']) { %> | ||
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. Also not looping through COMPASS_DISTRIBUTIONS here yet. |
||
- name: smoketest-<%= distribution %> | ||
tags: ['required-for-publish', 'run-on-pr'] | ||
commands: | ||
- func: prepare | ||
- func: install | ||
- func: bootstrap | ||
vars: | ||
scope: 'compass-e2e-tests' | ||
- func: smoketest-packaged-app | ||
vars: | ||
mongodb_version: latest-enterprise | ||
compass_distribution: <%= distribution %> | ||
debug: 'compass-e2e-tests*,electron*,hadron*,mongo*' | ||
<% } %> | ||
|
||
<% for (const serverVersion of SERVER_VERSIONS) { %> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,11 @@ echo "NPM_VERSION: $NPM_VERSION" | |
echo "APPDATA: $APPDATA" | ||
echo "PATH: $PATH" | ||
|
||
# these are super useful if you want to run the smoke tests locally | ||
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're going to need these when we want to test with the files produced by a PR or beta or ga build, so I'm just adding it next to other useful/essential variables being output. They aren't secrets so that's fine. |
||
echo "DEV_VERSION_IDENTIFIER: $DEV_VERSION_IDENTIFIER" | ||
echo "EVERGREEN_BUCKET_NAME: $EVERGREEN_BUCKET_NAME" | ||
echo "EVERGREEN_BUCKET_KEY_PREFIX: $EVERGREEN_BUCKET_KEY_PREFIX" | ||
|
||
echo "IS_OSX: $IS_OSX" | ||
echo "IS_LINUX: $IS_LINUX" | ||
echo "IS_WINDOWS: $IS_WINDOWS" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ | |
.log | ||
fixtures/*.csv | ||
fixtures/*.json | ||
hadron-build-info.json |
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 now I have most platforms commented out because this is a lot of new tasks that will do nothing for the moment.