Skip to content

Commit 084c4ae

Browse files
Merge remote-tracking branch 'origin/main' into beta-releases
2 parents fe31128 + 2b44d26 commit 084c4ae

File tree

98 files changed

+2785
-1904
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

98 files changed

+2785
-1904
lines changed

.evergreen/buildvariants-and-tasks.in.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,12 @@ buildvariants:
275275
<% } %>
276276
<% } %>
277277

278+
- name: test-web-sandbox-atlas-cloud
279+
display_name: Test Web Sandbox (w/ Atlas Cloud login)
280+
run_on: ubuntu2004-large
281+
tasks:
282+
- name: test-web-sandbox-atlas-cloud
283+
278284
- name: generate-vulnerability-report
279285
display_name: Vulnerability Report
280286
run_on: ubuntu2004-large
@@ -504,6 +510,21 @@ tasks:
504510
<% } %>
505511
<% } %>
506512

513+
- name: test-web-sandbox-atlas-cloud
514+
tags:
515+
- required-for-publish
516+
- run-on-pr
517+
- assigned_to_jira_team_compass_compass
518+
- foliage_check_task_only
519+
commands:
520+
- func: prepare
521+
- func: install
522+
- func: bootstrap
523+
- func: test-web-sandbox-atlas-cloud
524+
vars:
525+
compass_distribution: compass
526+
debug: 'compass-e2e-tests*,electron*,hadron*,mongo*'
527+
507528
- name: create_static_analysis_report
508529
tags: ['required-for-publish', 'run-on-pr']
509530
depends_on:

.evergreen/buildvariants-and-tasks.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,11 @@ buildvariants:
257257
- name: test-web-sandbox-firefox-1
258258
- name: test-web-sandbox-firefox-2
259259
- name: test-web-sandbox-firefox-3
260+
- name: test-web-sandbox-atlas-cloud
261+
display_name: Test Web Sandbox (w/ Atlas Cloud login)
262+
run_on: ubuntu2004-large
263+
tasks:
264+
- name: test-web-sandbox-atlas-cloud
260265
- name: generate-vulnerability-report
261266
display_name: Vulnerability Report
262267
run_on: ubuntu2004-large
@@ -1715,6 +1720,20 @@ tasks:
17151720
e2e_test_groups: 3
17161721
e2e_test_group: 3
17171722
debug: compass-e2e-tests*,electron*,hadron*,mongo*
1723+
- name: test-web-sandbox-atlas-cloud
1724+
tags:
1725+
- required-for-publish
1726+
- run-on-pr
1727+
- assigned_to_jira_team_compass_compass
1728+
- foliage_check_task_only
1729+
commands:
1730+
- func: prepare
1731+
- func: install
1732+
- func: bootstrap
1733+
- func: test-web-sandbox-atlas-cloud
1734+
vars:
1735+
compass_distribution: compass
1736+
debug: compass-e2e-tests*,electron*,hadron*,mongo*
17181737
- name: create_static_analysis_report
17191738
tags:
17201739
- required-for-publish

.evergreen/functions.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -672,6 +672,42 @@ functions:
672672
eval $(.evergreen/print-compass-env.sh)
673673
npm run --unsafe-perm --workspace compass-e2e-tests test-ci web
674674
675+
676+
test-web-sandbox-atlas-cloud:
677+
- command: shell.exec
678+
# It can take a very long time for Atlas cluster to get deployed
679+
timeout_secs: 2400
680+
params:
681+
working_dir: src
682+
shell: bash
683+
env:
684+
<<: *compass-env
685+
DEBUG: ${debug|}
686+
COMPASS_E2E_ATLAS_CLOUD_SANDBOX_CLOUD_CONFIG: 'qa'
687+
COMPASS_E2E_ATLAS_CLOUD_SANDBOX_USERNAME: ${e2e_tests_compass_web_atlas_username}
688+
COMPASS_E2E_ATLAS_CLOUD_SANDBOX_PASSWORD: ${e2e_tests_compass_web_atlas_password}
689+
COMPASS_E2E_ATLAS_CLOUD_SANDBOX_DBUSER_USERNAME: ${e2e_tests_compass_web_atlas_db_username}
690+
COMPASS_E2E_ATLAS_CLOUD_SANDBOX_DBUSER_PASSWORD: ${e2e_tests_compass_web_atlas_password}
691+
MCLI_PUBLIC_API_KEY: ${e2e_tests_mcli_public_api_key}
692+
MCLI_PRIVATE_API_KEY: ${e2e_tests_mcli_private_api_key}
693+
MCLI_ORG_ID: ${e2e_tests_mcli_org_id}
694+
MCLI_PROJECT_ID: ${e2e_tests_mcli_project_id}
695+
MCLI_OPS_MANAGER_URL: ${e2e_tests_mcli_ops_manager_url}
696+
script: |
697+
set -e
698+
# Load environment variables
699+
eval $(.evergreen/print-compass-env.sh)
700+
# Create Atlas cluster for test project
701+
source .evergreen/start-atlas-cloud-cluster.sh
702+
# Run the tests
703+
echo "Starting e2e tests..."
704+
# We're only running a special subset of tests as provisioning atlas
705+
# clusters in CI is both pricey and flakey, so we want to limit the
706+
# coverage to reduce those factors (at least for now)
707+
npm run --unsafe-perm --workspace compass-e2e-tests test-ci -- -- web \
708+
--test-atlas-cloud-sandbox \
709+
--test-filter="atlas-cloud/**/*"
710+
675711
test-connectivity:
676712
- command: shell.exec
677713
# Fail the task if it's idle for 10 mins
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#!/bin/bash
2+
3+
# Atlas limits the naming to something like /^[\w\d-]{,23}$/ (and will auto
4+
# truncate if it's too long) so we're very limited in terms of how unique this
5+
# name can be. Hopefully the epoch + part of git hash is enough for these to not
6+
# overlap when tests are running
7+
ATLAS_CLOUD_TEST_CLUSTER_NAME="e2e-$(date +"%s")-$(git rev-parse HEAD)"
8+
9+
function atlascli() {
10+
docker run \
11+
-e MCLI_PUBLIC_API_KEY \
12+
-e MCLI_PRIVATE_API_KEY \
13+
-e MCLI_ORG_ID \
14+
-e MCLI_PROJECT_ID \
15+
-e MCLI_OPS_MANAGER_URL \
16+
mongodb/atlas atlas $@
17+
}
18+
19+
cleanup() {
20+
echo "Scheduling Atlas deployment \`$ATLAS_CLOUD_TEST_CLUSTER_NAME\` for deletion..."
21+
atlascli clusters delete $ATLAS_CLOUD_TEST_CLUSTER_NAME --force
22+
}
23+
24+
trap cleanup EXIT
25+
26+
echo "Creating Atlas deployment \`$ATLAS_CLOUD_TEST_CLUSTER_NAME\` to test against..."
27+
atlascli clusters create $ATLAS_CLOUD_TEST_CLUSTER_NAME \
28+
--provider AWS \
29+
--region US_EAST_1 \
30+
--tier M10
31+
32+
echo "Waiting for the deployment to be provisioned..."
33+
atlascli clusters watch "$ATLAS_CLOUD_TEST_CLUSTER_NAME"
34+
35+
echo "Getting connection string for provisioned cluster..."
36+
ATLAS_CLOUD_TEST_CLUSTER_CONNECTION_STRING_JSON="$(atlascli clusters connectionStrings describe $ATLAS_CLOUD_TEST_CLUSTER_NAME -o json)"
37+
38+
export COMPASS_E2E_ATLAS_CLOUD_SANDBOX_DEFAULT_CONNECTIONS="{\"$ATLAS_CLOUD_TEST_CLUSTER_NAME\": $ATLAS_CLOUD_TEST_CLUSTER_CONNECTION_STRING_JSON}"
39+
echo "Cluster connections: $COMPASS_E2E_ATLAS_CLOUD_SANDBOX_DEFAULT_CONNECTIONS"

.github/workflows/bump-packages.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,6 @@ jobs:
5555
commit-message: 'chore(release): bump package versions'
5656
branch: ci/bump-packages
5757
title: 'chore(release): bump package versions'
58+
labels: no-title-validation
5859
body: |
5960
- Bump package versions

.github/workflows/update-electron.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,15 @@ jobs:
4040
run: |
4141
node scripts/update-electron.js
4242
git add .
43-
git commit --no-allow-empty -m "chore: update electron" || true
43+
git commit --no-allow-empty -m "chore(deps): update electron" || true
4444
- name: Create Pull Request
4545
id: cpr
4646
uses: peter-evans/create-pull-request@v6
4747
with:
4848
token: ${{ secrets.SVC_DEVTOOLSBOT_TOKEN }}
49-
commit-message: 'chore: update electron'
49+
commit-message: 'chore(deps): update electron'
5050
branch: ci/update-electron
51-
title: 'chore: update electron'
51+
title: 'chore(deps): update electron'
52+
labels: no-title-validation
5253
body: |
5354
- Update electron

THIRD-PARTY-NOTICES.md

Lines changed: 4 additions & 4 deletions
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 Mon Oct 28 2024.
2+
This document was automatically generated on Tue Oct 29 2024.
33

44
## List of dependencies
55

@@ -248,7 +248,7 @@ Package|Version|License
248248
**[ee-first](#e2746902c758ae8a6f91ffb9618cd53717f936cb33c6323e65b6b7b24f7ebefe)**|1.1.1|MIT
249249
**[electron-dl](#e97e034c7b93c63e7a433d75f6f1de3e0668764225ebbd61dbde8d1b55d6f3b7)**|3.5.0|MIT
250250
**[electron-squirrel-startup](#09fb8168e8fda2e174f8d1a1c392ffd8f762c5637c788edd00d1e2486d060349)**|1.0.1|Apache-2.0
251-
**[electron](#4dac8b39331bcb6b30b99afe0849c00e3153935fcab1f1086622b9a2ccb4afc8)**|32.2.1|MIT
251+
**[electron](#ddfad0a406da8c661d832155ebc87c378ac67db5d3c70f33126149f0084c639b)**|32.2.2|MIT
252252
**[encodeurl](#b89152db475e86531e570f87b45d8a51aa5e5d87d4cc3b960cee7b8febf1d26a)**|1.0.2|MIT
253253
**[encodeurl](#177948a319ae0aeebbd65742c53c62b37c75ec1d021afa5a188d10a7ceae6623)**|2.0.0|MIT
254254
**[end-of-stream](#fadc10994f5fa767d06fb25cfff35fb17a895daf3bc3477c782907668ed16563)**|1.4.4|MIT
@@ -19215,8 +19215,8 @@ License files:
1921519215

1921619216

1921719217

19218-
<a id="4dac8b39331bcb6b30b99afe0849c00e3153935fcab1f1086622b9a2ccb4afc8"></a>
19219-
### [electron](https://www.npmjs.com/package/electron) (version 32.2.1)
19218+
<a id="ddfad0a406da8c661d832155ebc87c378ac67db5d3c70f33126149f0084c639b"></a>
19219+
### [electron](https://www.npmjs.com/package/electron) (version 32.2.2)
1922019220
License tags: MIT
1922119221

1922219222
License files:

configs/webpack-config-compass/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"email": "[email protected]"
1414
},
1515
"homepage": "https://github.com/mongodb-js/compass",
16-
"version": "1.4.4",
16+
"version": "1.4.5",
1717
"repository": {
1818
"type": "git",
1919
"url": "https://github.com/mongodb-js/compass.git"
@@ -73,7 +73,7 @@
7373
"cli-progress": "^3.9.1",
7474
"core-js": "^3.17.3",
7575
"css-loader": "^4.3.0",
76-
"electron": "^32.2.1",
76+
"electron": "^32.2.2",
7777
"html-webpack-plugin": "^5.6.0",
7878
"less": "^3.13.1",
7979
"less-loader": "^10.0.1",

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 Mon, Oct 28, 2024 at 06:47 PM
4+
Generated on Tue, Oct 29, 2024 at 05:29 PM
55

66
## Table of Contents
77

0 commit comments

Comments
 (0)