Skip to content

Commit 9e23057

Browse files
Merge remote-tracking branch 'origin/beta-releases' into ga-releases
2 parents dfee8a5 + 7a6eb4d commit 9e23057

File tree

372 files changed

+12292
-9091
lines changed

Some content is hidden

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

372 files changed

+12292
-9091
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,7 @@ tasks:
352352
e2e_test_groups: <%= E2E_TEST_GROUPS.length %>
353353
e2e_test_group: <%= group.number %>
354354
debug: 'compass-e2e-tests*,electron*,hadron*,mongo*'
355+
mongodb_version: latest-enterprise
355356
<% } %>
356357

357358
- name: generate-vulnerability-report
@@ -472,7 +473,7 @@ tasks:
472473
compass_distribution: compass
473474
- func: test-packaged-app
474475
vars:
475-
mongodb_version: latest
476+
mongodb_version: latest-enterprise
476477
compass_distribution: compass
477478
e2e_test_groups: <%= E2E_TEST_GROUPS.length %>
478479
e2e_test_group: <%= group.number %>
@@ -494,7 +495,7 @@ tasks:
494495
compass_distribution: compass
495496
- func: test-web-sandbox
496497
vars:
497-
mongodb_version: latest
498+
mongodb_version: latest-enterprise
498499
browser_name: '<%= browser %>'
499500
compass_distribution: compass
500501
e2e_test_groups: <%= E2E_TEST_GROUPS.length %>

.evergreen/buildvariants-and-tasks.yml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ tasks:
351351
e2e_test_groups: 3
352352
e2e_test_group: 1
353353
debug: compass-e2e-tests*,electron*,hadron*,mongo*
354+
mongodb_version: latest-enterprise
354355
- name: e2e-multiple-connections-2
355356
tags:
356357
- required-for-publish
@@ -364,6 +365,7 @@ tasks:
364365
e2e_test_groups: 3
365366
e2e_test_group: 2
366367
debug: compass-e2e-tests*,electron*,hadron*,mongo*
368+
mongodb_version: latest-enterprise
367369
- name: e2e-multiple-connections-3
368370
tags:
369371
- required-for-publish
@@ -377,6 +379,7 @@ tasks:
377379
e2e_test_groups: 3
378380
e2e_test_group: 3
379381
debug: compass-e2e-tests*,electron*,hadron*,mongo*
382+
mongodb_version: latest-enterprise
380383
- name: generate-vulnerability-report
381384
tags:
382385
- required-for-publish
@@ -1542,7 +1545,7 @@ tasks:
15421545
compass_distribution: compass
15431546
- func: test-packaged-app
15441547
vars:
1545-
mongodb_version: latest
1548+
mongodb_version: latest-enterprise
15461549
compass_distribution: compass
15471550
e2e_test_groups: 3
15481551
e2e_test_group: 1
@@ -1565,7 +1568,7 @@ tasks:
15651568
compass_distribution: compass
15661569
- func: test-packaged-app
15671570
vars:
1568-
mongodb_version: latest
1571+
mongodb_version: latest-enterprise
15691572
compass_distribution: compass
15701573
e2e_test_groups: 3
15711574
e2e_test_group: 2
@@ -1588,7 +1591,7 @@ tasks:
15881591
compass_distribution: compass
15891592
- func: test-packaged-app
15901593
vars:
1591-
mongodb_version: latest
1594+
mongodb_version: latest-enterprise
15921595
compass_distribution: compass
15931596
e2e_test_groups: 3
15941597
e2e_test_group: 3
@@ -1608,7 +1611,7 @@ tasks:
16081611
compass_distribution: compass
16091612
- func: test-web-sandbox
16101613
vars:
1611-
mongodb_version: latest
1614+
mongodb_version: latest-enterprise
16121615
browser_name: chrome
16131616
compass_distribution: compass
16141617
e2e_test_groups: 3
@@ -1629,7 +1632,7 @@ tasks:
16291632
compass_distribution: compass
16301633
- func: test-web-sandbox
16311634
vars:
1632-
mongodb_version: latest
1635+
mongodb_version: latest-enterprise
16331636
browser_name: chrome
16341637
compass_distribution: compass
16351638
e2e_test_groups: 3
@@ -1650,7 +1653,7 @@ tasks:
16501653
compass_distribution: compass
16511654
- func: test-web-sandbox
16521655
vars:
1653-
mongodb_version: latest
1656+
mongodb_version: latest-enterprise
16541657
browser_name: chrome
16551658
compass_distribution: compass
16561659
e2e_test_groups: 3
@@ -1671,7 +1674,7 @@ tasks:
16711674
compass_distribution: compass
16721675
- func: test-web-sandbox
16731676
vars:
1674-
mongodb_version: latest
1677+
mongodb_version: latest-enterprise
16751678
browser_name: firefox
16761679
compass_distribution: compass
16771680
e2e_test_groups: 3
@@ -1692,7 +1695,7 @@ tasks:
16921695
compass_distribution: compass
16931696
- func: test-web-sandbox
16941697
vars:
1695-
mongodb_version: latest
1698+
mongodb_version: latest-enterprise
16961699
browser_name: firefox
16971700
compass_distribution: compass
16981701
e2e_test_groups: 3
@@ -1713,7 +1716,7 @@ tasks:
17131716
compass_distribution: compass
17141717
- func: test-web-sandbox
17151718
vars:
1716-
mongodb_version: latest
1719+
mongodb_version: latest-enterprise
17171720
browser_name: firefox
17181721
compass_distribution: compass
17191722
e2e_test_groups: 3

.evergreen/compass_package.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,8 @@ if [[ "$OSTYPE" == "cygwin" ]]; then
77
net start MSIServer
88
fi
99

10-
# Ensure .sbom is always created with fresh data
11-
rm -rvf .sbom && mkdir -pv .sbom
12-
1310
echo "Creating signed release build..."
14-
npm run package-compass $COMPASS_DISTRIBUTION;
11+
npm run package-compass-nocompile $COMPASS_DISTRIBUTION
1512
npm run generate-first-party-deps-json
1613

1714
ls -la packages/compass/dist

.evergreen/functions.yml

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -410,19 +410,15 @@ functions:
410410
DEBUG: ${debug}
411411
npm_config_loglevel: ${npm_loglevel}
412412
COMPASS_DISTRIBUTION: ${compass_distribution}
413-
SIGNING_SERVER_HOSTNAME: ${SIGNING_SERVER_HOSTNAME}
414-
SIGNING_SERVER_PRIVATE_KEY: ${SIGNING_SERVER_PRIVATE_KEY}
415-
SIGNING_SERVER_PRIVATE_KEY_CYGPATH: ${SIGNING_SERVER_PRIVATE_KEY_CYGPATH}
416-
SIGNING_SERVER_USERNAME: ${SIGNING_SERVER_USERNAME}
417-
SIGNING_SERVER_PORT: ${SIGNING_SERVER_PORT}
418-
GITHUB_PR_NUMBER: ${github_pr_number}
419-
PAPERTRAIL_KEY_ID: ${papertrail_key_id}
420-
PAPERTRAIL_SECRET_KEY: ${papertrail_secret_key}
421413
script: |
422414
set -e
415+
416+
# Ensure .sbom is always created with fresh data
417+
rm -rvf .sbom && mkdir -pv .sbom
418+
423419
# Load environment variables
424420
eval $(.evergreen/print-compass-env.sh)
425-
.evergreen/compass_package.sh
421+
cd packages/compass && npm run prepackage-compass
426422
- command: shell.exec
427423
params:
428424
working_dir: src
@@ -443,6 +439,29 @@ functions:
443439
set -e
444440
445441
.evergreen/create-sbom.sh
442+
- command: shell.exec
443+
params:
444+
working_dir: src
445+
shell: bash
446+
env:
447+
<<: *compass-env
448+
DEBUG: ${debug}
449+
npm_config_loglevel: ${npm_loglevel}
450+
COMPASS_DISTRIBUTION: ${compass_distribution}
451+
SIGNING_SERVER_HOSTNAME: ${SIGNING_SERVER_HOSTNAME}
452+
SIGNING_SERVER_PRIVATE_KEY: ${SIGNING_SERVER_PRIVATE_KEY}
453+
SIGNING_SERVER_PRIVATE_KEY_CYGPATH: ${SIGNING_SERVER_PRIVATE_KEY_CYGPATH}
454+
SIGNING_SERVER_USERNAME: ${SIGNING_SERVER_USERNAME}
455+
SIGNING_SERVER_PORT: ${SIGNING_SERVER_PORT}
456+
GITHUB_PR_NUMBER: ${github_pr_number}
457+
PAPERTRAIL_KEY_ID: ${papertrail_key_id}
458+
PAPERTRAIL_SECRET_KEY: ${papertrail_secret_key}
459+
COMPASS_WAS_COMPILED_AND_HAS_SBOM: '1'
460+
script: |
461+
set -e
462+
# Load environment variables
463+
eval $(.evergreen/print-compass-env.sh)
464+
.evergreen/compass_package.sh
446465
447466
get_first_party_dependency_list:
448467
- command: s3.get

.snyk

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,21 @@ version: v1.25.0
44
ignore:
55
SNYK-JS-AGGRIDCOMMUNITY-1932011:
66
- '*':
7-
reason: Not applicable as we do not use a valueFormatter or cellRenderer function
8-
expires: 2024-07-17T18:27:24.346Z
7+
reason: >-
8+
Not applicable as we do not use a valueFormatter or cellRenderer
9+
function
10+
expires: 2024-08-17T18:27:24.346Z
911
created: 2024-01-18T18:27:24.353Z
1012
SNYK-JS-AXIOS-6032459:
1113
- '*':
1214
reason: Not applicable to axios usage inside node-analytics package
1315
expires: 2024-10-30T10:18:43.435Z
1416
created: 2023-10-30T10:18:43.435Z
17+
SNYK-JS-ELECTRON-7443355:
18+
- '*':
19+
reason: Not applicable as we do not open / allow opening random webpages in our Electron app.
20+
expires: 2024-07-25T12:41:36.996Z
21+
created: 2024-07-19T12:41:36.999Z
1522
# patches apply the minimum changes required to fix a vulnerability
1623
patch:
1724
'npm:ms:20170412':

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33

44
## Getting Started
55

6-
You'll need node `^16` and npm `^8` installed on your machine to work with the repository locally.
6+
You'll need node `^18` and npm `^10` installed on your machine to work with the repository locally.
77
After your environment is ready, navigate to the repository and run `npm run bootstrap`, this will install dependencies and will compile all packages.
88

9-
After bootstrap is finished, you should be able to run `npm run start` and see Compass application running locally.
9+
After bootstrap is finished, you should be able to run `npm run start` and see Compass application running locally. Alternatively you can start a web version of the app by running `npm run start-web`.
1010

1111
Compass uses a monorepo is powered by [`npm workspaces`](https://docs.npmjs.com/cli/v7/using-npm/workspaces) and [`lerna`](https://github.com/lerna/lerna#readme), although not necessary, it might be helpful to have a high level understanding of those tools.
1212

@@ -80,7 +80,7 @@ DEBUG=hadron* npm run package-compass
8080
To speed up the process you might want to disable creating installer for the application. To do that you can set `HADRON_SKIP_INSTALLER` environmental variable to `true` when running the script
8181

8282
```sh
83-
HADRON_SKIP_INSTALLER=true npm run test-package-compass
83+
HADRON_SKIP_INSTALLER=true npm run package-compass
8484
```
8585

8686
### Publishing Packages

0 commit comments

Comments
 (0)