@@ -45,6 +45,15 @@ variables:
45
45
# secrets
46
46
HADRON_METRICS_INTERCOM_APP_ID : ${metrics_intercom_app_id}
47
47
HADRON_METRICS_SEGMENT_API_KEY : ${metrics_segment_api_key}
48
+ GITHUB_TOKEN : ${devtoolsbot_github_token}
49
+ DOWNLOAD_CENTER_AWS_ACCESS_KEY_ID : ${aws_key_evergreen_integrations}
50
+ DOWNLOAD_CENTER_AWS_SECRET_ACCESS_KEY : ${aws_secret_evergreen_integrations}
51
+ EVERGREEN_BUCKET_NAME : mciuploads
52
+ EVERGREEN_BUCKET_KEY_PREFIX : ${project}/${revision}_${revision_order_id}
53
+ MONGODB_RUNNER_LOG_DIR : ${workdir}/src/.testserver/
54
+ DOCKERHUB_USERNAME : ${dockerhub_username}
55
+ DOCKERHUB_PASSWORD : ${dockerhub_password}
56
+ - &compass-e2e-secrets
48
57
E2E_TESTS_METRICS_URI : ${e2e_tests_metrics_string}
49
58
E2E_TESTS_ATLAS_HOST : ${e2e_tests_atlas_host}
50
59
E2E_TESTS_DATA_LAKE_HOST : ${e2e_tests_data_lake_host}
@@ -53,7 +62,7 @@ variables:
53
62
E2E_TESTS_FREE_TIER_HOST : ${e2e_tests_free_tier_host}
54
63
E2E_TESTS_ATLAS_USERNAME : ${e2e_tests_atlas_username}
55
64
E2E_TESTS_ATLAS_PASSWORD : ${e2e_tests_atlas_password}
56
- E2E_TESTS_ATLAS_X509_PEM : ${e2e_tests_atlas_x509_pem }
65
+ E2E_TESTS_ATLAS_X509_PEM_BASE64 : ${e2e_tests_atlas_x509_pem_base64 }
57
66
E2E_TESTS_ATLAS_IAM_ACCESS_KEY_ID : ${e2e_tests_atlas_iam_aws_access_key_id}
58
67
E2E_TESTS_ATLAS_IAM_SECRET_ACCESS_KEY : ${e2e_tests_atlas_iam_aws_secret_access_key}
59
68
E2E_TESTS_ATLAS_IAM_TEMP_ROLE_ARN : ${e2e_tests_atlas_iam_temp_role_arn}
@@ -62,24 +71,8 @@ variables:
62
71
E2E_TESTS_ATLAS_READANYDATABASE_STRING : ${e2e_tests_atlas_readanydatabase_string}
63
72
E2E_TESTS_ATLAS_CUSTOMROLE_STRING : ${e2e_tests_atlas_customrole_string}
64
73
E2E_TESTS_ATLAS_SPECIFICPERMISSION_STRING : ${e2e_tests_atlas_specificpermission_string}
65
- MACOS_NOTARY_KEY : ${macos_notary_key}
66
- MACOS_NOTARY_SECRET : ${macos_notary_secret}
67
- MACOS_NOTARY_CLIENT_URL : ' https://macos-notary-1628249594.s3.amazonaws.com/releases/client/latest/darwin_amd64.zip'
68
- MACOS_NOTARY_API_URL : ' https://dev.macos-notary.build.10gen.cc/api'
69
- GITHUB_TOKEN : ${devtoolsbot_github_token}
70
- DOWNLOAD_CENTER_AWS_ACCESS_KEY_ID : ${aws_key_evergreen_integrations}
71
- DOWNLOAD_CENTER_AWS_SECRET_ACCESS_KEY : ${aws_secret_evergreen_integrations}
72
- EVERGREEN_BUCKET_NAME : mciuploads
73
- EVERGREEN_BUCKET_KEY_PREFIX : ${project}/${revision}_${revision_order_id}
74
- MONGODB_RUNNER_LOG_DIR : ${workdir}/src/.testserver/
75
74
E2E_TESTS_ATLAS_CS_WITHOUT_SEARCH : ${e2e_tests_atlas_cs_without_search}
76
75
E2E_TESTS_ATLAS_CS_WITH_SEARCH : ${e2e_tests_atlas_cs_with_search}
77
- GARASIGN_USERNAME : ${garasign_username}
78
- GARASIGN_PASSWORD : ${garasign_password}
79
- ARTIFACTORY_USERNAME : ${artifactory_username}
80
- ARTIFACTORY_PASSWORD : ${artifactory_password}
81
- DOCKERHUB_USERNAME : ${dockerhub_username}
82
- DOCKERHUB_PASSWORD : ${dockerhub_password}
83
76
84
77
# This is here with the variables because anchors aren't supported across includes
85
78
post :
@@ -159,8 +152,6 @@ functions:
159
152
160
153
# Make all the dirs
161
154
mkdir -p $ARTIFACTS_PATH
162
- mkdir -p $NPM_CACHE_DIR
163
- mkdir -p $NPM_TMP_DIR
164
155
165
156
- command : shell.exec
166
157
type : setup
@@ -202,18 +193,9 @@ functions:
202
193
npm config ls -l
203
194
echo "(if npm fails, debug.log will be uploaded to S3)"
204
195
205
- # Install dependencies
196
+ # Install and check dependencies
206
197
bash ".evergreen/retry-with-backoff.sh" .evergreen/npm_ci.sh
207
198
208
- # Will fail if versions of direct dependencies listed in package-lock
209
- # are not matching versions defined in package.json file of any of the
210
- # workspace packages
211
- # This command is very noisy when running from root with --all, store
212
- # the output in a file that will be uploaded with rest of the logs
213
- LS_ALL_STDOUT_FILE="$(npm config get cache)/_logs/$(date -u +"%Y-%m-%dT%H_%M_%SZ")-npm-ls-all.log"
214
- echo "Validating dependencies with \`npm ls --all\`..."
215
- (npm ls --all > $LS_ALL_STDOUT_FILE && echo "No mismatched dependency versions") || echo "\nThe \`npm ls\` command failed with mismatched dependencies error. This usually means that the dependency versions listed in package.json are not matching dependencies resolved and recorded in package-lock.json. If you updated package.json files in your PR, inspect the error output and try to re-install offending dependncies to fix the package-lock file."
216
-
217
199
bootstrap :
218
200
- command : shell.exec
219
201
type : setup
@@ -450,7 +432,7 @@ functions:
450
432
script : |
451
433
set -e
452
434
453
- .evergreen/create-sbom.sh
435
+ bash ".evergreen/retry-with-backoff.sh" .evergreen/create-sbom.sh
454
436
- command : shell.exec
455
437
params :
456
438
working_dir : src
@@ -459,12 +441,25 @@ functions:
459
441
<< : *compass-env
460
442
DEBUG : ${debug}
461
443
npm_config_loglevel : ${npm_loglevel}
462
- HADRON_DISTRIBUTION : ${compass_distribution}
444
+
445
+ # macOS signing secrets
446
+ MACOS_NOTARY_KEY : ${macos_notary_key}
447
+ MACOS_NOTARY_SECRET : ${macos_notary_secret}
448
+ MACOS_NOTARY_CLIENT_URL : ' https://macos-notary-1628249594.s3.amazonaws.com/releases/client/latest/darwin_amd64.zip'
449
+ MACOS_NOTARY_API_URL : ' https://dev.macos-notary.build.10gen.cc/api'
450
+
451
+ # linux / windows signing secrets
452
+ GARASIGN_USERNAME : ${garasign_username}
453
+ GARASIGN_PASSWORD : ${garasign_password}
454
+ ARTIFACTORY_USERNAME : ${artifactory_username}
455
+ ARTIFACTORY_PASSWORD : ${artifactory_password}
463
456
SIGNING_SERVER_HOSTNAME : ${SIGNING_SERVER_HOSTNAME}
464
457
SIGNING_SERVER_PRIVATE_KEY : ${SIGNING_SERVER_PRIVATE_KEY}
465
458
SIGNING_SERVER_PRIVATE_KEY_CYGPATH : ${SIGNING_SERVER_PRIVATE_KEY_CYGPATH}
466
459
SIGNING_SERVER_USERNAME : ${SIGNING_SERVER_USERNAME}
467
460
SIGNING_SERVER_PORT : ${SIGNING_SERVER_PORT}
461
+
462
+ HADRON_DISTRIBUTION : ${compass_distribution}
468
463
GITHUB_PR_NUMBER : ${github_pr_number}
469
464
PAPERTRAIL_KEY_ID : ${papertrail_key_id}
470
465
PAPERTRAIL_SECRET_KEY : ${papertrail_secret_key}
@@ -596,6 +591,7 @@ functions:
596
591
shell : bash
597
592
env :
598
593
<< : *compass-env
594
+ << : *compass-e2e-secrets
599
595
DEBUG : ${debug|}
600
596
MONGODB_VERSION : ${mongodb_version|}
601
597
MONGODB_RUNNER_VERSION : ${mongodb_version|}
@@ -625,6 +621,7 @@ functions:
625
621
shell : bash
626
622
env :
627
623
<< : *compass-env
624
+ << : *compass-e2e-secrets
628
625
COMPASS_APP_PATH_ORIGINAL : ${appPath}
629
626
COMPASS_APP_NAME : ${packagerOptions.name}
630
627
DEBUG : ${debug|}
@@ -660,6 +657,7 @@ functions:
660
657
shell : bash
661
658
env :
662
659
<< : *compass-env
660
+ << : *compass-e2e-secrets
663
661
DEBUG : ${debug|}
664
662
MONGODB_VERSION : ${mongodb_version|}
665
663
MONGODB_RUNNER_VERSION : ${mongodb_version|}
@@ -669,12 +667,28 @@ functions:
669
667
# Load environment variables
670
668
eval $(.evergreen/print-compass-env.sh)
671
669
670
+ if [[ "$IS_WINDOWS" == "true" ]]; then
671
+ # TODO: windows_setup
672
+ # TODO: windows_msi
673
+ npm run --unsafe-perm --workspace @mongodb-js/compass-smoke-tests start -- --package=windows_zip
674
+ fi
675
+
672
676
if [[ "$IS_OSX" == "true" ]]; then
673
677
echo "Disabling clipboard usage in e2e tests (TODO: https://jira.mongodb.org/browse/BUILD-14780)"
674
678
export COMPASS_E2E_DISABLE_CLIPBOARD_USAGE="true"
679
+ npm run --unsafe-perm --workspace @mongodb-js/compass-smoke-tests start -- --package=osx_dmg
680
+ npm run --unsafe-perm --workspace @mongodb-js/compass-smoke-tests start -- --package=osx_zip
675
681
fi
676
682
677
- npm run --unsafe-perm --workspace compass-e2e-tests smoketest
683
+ #if [[ "$IS_UBUNTU" == "true" ]]; then
684
+ # TODO: linux_deb
685
+ # TODO: linux_tar
686
+ #fi
687
+
688
+ #if [[ "$IS_RHEL" == "true" ]]; then
689
+ # TODO: linux_rpm
690
+ # TODO: rhel_tar
691
+ #fi
678
692
679
693
test-web-sandbox :
680
694
- command : shell.exec
@@ -685,6 +699,7 @@ functions:
685
699
shell : bash
686
700
env :
687
701
<< : *compass-env
702
+ << : *compass-e2e-secrets
688
703
COMPASS_APP_PATH_ORIGINAL : ${appPath}
689
704
COMPASS_APP_NAME : ${packagerOptions.name}
690
705
DEBUG : ${debug|}
@@ -699,7 +714,6 @@ functions:
699
714
eval $(.evergreen/print-compass-env.sh)
700
715
npm run --unsafe-perm --workspace compass-e2e-tests test-ci web
701
716
702
-
703
717
test-web-sandbox-atlas-cloud :
704
718
- command : shell.exec
705
719
# It can take a very long time for Atlas cluster to get deployed
@@ -709,6 +723,7 @@ functions:
709
723
shell : bash
710
724
env :
711
725
<< : *compass-env
726
+ << : *compass-e2e-secrets
712
727
DEBUG : ${debug|}
713
728
COMPASS_E2E_ATLAS_CLOUD_SANDBOX_USERNAME : ${e2e_tests_compass_web_atlas_username}
714
729
COMPASS_E2E_ATLAS_CLOUD_SANDBOX_PASSWORD : ${e2e_tests_compass_web_atlas_password}
@@ -741,6 +756,7 @@ functions:
741
756
shell : bash
742
757
env :
743
758
<< : *compass-env
759
+ << : *compass-e2e-secrets
744
760
COMPASS_SKIP_KERBEROS_TESTS : ' true'
745
761
COMPASS_RUN_DOCKER_TESTS : ' true'
746
762
DEBUG : ${debug}
@@ -955,37 +971,6 @@ functions:
955
971
echo "Downloading release assets from evergreen bucket..."
956
972
npm run --workspace mongodb-compass download
957
973
958
- generate-tasks :
959
- - command : generate.tasks
960
- params :
961
- files :
962
- - tasks.json
963
-
964
- publish-packages-next :
965
- - command : shell.exec
966
- params :
967
- working_dir : src
968
- shell : bash
969
- env :
970
- << : *compass-env
971
- NPM_TOKEN : ${devtoolsbot_npm_token}
972
- script : |
973
- # Only package publish for commits on the main evergreen project.
974
- if [[ "${requester}" == "commit" ]] && [[ "${project}" == "10gen-compass-main" ]]; then
975
- set -e
976
- # Load environment variables
977
- eval $(.evergreen/print-compass-env.sh)
978
- echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
979
- npm config list
980
- echo "Publishing packages as $(npm whoami)"
981
- npm run version-packages-next
982
- # unstage after lerna staged version
983
- git reset
984
- # mark files as unchanged so that lerna can publish
985
- git update-index --assume-unchanged $(git diff --name-only HEAD)
986
- bash ".evergreen/retry-with-backoff.sh" npm run publish-packages-next
987
- fi
988
-
989
974
generate-vulnerability-report :
990
975
- command : shell.exec
991
976
params :
0 commit comments