Skip to content

Commit cf2aef8

Browse files
committed
chore(ci): move signing secrets to signing task; do not run connectivity / csfle tests twice
1 parent c43a4b7 commit cf2aef8

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

.evergreen/functions.yml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,20 +45,12 @@ variables:
4545
# secrets
4646
HADRON_METRICS_INTERCOM_APP_ID: ${metrics_intercom_app_id}
4747
HADRON_METRICS_SEGMENT_API_KEY: ${metrics_segment_api_key}
48-
MACOS_NOTARY_KEY: ${macos_notary_key}
49-
MACOS_NOTARY_SECRET: ${macos_notary_secret}
50-
MACOS_NOTARY_CLIENT_URL: 'https://macos-notary-1628249594.s3.amazonaws.com/releases/client/latest/darwin_amd64.zip'
51-
MACOS_NOTARY_API_URL: 'https://dev.macos-notary.build.10gen.cc/api'
5248
GITHUB_TOKEN: ${devtoolsbot_github_token}
5349
DOWNLOAD_CENTER_AWS_ACCESS_KEY_ID: ${aws_key_evergreen_integrations}
5450
DOWNLOAD_CENTER_AWS_SECRET_ACCESS_KEY: ${aws_secret_evergreen_integrations}
5551
EVERGREEN_BUCKET_NAME: mciuploads
5652
EVERGREEN_BUCKET_KEY_PREFIX: ${project}/${revision}_${revision_order_id}
5753
MONGODB_RUNNER_LOG_DIR: ${workdir}/src/.testserver/
58-
GARASIGN_USERNAME: ${garasign_username}
59-
GARASIGN_PASSWORD: ${garasign_password}
60-
ARTIFACTORY_USERNAME: ${artifactory_username}
61-
ARTIFACTORY_PASSWORD: ${artifactory_password}
6254
DOCKERHUB_USERNAME: ${dockerhub_username}
6355
DOCKERHUB_PASSWORD: ${dockerhub_password}
6456
- &compass-e2e-secrets
@@ -460,12 +452,25 @@ functions:
460452
<<: *compass-env
461453
DEBUG: ${debug}
462454
npm_config_loglevel: ${npm_loglevel}
463-
HADRON_DISTRIBUTION: ${compass_distribution}
455+
456+
# macOS signing secrets
457+
MACOS_NOTARY_KEY: ${macos_notary_key}
458+
MACOS_NOTARY_SECRET: ${macos_notary_secret}
459+
MACOS_NOTARY_CLIENT_URL: 'https://macos-notary-1628249594.s3.amazonaws.com/releases/client/latest/darwin_amd64.zip'
460+
MACOS_NOTARY_API_URL: 'https://dev.macos-notary.build.10gen.cc/api'
461+
462+
# linux / windows signing secrets
463+
GARASIGN_USERNAME: ${garasign_username}
464+
GARASIGN_PASSWORD: ${garasign_password}
465+
ARTIFACTORY_USERNAME: ${artifactory_username}
466+
ARTIFACTORY_PASSWORD: ${artifactory_password}
464467
SIGNING_SERVER_HOSTNAME: ${SIGNING_SERVER_HOSTNAME}
465468
SIGNING_SERVER_PRIVATE_KEY: ${SIGNING_SERVER_PRIVATE_KEY}
466469
SIGNING_SERVER_PRIVATE_KEY_CYGPATH: ${SIGNING_SERVER_PRIVATE_KEY_CYGPATH}
467470
SIGNING_SERVER_USERNAME: ${SIGNING_SERVER_USERNAME}
468471
SIGNING_SERVER_PORT: ${SIGNING_SERVER_PORT}
472+
473+
HADRON_DISTRIBUTION: ${compass_distribution}
469474
GITHUB_PR_NUMBER: ${github_pr_number}
470475
PAPERTRAIL_KEY_ID: ${papertrail_key_id}
471476
PAPERTRAIL_SECRET_KEY: ${papertrail_secret_key}
@@ -696,7 +701,6 @@ functions:
696701
# TODO: rhel_tar
697702
#fi
698703
699-
700704
test-web-sandbox:
701705
- command: shell.exec
702706
# Fail the task if it's idle for 10 mins
@@ -721,7 +725,6 @@ functions:
721725
eval $(.evergreen/print-compass-env.sh)
722726
npm run --unsafe-perm --workspace compass-e2e-tests test-ci web
723727
724-
725728
test-web-sandbox-atlas-cloud:
726729
- command: shell.exec
727730
# It can take a very long time for Atlas cluster to get deployed

packages/data-service/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"test-csfle": "mocha ./src/csfle-collection-tracker.spec.ts ./src/data-service.spec.ts",
4848
"test-cov": "nyc --compact=false --produce-source-map=false -x \"**/*.spec.*\" --reporter=lcov --reporter=text --reporter=html npm run test",
4949
"test-watch": "npm run test -- --watch",
50-
"test-ci": "npm run test-cov",
50+
"test-ci": "npm run test-cov -- -- --include \"./**/*.{spec,test}.*\" --exclude \"./src/connect.spec.ts\" --exclude \"./src/csfle-collection-tracker.spec.ts\"",
5151
"reformat": "npm run eslint . -- --fix && npm run prettier -- --write ."
5252
},
5353
"dependencies": {

0 commit comments

Comments
 (0)