Skip to content

Commit

Permalink
Merge branch 'main' into tracking-plan
Browse files Browse the repository at this point in the history
  • Loading branch information
mcasimir authored Aug 28, 2024
2 parents c955d29 + eddd080 commit 537a308
Show file tree
Hide file tree
Showing 360 changed files with 12,933 additions and 21,676 deletions.
23 changes: 0 additions & 23 deletions .evergreen/buildvariants-and-tasks.in.yml
Original file line number Diff line number Diff line change
Expand Up @@ -246,14 +246,6 @@ buildvariants:
- name: e2e-coverage-<%= group.number %>
<% } %>

- name: e2e-multiple-connections
display_name: E2E Multiple Connections
run_on: ubuntu2004-large
tasks:
<% for(const group of E2E_TEST_GROUPS) { %>
- name: e2e-multiple-connections-<%= group.number %>
<% } %>

- name: csfle-tests
display_name: CSFLE Tests
run_on: ubuntu2004-large
Expand Down Expand Up @@ -340,21 +332,6 @@ tasks:
debug: 'compass-e2e-tests*,electron*,hadron*,mongo*'
<% } %>

<% for(const group of E2E_TEST_GROUPS) { %>
- name: e2e-multiple-connections-<%= group.number %>
tags: ['required-for-publish', 'run-on-pr']
commands:
- func: prepare
- func: install
- func: bootstrap
- func: test-multiple-connections
vars:
e2e_test_groups: <%= E2E_TEST_GROUPS.length %>
e2e_test_group: <%= group.number %>
debug: 'compass-e2e-tests*,electron*,hadron*,mongo*'
mongodb_version: latest-enterprise
<% } %>

- name: generate-vulnerability-report
tags: ['required-for-publish', 'run-on-pr']
commands:
Expand Down
49 changes: 0 additions & 49 deletions .evergreen/buildvariants-and-tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -220,13 +220,6 @@ buildvariants:
- name: e2e-coverage-1
- name: e2e-coverage-2
- name: e2e-coverage-3
- name: e2e-multiple-connections
display_name: E2E Multiple Connections
run_on: ubuntu2004-large
tasks:
- name: e2e-multiple-connections-1
- name: e2e-multiple-connections-2
- name: e2e-multiple-connections-3
- name: csfle-tests
display_name: CSFLE Tests
run_on: ubuntu2004-large
Expand Down Expand Up @@ -338,48 +331,6 @@ tasks:
e2e_test_groups: 3
e2e_test_group: 3
debug: compass-e2e-tests*,electron*,hadron*,mongo*
- name: e2e-multiple-connections-1
tags:
- required-for-publish
- run-on-pr
commands:
- func: prepare
- func: install
- func: bootstrap
- func: test-multiple-connections
vars:
e2e_test_groups: 3
e2e_test_group: 1
debug: compass-e2e-tests*,electron*,hadron*,mongo*
mongodb_version: latest-enterprise
- name: e2e-multiple-connections-2
tags:
- required-for-publish
- run-on-pr
commands:
- func: prepare
- func: install
- func: bootstrap
- func: test-multiple-connections
vars:
e2e_test_groups: 3
e2e_test_group: 2
debug: compass-e2e-tests*,electron*,hadron*,mongo*
mongodb_version: latest-enterprise
- name: e2e-multiple-connections-3
tags:
- required-for-publish
- run-on-pr
commands:
- func: prepare
- func: install
- func: bootstrap
- func: test-multiple-connections
vars:
e2e_test_groups: 3
e2e_test_group: 3
debug: compass-e2e-tests*,electron*,hadron*,mongo*
mongodb_version: latest-enterprise
- name: generate-vulnerability-report
tags:
- required-for-publish
Expand Down
2 changes: 1 addition & 1 deletion .evergreen/compass_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if [[ "$OSTYPE" == "cygwin" ]]; then
fi

echo "Creating signed release build..."
npm run package-compass-nocompile $COMPASS_DISTRIBUTION
npm run package-compass-nocompile
npm run generate-first-party-deps-json

ls -la packages/compass/dist
Expand Down
58 changes: 6 additions & 52 deletions .evergreen/functions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -301,12 +301,13 @@ functions:
shell: bash
env:
<<: *compass-env
HADRON_DISTRIBUTION: ${compass_distribution}
script: |
set -e
# Load environment variables
eval $(.evergreen/print-compass-env.sh)
# Generates and expansion file with build target metadata in packages/compass/expansions.yml
npm run --workspace mongodb-compass build-info -- ${target_platform} ${target_arch} --format=yaml --flatten ${compass_distribution} --out expansions.raw.yml
npm run --workspace mongodb-compass build-info -- ${target_platform} ${target_arch} --format=yaml --flatten --out expansions.raw.yml
# the 'author' key conflicts with evergreen's own expansion
grep -v '^author:' < packages/compass/expansions.raw.yml > packages/compass/expansions.yml
- command: expansions.update
Expand Down Expand Up @@ -405,7 +406,7 @@ functions:
<<: *compass-env
DEBUG: ${debug}
npm_config_loglevel: ${npm_loglevel}
COMPASS_DISTRIBUTION: ${compass_distribution}
HADRON_DISTRIBUTION: ${compass_distribution}
script: |
set -e
Expand Down Expand Up @@ -443,7 +444,7 @@ functions:
<<: *compass-env
DEBUG: ${debug}
npm_config_loglevel: ${npm_loglevel}
COMPASS_DISTRIBUTION: ${compass_distribution}
HADRON_DISTRIBUTION: ${compass_distribution}
SIGNING_SERVER_HOSTNAME: ${SIGNING_SERVER_HOSTNAME}
SIGNING_SERVER_PRIVATE_KEY: ${SIGNING_SERVER_PRIVATE_KEY}
SIGNING_SERVER_PRIVATE_KEY_CYGPATH: ${SIGNING_SERVER_PRIVATE_KEY_CYGPATH}
Expand Down Expand Up @@ -586,6 +587,7 @@ functions:
E2E_TEST_GROUPS: ${e2e_test_groups}
E2E_TEST_GROUP: ${e2e_test_group}
ATLAS_LOCAL_VERSION: latest
HADRON_DISTRIBUTION: compass
script: |
set -e
# Load environment variables
Expand All @@ -600,30 +602,6 @@ functions:
tar czf coverage.tgz packages/compass-e2e-tests/coverage
test-multiple-connections:
- command: shell.exec
# Fail the task if it's idle for 10 mins
timeout_secs: 600
params:
working_dir: src
shell: bash
env:
<<: *compass-env
DEBUG: ${debug|}
MONGODB_VERSION: ${mongodb_version|}
MONGODB_RUNNER_VERSION: ${mongodb_version|}
E2E_TEST_GROUPS: ${e2e_test_groups}
E2E_TEST_GROUP: ${e2e_test_group}
script: |
set -e
# Load environment variables
eval $(.evergreen/print-compass-env.sh)
echo "Running E2E tests for multiple connections"
npm run --unsafe-perm --workspace compass-e2e-tests test-ci -- -- --test-multiple-connections
test-packaged-app:
- command: shell.exec
# Fail the task if it's idle for 10 mins
Expand Down Expand Up @@ -946,6 +924,7 @@ functions:
DEBUG: ${debug}
SNYK_TOKEN: ${snyk_token}
JIRA_API_TOKEN: ${jira_api_token}
HADRON_DISTRIBUTION: compass
script: |
set -e
# Load environment variables
Expand Down Expand Up @@ -977,28 +956,3 @@ functions:
# Fails if the report failed and is not a patch, including release branches:
exit $return_code
fi
generative-ai-accuracy-tests:
- command: shell.exec
# Fail the task if it's idle for 10 mins
timeout_secs: 600
params:
working_dir: src
shell: bash
env:
<<: *compass-env
ATLAS_PUBLIC_KEY: ${atlas_public_key}
ATLAS_PRIVATE_KEY: ${atlas_private_key}
AI_ACCURACY_RESULTS_MONGODB_CONNECTION_STRING: ${accuracy_results_mdb_connection_string}
script: |
set -e
# Load environment variables
eval $(.evergreen/print-compass-env.sh)
set +e
npm run --workspace @mongodb-js/compass-generative-ai ai-accuracy-tests
return_code=$?
set -e
# Fail when the accuracy tests fail:
exit $return_code
9 changes: 0 additions & 9 deletions .evergreen/generative-ai-accuracy-test-empty.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .evergreen/generative-ai-accuracy-test.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .snyk
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ ignore:
reason: >-
Not applicable as we do not use a valueFormatter or cellRenderer
function
expires: 2024-08-17T18:27:24.346Z
expires: 2024-11-15T18:27:24.346Z
created: 2024-01-18T18:27:24.353Z
SNYK-JS-AXIOS-6032459:
- '*':
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ In addition to running lerna commands directly, there are a few convenient npm s
To build compass you can run `package-compass` script:

```sh
npm run package-compass
HADRON_DISTRIBUTION='compass' npm run package-compass
```

You can change the type of distribution you are building with `HADRON_DISTRIBUTION` environmental variable:
It is required to provide `HADRON_DISTRIBUTION` env variable explicitly. You can change the type of distribution you are building by setting a different `HADRON_DISTRIBUTION` value:

```sh
HADRON_DISTRIBUTION='compass-readonly' npm run package-compass
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ Is there anything else you’d like to see in Compass? Let us know by submitting
- [**@mongodb-js/databases-collections-list**](packages/databases-collections-list): List view for the databases and collections
- [**@mongodb-js/explain-plan-helper**](packages/explain-plan-helper): Explain plan utility methods for MongoDB Compass
- [**@mongodb-js/my-queries-storage**](packages/my-queries-storage): Saved aggregations and queries storage
- [**@mongodb-js/ssh-tunnel**](packages/ssh-tunnel): Yet another ssh tunnel based on ssh2
- [**bson-transpilers**](packages/bson-transpilers): Source to source compilers using ANTLR
- [**compass-e2e-tests**](packages/compass-e2e-tests): E2E test suite for Compass app that follows smoke tests / feature testing matrix
- [**compass-preferences-model**](packages/compass-preferences-model): Compass preferences model
Expand Down
Loading

0 comments on commit 537a308

Please sign in to comment.