Skip to content

Commit e61f3fa

Browse files
committed
Merge remote-tracking branch 'origin/main' into 1.35-releases
2 parents d0adb25 + 4f543ec commit e61f3fa

File tree

345 files changed

+16755
-7820
lines changed

Some content is hidden

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

345 files changed

+16755
-7820
lines changed

.evergreen/buildvariants.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ buildvariants:
7575
- name: test-packaged-app-60x-enterprise
7676
depends_on: package-compass
7777

78+
- name: test-packaged-app-latest
79+
depends_on: package-compass
80+
7881
- name: windows
7982
display_name: Windows 10 (Test and Package)
8083
run_on: windows-vsCurrent-large
@@ -121,6 +124,9 @@ buildvariants:
121124
- name: test-packaged-app-60x-enterprise
122125
depends_on: package-compass
123126

127+
- name: test-packaged-app-latest
128+
depends_on: package-compass
129+
124130
- name: rhel
125131
display_name: RHEL 7.6 (Test and Package)
126132
run_on: rhel76-large

.evergreen/config.json

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,23 @@
113113
{
114114
"name": "60x-community",
115115
"vars": {
116-
"mongodb_version": "6.x.x"
116+
"mongodb_version": "6.0.x"
117117
}
118118
},
119119
{
120120
"name": "60x-enterprise",
121121
"vars": {
122-
"mongodb_version": "6.x.x",
122+
"mongodb_version": "6.0.x",
123123
"mongodb_use_enterprise": "yes"
124124
}
125+
},
126+
{
127+
"name": "latest",
128+
"vars": {
129+
"mongodb_version": "latest-alpha",
130+
"mongodb_use_enterprise": "yes"
131+
},
132+
"skip_on": ["macos-1100", "macos-1100-arm64", "rhel76-large"]
125133
}
126134
]
127135
}

.evergreen/functions.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,15 @@ functions:
119119
.evergreen/preinstall.sh
120120
121121
# Make sure install worked
122-
echo "node -v";
122+
echo "Using node version:";
123123
node -v;
124-
echo "npm -v";
124+
echo "Using npm version:";
125125
npm -v;
126+
127+
echo "Using gcc version:"
128+
gcc --version;
129+
echo "Using g++ version:"
130+
g++ --version;
126131
127132
install:
128133
- command: shell.exec
@@ -365,7 +370,13 @@ functions:
365370
eval $(.evergreen/print-compass-env.sh)
366371
source .evergreen/start-docker-envs.sh
367372
368-
echo "Running tests against packaged app at $COMPASS_APP_PATH..."
373+
MONGODB_TYPE="community";
374+
375+
if [[ "$MONGODB_USE_ENTERPRISE" == "yes" ]]; then
376+
MONGODB_TYPE="enterprise"
377+
fi
378+
379+
echo "Running tests against packaged app at $COMPASS_APP_PATH for MongoDB $MONGODB_VERSION ($MONGODB_TYPE)..."
369380
370381
if [[ "$IS_OSX" == "true" ]]; then
371382
echo "Disabling keychain usage in Compass (TODO: https://jira.mongodb.org/browse/BUILD-14458)"

.evergreen/print-compass-env.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,12 @@ function printCompassEnv() {
6767
pathsToPrepend.unshift(`${newPWD}/.deps/bin`);
6868
}
6969

70-
if (process.env.IS_RHEL === 'true') {
71-
// To build node modules on RHEL post electron 13 we need
70+
if (process.env.PLATFORM === 'linux') {
71+
// To build node modules on linux post electron 13 we need
7272
// a newer c++ compiler version, this adds it.
7373
// https://jira.mongodb.org/browse/COMPASS-5150
7474
pathsToPrepend.unshift('/opt/mongodbtoolchain/v3/bin');
75-
}
7675

77-
if (process.env.PLATFORM === 'linux') {
7876
// Make sure that linux is using python 3.6 (node-gyp requirement)
7977
pathsToPrepend.unshift('/opt/python/3.6/bin');
8078
}

.evergreen/print-compass-env.sh

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

33
set -e
44

5-
export MONGODB_DEFAULT_VERSION=6.x.x
5+
export MONGODB_DEFAULT_VERSION=6.0.x
66

77
if [[ $OSTYPE == "cygwin" ]]; then
88
export PLATFORM='win32'

.evergreen/tasks.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ tasks:
321321
compass_distribution: compass
322322
- func: test-packaged-app
323323
vars:
324-
mongodb_version: '6.x.x'
324+
mongodb_version: '6.0.x'
325325
compass_distribution: compass
326326
debug: 'compass-e2e-tests*,electron*,hadron*,mongo*'
327327

@@ -341,7 +341,28 @@ tasks:
341341
compass_distribution: compass
342342
- func: test-packaged-app
343343
vars:
344-
mongodb_version: '6.x.x'
344+
mongodb_version: '6.0.x'
345+
mongodb_use_enterprise: 'yes'
346+
compass_distribution: compass
347+
debug: 'compass-e2e-tests*,electron*,hadron*,mongo*'
348+
349+
- name: test-packaged-app-latest
350+
tags: ['required-for-publish', 'run-on-pr']
351+
commands:
352+
- func: prepare
353+
- func: install
354+
- func: bootstrap
355+
vars:
356+
scope: 'compass-e2e-tests'
357+
- func: apply-compass-target-expansion
358+
vars:
359+
compass_distribution: compass
360+
- func: get-packaged-app
361+
vars:
362+
compass_distribution: compass
363+
- func: test-packaged-app
364+
vars:
365+
mongodb_version: 'latest-alpha'
345366
mongodb_use_enterprise: 'yes'
346367
compass_distribution: compass
347368
debug: 'compass-e2e-tests*,electron*,hadron*,mongo*'

THIRD-PARTY-NOTICES.md

Lines changed: 39 additions & 829 deletions
Large diffs are not rendered by default.

configs/mocha-config-compass/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"access": "public"
2525
},
2626
"dependencies": {
27-
"@electron/remote": "^2.0.8",
27+
"@electron/remote": "^2.0.9",
2828
"@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
2929
"chai": "^4.3.4",
3030
"chai-dom": "^1.9.0",

configs/webpack-config-compass/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"cli-progress": "^3.9.1",
7575
"core-js": "^3.17.3",
7676
"css-loader": "^4.3.0",
77-
"electron": "^15.5.7",
77+
"electron": "^22.0.2",
7878
"html-webpack-plugin": "^5.3.2",
7979
"less-loader": "^10.0.1",
8080
"mini-css-extract-plugin": "^2.3.0",

0 commit comments

Comments
 (0)