Skip to content

Commit 645b026

Browse files
Merge remote-tracking branch 'origin/beta-releases' into ga-releases
2 parents 93133dc + 928feed commit 645b026

File tree

204 files changed

+8332
-35189
lines changed

Some content is hidden

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

204 files changed

+8332
-35189
lines changed

.evergreen/buildvariants.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ buildvariants:
9090
- name: test-packaged-app-latest
9191
depends_on: package-compass
9292

93+
- name: test-web-sandbox-firefox
94+
9395
- name: windows
9496
display_name: Windows 10 (Test and Package)
9597
run_on: windows-vsCurrent-large

.evergreen/config.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"test",
1313
["test-electron", { "gui": true }],
1414
"package",
15-
["test-packaged-app", { "gui": true, "depends_on": "package-compass" }]
15+
["test-packaged-app", { "gui": true, "depends_on": "package-compass" }],
16+
["test-web-sandbox", { "gui": true }]
1617
]
1718
},
1819
"tasks": {
@@ -137,6 +138,16 @@
137138
},
138139
"skip_on": ["macos-1100", "macos-1100-arm64", "rhel76-large"]
139140
}
141+
],
142+
"test-web-sandbox": [
143+
{
144+
"name": "firefox",
145+
"vars": {
146+
"mongodb_version": "latest-alpha-enterprise",
147+
"browser_name": "firefox"
148+
},
149+
"skip_on": ["macos-1100", "macos-1100-arm64", "rhel76-large", "windows-vsCurrent-large"]
150+
}
140151
]
141152
}
142153
},

.evergreen/functions.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,28 @@ functions:
534534
535535
npm run --unsafe-perm --workspace compass-e2e-tests test-packaged-ci
536536
537+
test-web-sandbox:
538+
- command: shell.exec
539+
# Fail the task if it's idle for 10 mins
540+
timeout_secs: 600
541+
params:
542+
working_dir: src
543+
shell: bash
544+
env:
545+
<<: *compass-env
546+
COMPASS_APP_PATH_ORIGINAL: ${appPath}
547+
COMPASS_APP_NAME: ${packagerOptions.name}
548+
DEBUG: ${debug|}
549+
MONGODB_VERSION: ${mongodb_version|}
550+
MONGODB_RUNNER_VERSION: ${mongodb_version|}
551+
BROWSER_NAME: ${browser_name}
552+
script: |
553+
set -e
554+
# Load environment variables
555+
eval $(.evergreen/print-compass-env.sh)
556+
source .evergreen/start-docker-envs.sh
557+
npm run --unsafe-perm --workspace compass-e2e-tests test-web
558+
537559
test-connectivity:
538560
- command: shell.exec
539561
# Fail the task if it's idle for 10 mins

.evergreen/tasks.in.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ tasks:
114114
- func: save-all-artifacts
115115
vars:
116116
compass_distribution: <% out(packageTask.vars.compass_distribution) %>
117-
<% };
118-
for (const testPackagedTask of tasks['test-packaged-app']) { %>
117+
<% } %>
118+
<% for (const testPackagedTask of tasks['test-packaged-app']) { %>
119119
- name: <% out(testPackagedTask.name) %>
120120
tags: ['required-for-publish', 'run-on-pr']
121121
commands:
@@ -135,4 +135,22 @@ for (const testPackagedTask of tasks['test-packaged-app']) { %>
135135
<% out(`${key}: '${value}'`) } %>
136136
compass_distribution: compass
137137
debug: 'compass-e2e-tests*,electron*,hadron*,mongo*'
138+
<% } %>
139+
<% for (const testPackagedTask of tasks['test-web-sandbox']) { %>
140+
- name: <% out(testPackagedTask.name) %>
141+
tags: ['required-for-publish', 'run-on-pr']
142+
commands:
143+
- func: prepare
144+
- func: install
145+
- func: bootstrap
146+
vars:
147+
scope: 'compass-e2e-tests'
148+
- func: apply-compass-target-expansion
149+
vars:
150+
compass_distribution: compass
151+
- func: test-web-sandbox
152+
vars: <% for (const [key, value] of Object.entries(testPackagedTask.vars)) { %>
153+
<% out(`${key}: '${value}'`) } %>
154+
compass_distribution: compass
155+
debug: 'compass-e2e-tests*,electron*,hadron*,mongo*'
138156
<% } %>

.evergreen/tasks.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ tasks:
157157
vars:
158158
compass_distribution: compass-isolated
159159

160+
160161
- name: test-packaged-app-40x-community
161162
tags: ['required-for-publish', 'run-on-pr']
162163
commands:
@@ -416,3 +417,22 @@ tasks:
416417
mongodb_version: 'latest-alpha-enterprise'
417418
compass_distribution: compass
418419
debug: 'compass-e2e-tests*,electron*,hadron*,mongo*'
420+
421+
422+
- name: test-web-sandbox-firefox
423+
tags: ['required-for-publish', 'run-on-pr']
424+
commands:
425+
- func: prepare
426+
- func: install
427+
- func: bootstrap
428+
vars:
429+
scope: 'compass-e2e-tests'
430+
- func: apply-compass-target-expansion
431+
vars:
432+
compass_distribution: compass
433+
- func: test-web-sandbox
434+
vars:
435+
mongodb_version: 'latest-alpha-enterprise'
436+
browser_name: 'firefox'
437+
compass_distribution: compass
438+
debug: 'compass-e2e-tests*,electron*,hadron*,mongo*'

THIRD-PARTY-NOTICES.md

Lines changed: 4 additions & 217 deletions
Large diffs are not rendered by default.

configs/eslint-config-compass/index.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const tsxOverrides = {
3939

4040
const testJsOverrides = {
4141
...common.testOverrides,
42-
files: ['**/*.spec.js', '**/*.spec.jsx', '**/*.test.js'],
42+
files: ['**/*.spec.js', '**/*.spec.jsx', '**/*.test.js', '**/test/**/*.js'],
4343
rules: {
4444
...common.testRules,
4545
'@mongodb-js/compass/unique-mongodb-log-id': 'off',
@@ -48,7 +48,13 @@ const testJsOverrides = {
4848
};
4949

5050
const testTsOverrides = {
51-
files: ['**/*.spec.ts', '**/*.spec.tsx', '**/*.test.tsx', '**/*.test.ts'],
51+
files: [
52+
'**/*.spec.ts',
53+
'**/*.spec.tsx',
54+
'**/*.test.tsx',
55+
'**/*.test.ts',
56+
'**/test/**/*.ts',
57+
],
5258
rules: {
5359
...common.testRules,
5460
...extraTsRules,

configs/eslint-config-compass/plugin.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ module.exports = {
2020
restrictedProviderImport('mongodb-data-service'),
2121
restrictedProviderImport('@mongodb-js/compass-logging'),
2222
restrictedProviderImport('@mongodb-js/compass-app-stores'),
23-
// TODO(COMPASS-7411): enable when possible
24-
// restrictedProviderImport('@mongodb-js/my-queries-storage'),
23+
restrictedProviderImport('@mongodb-js/my-queries-storage'),
2524
// TODO(COMPASS-7412): enable when possible
2625
// restrictedProviderImport('@mongodb-js/atlas-service'),
2726
restrictedProviderImport('compass-preferences-model'),

0 commit comments

Comments
 (0)