Skip to content

Commit 6a1a527

Browse files
authored
Merge branch 'main' into autoupdate-from3
2 parents 0d01632 + d44cac0 commit 6a1a527

File tree

8 files changed

+28
-10
lines changed

8 files changed

+28
-10
lines changed

.evergreen.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
stepback: false
22
exec_timeout_secs: 5400
33
ignore:
4+
- docs/**/*.md
45
- AUTHORS
6+
- CODE_OF_CONDUCT.md
7+
- CONTRIBUTING.md
8+
- README.md
59
- THIRD-PARTY-NOTICES.md
610
include:
711
- filename: .evergreen/functions.yml

.evergreen/connectivity-tests/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ docker run \
2222
-e E2E_TESTS_FREE_TIER_HOST="${E2E_TESTS_FREE_TIER_HOST}" \
2323
-e E2E_TESTS_ATLAS_USERNAME="${E2E_TESTS_ATLAS_USERNAME}" \
2424
-e E2E_TESTS_ATLAS_PASSWORD="${E2E_TESTS_ATLAS_PASSWORD}" \
25-
-e E2E_TESTS_ATLAS_X509_PEM="${E2E_TESTS_ATLAS_X509_PEM}" \
25+
-e E2E_TESTS_ATLAS_X509_PEM_BASE64="${E2E_TESTS_ATLAS_X509_PEM_BASE64}" \
2626
-e MONGODB_VERSION="${MONGODB_VERSION}" \
2727
--add-host mongodb-kerberos-1.example.com:0.0.0.0 \
2828
--add-host mongodb-kerberos-2.example.com:0.0.0.0 \

.evergreen/functions.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ variables:
6262
E2E_TESTS_FREE_TIER_HOST: ${e2e_tests_free_tier_host}
6363
E2E_TESTS_ATLAS_USERNAME: ${e2e_tests_atlas_username}
6464
E2E_TESTS_ATLAS_PASSWORD: ${e2e_tests_atlas_password}
65-
E2E_TESTS_ATLAS_X509_PEM: ${e2e_tests_atlas_x509_pem}
65+
E2E_TESTS_ATLAS_X509_PEM_BASE64: ${e2e_tests_atlas_x509_pem_base64}
6666
E2E_TESTS_ATLAS_IAM_ACCESS_KEY_ID: ${e2e_tests_atlas_iam_aws_access_key_id}
6767
E2E_TESTS_ATLAS_IAM_SECRET_ACCESS_KEY: ${e2e_tests_atlas_iam_aws_secret_access_key}
6868
E2E_TESTS_ATLAS_IAM_TEMP_ROLE_ARN: ${e2e_tests_atlas_iam_temp_role_arn}
@@ -443,7 +443,7 @@ functions:
443443
script: |
444444
set -e
445445
446-
.evergreen/create-sbom.sh
446+
bash ".evergreen/retry-with-backoff.sh" .evergreen/create-sbom.sh
447447
- command: shell.exec
448448
params:
449449
working_dir: src

THIRD-PARTY-NOTICES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
The following third-party software is used by and included in **Mongodb Compass**.
2-
This document was automatically generated on Fri Jan 17 2025.
2+
This document was automatically generated on Mon Jan 20 2025.
33

44
## List of dependencies
55

docs/tracking-plan.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
# Compass Tracking Plan
33

4-
Generated on Fri, Jan 17, 2025
4+
Generated on Mon, Jan 20, 2025
55

66
## Table of Contents
77

packages/compass-e2e-tests/helpers/commands/save-aggregation-pipeline.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,7 @@ export async function saveAggregationPipeline(
4747
const createButton = browser.$(Selectors.SavePipelineModal).$('button=Save');
4848

4949
await createButton.click();
50+
51+
// wait for the modal to disappear
52+
await savePipelineModal.waitForDisplayed({ reverse: true });
5053
}

packages/compass-e2e-tests/tests/connection.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function hasAtlasEnvironmentVariables(): boolean {
3939
'E2E_TESTS_FREE_TIER_HOST',
4040
'E2E_TESTS_ATLAS_USERNAME',
4141
'E2E_TESTS_ATLAS_PASSWORD',
42-
'E2E_TESTS_ATLAS_X509_PEM',
42+
'E2E_TESTS_ATLAS_X509_PEM_BASE64',
4343
'E2E_TESTS_ATLAS_IAM_ACCESS_KEY_ID',
4444
'E2E_TESTS_ATLAS_IAM_SECRET_ACCESS_KEY',
4545
'E2E_TESTS_ATLAS_IAM_TEMP_ROLE_ARN',
@@ -724,7 +724,11 @@ describe('Connection form', function () {
724724
try {
725725
tempdir = await fs.mkdtemp(path.join(os.tmpdir(), 'connect-tests-'));
726726
const certPath = path.join(tempdir, 'x509.pem');
727-
await fs.writeFile(certPath, process.env.E2E_TESTS_ATLAS_X509_PEM ?? '');
727+
await fs.writeFile(
728+
certPath,
729+
process.env.E2E_TESTS_ATLAS_X509_PEM_BASE64 ?? '',
730+
'base64'
731+
);
728732

729733
const atlasConnectionOptions: ConnectFormState = {
730734
hosts: [process.env.E2E_TESTS_ATLAS_HOST ?? ''],

packages/data-service/src/connect.spec.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const {
3030
E2E_TESTS_SERVERLESS_HOST,
3131
E2E_TESTS_FREE_TIER_HOST,
3232
E2E_TESTS_ANALYTICS_NODE_HOST,
33-
E2E_TESTS_ATLAS_X509_PEM,
33+
E2E_TESTS_ATLAS_X509_PEM_BASE64,
3434
} = process.env;
3535

3636
const buildConnectionString = (
@@ -204,15 +204,22 @@ describe('connect', function () {
204204
});
205205

206206
it('connects to atlas with X509', async function () {
207-
if (!IS_CI && !(E2E_TESTS_ATLAS_HOST || E2E_TESTS_ATLAS_X509_PEM)) {
207+
if (
208+
!IS_CI &&
209+
!(E2E_TESTS_ATLAS_HOST || E2E_TESTS_ATLAS_X509_PEM_BASE64)
210+
) {
208211
return this.skip();
209212
}
210213

211214
let tempdir;
212215
try {
213216
tempdir = await fs.mkdtemp(path.join(os.tmpdir(), 'connect-tests-'));
214217
const certPath = path.join(tempdir, 'x509.pem');
215-
await fs.writeFile(certPath, E2E_TESTS_ATLAS_X509_PEM);
218+
await fs.writeFile(
219+
certPath,
220+
process.env.E2E_TESTS_ATLAS_X509_PEM_BASE64 ?? '',
221+
'base64'
222+
);
216223

217224
const url = new ConnectionStringUrl(
218225
`mongodb+srv://${E2E_TESTS_ATLAS_HOST || ''}/admin`

0 commit comments

Comments
 (0)