Skip to content

Commit 9f7471c

Browse files
Merge remote-tracking branch 'origin/beta-releases' into ga-releases
2 parents b8d9eaa + 8e41fd2 commit 9f7471c

File tree

1,173 files changed

+43289
-28909
lines changed

Some content is hidden

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

1,173 files changed

+43289
-28909
lines changed

.evergreen/buildvariants.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,12 @@ buildvariants:
8181
- name: test-packaged-app-60x-enterprise
8282
depends_on: package-compass
8383

84+
- name: test-packaged-app-70x-community
85+
depends_on: package-compass
86+
87+
- name: test-packaged-app-70x-enterprise
88+
depends_on: package-compass
89+
8490
- name: test-packaged-app-latest
8591
depends_on: package-compass
8692

@@ -130,6 +136,12 @@ buildvariants:
130136
- name: test-packaged-app-60x-enterprise
131137
depends_on: package-compass
132138

139+
- name: test-packaged-app-70x-community
140+
depends_on: package-compass
141+
142+
- name: test-packaged-app-70x-enterprise
143+
depends_on: package-compass
144+
133145
- name: test-packaged-app-latest
134146
depends_on: package-compass
135147

@@ -179,6 +191,12 @@ buildvariants:
179191
- name: test-packaged-app-60x-enterprise
180192
depends_on: package-compass
181193

194+
- name: test-packaged-app-70x-community
195+
depends_on: package-compass
196+
197+
- name: test-packaged-app-70x-enterprise
198+
depends_on: package-compass
199+
182200
- name: macos
183201
display_name: MacOS x64 11.00 (Test and Package)
184202
run_on: macos-1100
@@ -204,6 +222,14 @@ buildvariants:
204222
run_on: macos-1100-gui
205223
depends_on: package-compass
206224

225+
- name: test-packaged-app-70x-community
226+
run_on: macos-1100-gui
227+
depends_on: package-compass
228+
229+
- name: test-packaged-app-70x-enterprise
230+
run_on: macos-1100-gui
231+
depends_on: package-compass
232+
207233
- name: macos-arm
208234
display_name: MacOS arm64 11.00 (Test and Package)
209235
run_on: macos-1100-arm64
@@ -228,3 +254,11 @@ buildvariants:
228254
- name: test-packaged-app-60x-enterprise
229255
run_on: macos-1100-arm64-gui
230256
depends_on: package-compass
257+
258+
- name: test-packaged-app-70x-community
259+
run_on: macos-1100-arm64-gui
260+
depends_on: package-compass
261+
262+
- name: test-packaged-app-70x-enterprise
263+
run_on: macos-1100-arm64-gui
264+
depends_on: package-compass

.evergreen/config.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,18 @@
118118
"mongodb_version": "6.0.x-enterprise"
119119
}
120120
},
121+
{
122+
"name": "70x-community",
123+
"vars": {
124+
"mongodb_version": "7.0.x"
125+
}
126+
},
127+
{
128+
"name": "70x-enterprise",
129+
"vars": {
130+
"mongodb_version": "7.0.x-enterprise"
131+
}
132+
},
121133
{
122134
"name": "latest",
123135
"vars": {

.evergreen/functions.yml

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ variables:
2323
- &compass-env
2424
WORKDIR: ${workdir}
2525
CI: '1'
26+
MONGODB_COMPASS_TEST_USE_PLAIN_SAFE_STORAGE: 'true'
2627
EVERGREEN: '1'
2728
EVERGREEN_AUTHOR: ${author}
2829
EVERGREEN_BRANCH_NAME: ${branch_name}
@@ -438,8 +439,6 @@ functions:
438439
echo "Running tests against packaged app at $COMPASS_APP_PATH for MongoDB $MONGODB_VERSION..."
439440
440441
if [[ "$IS_OSX" == "true" ]]; then
441-
echo "Disabling keychain usage in Compass (TODO: https://jira.mongodb.org/browse/COMPASS-7102)"
442-
export COMPASS_E2E_DISABLE_KEYCHAIN_USAGE="true"
443442
echo "Disabling clipboard usage in e2e tests (TODO: https://jira.mongodb.org/browse/BUILD-14780)"
444443
export COMPASS_E2E_DISABLE_CLIPBOARD_USAGE="true"
445444
fi
@@ -642,3 +641,28 @@ functions:
642641
if [[ "$EVERGREEN_IS_PATCH" != "true" ]]; then
643642
exit $return_code
644643
fi
644+
645+
generative-ai-accuracy-tests:
646+
- command: shell.exec
647+
# Fail the task if it's idle for 10 mins
648+
timeout_secs: 600
649+
params:
650+
working_dir: src
651+
shell: bash
652+
env:
653+
<<: *compass-env
654+
ATLAS_PUBLIC_KEY: ${atlas_public_key}
655+
ATLAS_PRIVATE_KEY: ${atlas_private_key}
656+
AI_ACCURACY_RESULTS_MONGODB_CONNECTION_STRING: ${accuracy_results_mdb_connection_string}
657+
script: |
658+
set -e
659+
# Load environment variables
660+
eval $(.evergreen/print-compass-env.sh)
661+
662+
set +e
663+
npm run --workspace @mongodb-js/compass-generative-ai ai-accuracy-tests
664+
return_code=$?
665+
set -e
666+
667+
# Fail when the accuracy tests fail:
668+
exit $return_code
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This evergreen .yml is only used in periodic builds.
2+
# We don't want it to run on every patch as that would be too many
3+
# requests to our ai model (expensive).
4+
5+
unset_function_vars: true
6+
stepback: false
7+
exec_timeout_secs: 5400
8+
ignore:
9+
- AUTHORS
10+
- THIRD-PARTY-NOTICES.md
11+
include:
12+
# Referenced from project root.
13+
- filename: .evergreen/functions.yml
14+
15+
tasks:
16+
- name: test-generative-ai-accuracy
17+
tags: []
18+
commands:
19+
- func: prepare
20+
- func: install
21+
- func: bootstrap
22+
- func: generative-ai-accuracy-tests
23+
vars:
24+
debug: 'compass*,electron*,hadron*,mongo*'
25+
26+
buildvariants:
27+
- name: test-generative-ai-accuracy
28+
display_name: Generative AI accuracy tests run against cloud-dev mms
29+
run_on: ubuntu2004-large
30+
tasks:
31+
- name: test-generative-ai-accuracy

.evergreen/tasks.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,46 @@ tasks:
351351
compass_distribution: compass
352352
debug: 'compass-e2e-tests*,electron*,hadron*,mongo*'
353353

354+
- name: test-packaged-app-70x-community
355+
tags: ['required-for-publish', 'run-on-pr']
356+
commands:
357+
- func: prepare
358+
- func: install
359+
- func: bootstrap
360+
vars:
361+
scope: 'compass-e2e-tests'
362+
- func: apply-compass-target-expansion
363+
vars:
364+
compass_distribution: compass
365+
- func: get-packaged-app
366+
vars:
367+
compass_distribution: compass
368+
- func: test-packaged-app
369+
vars:
370+
mongodb_version: '7.0.x'
371+
compass_distribution: compass
372+
debug: 'compass-e2e-tests*,electron*,hadron*,mongo*'
373+
374+
- name: test-packaged-app-70x-enterprise
375+
tags: ['required-for-publish', 'run-on-pr']
376+
commands:
377+
- func: prepare
378+
- func: install
379+
- func: bootstrap
380+
vars:
381+
scope: 'compass-e2e-tests'
382+
- func: apply-compass-target-expansion
383+
vars:
384+
compass_distribution: compass
385+
- func: get-packaged-app
386+
vars:
387+
compass_distribution: compass
388+
- func: test-packaged-app
389+
vars:
390+
mongodb_version: '7.0.x-enterprise'
391+
compass_distribution: compass
392+
debug: 'compass-e2e-tests*,electron*,hadron*,mongo*'
393+
354394
- name: test-packaged-app-latest
355395
tags: ['required-for-publish', 'run-on-pr']
356396
commands:

.gitattributes

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
* text=auto eol=lf
1+
* text=auto eol=lf
2+
/packages/bson-transpilers/lib/**/* linguist-generated=true
3+
packages/compass-crud/test/fixture-results/* linguist-generated=true

.github/workflows/codeql.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ jobs:
6262
- '**/*.spec.ts'
6363
- '**/*.test.tsx'
6464
- '**/*.spec.tsx'
65+
- 'scripts/**'
6566
6667
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
6768
# If this step fails, then you should remove it and run the build manually (see below)

.snyk

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ ignore:
1515
reason: None Given
1616
expires: 2024-01-10T00:00:00.000Z
1717
created: 2023-08-23T16:17:24.728Z
18+
SNYK-JS-AXIOS-6032459:
19+
- '*':
20+
reason: Not applicable to axios usage inside node-analytics package
21+
expires: 2024-10-30T10:18:43.435Z
22+
created: 2023-10-30T10:18:43.435Z
1823
# patches apply the minimum changes required to fix a vulnerability
1924
patch:
2025
'npm:ms:20170412':

AUTHORS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,5 @@ Prashant Thakur <[email protected]>
7777
Kevin Mas Ruiz <[email protected]>
7878
Taveesh Anand <[email protected]>
7979
Hinson Chan <[email protected]>
80+
Gokul Raam <[email protected]>
81+
Bailey Pearson <[email protected]>

0 commit comments

Comments
 (0)