Skip to content

Commit 8cb524e

Browse files
Merge remote-tracking branch 'origin/main' into beta-releases
2 parents 02e39fb + 7cf5cfb commit 8cb524e

File tree

133 files changed

+4012
-2645
lines changed

Some content is hidden

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

133 files changed

+4012
-2645
lines changed

.github/workflows/publish-packages.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish
1+
name: Publish packages to npm
22
on:
33
# NOTE: avoid using the manual execution unless is the only way to fix some issue,
44
# rather retry failed jobs in case of flakes. The manual execution can potentially
@@ -59,7 +59,7 @@ jobs:
5959
6060
- name: "Publish tags"
6161
run: |
62-
npx lerna list -a --json | \
62+
npx lerna list --json | \
6363
jq -r '.[] | .name + "@" + .version' | \
6464
xargs -i sh -c "git tag -a {} -m {} || true"
6565
git push --follow-tags

.github/workflows/test-installers.yml

Lines changed: 148 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,111 @@ on:
2121

2222
jobs:
2323
test:
24-
name: Dummy action
25-
runs-on: ubuntu-latest
24+
name: ${{ matrix.package }} test ${{ matrix.test }} (${{ matrix.hadron-distribution }})
25+
strategy:
26+
fail-fast: false
27+
matrix:
28+
test:
29+
- time-to-first-query
30+
- auto-update-from
31+
- auto-update-to
32+
package:
33+
- osx_dmg
34+
- osx_zip
35+
- windows_zip
36+
- windows_msi
37+
- windows_setup
38+
- linux_deb
39+
# TODO: Re-enable (see https://github.com/mongodb-js/compass/actions/runs/13281152689/job/37079619474)
40+
# - linux_tar
41+
# TODO: Enable (needs a docker container)
42+
# - linux_rpm
43+
hadron-distribution:
44+
- compass
45+
- compass-readonly
46+
- compass-isolated
47+
include:
48+
# MacOS
49+
- package: osx_dmg
50+
runs-on: macos-13
51+
arch: x64
52+
hadron-platform: darwin
53+
- package: osx_zip
54+
runs-on: macos-latest
55+
arch: arm64
56+
hadron-platform: darwin
57+
58+
# Windows
59+
- package: windows_zip
60+
runs-on: windows-latest
61+
arch: x64
62+
hadron-platform: windows
63+
- package: windows_msi
64+
runs-on: windows-latest
65+
arch: x64
66+
hadron-platform: windows
67+
- package: windows_setup
68+
runs-on: windows-latest
69+
arch: x64
70+
hadron-platform: windows
71+
72+
# Linux
73+
- package: linux_deb
74+
runs-on: ubuntu-latest
75+
arch: x64
76+
hadron-platform: linux
77+
# - package: linux_tar
78+
# runs-on: ubuntu-latest
79+
# arch: x64
80+
# hadron-platform: linux
81+
# - package: linux_rpm
82+
# runs-on: ubuntu-latest
83+
# arch: x64
84+
# hadron-platform: linux
85+
86+
# Install the update server for auto-update tests
87+
- test: auto-update-from
88+
install-update-server: true
89+
- test: auto-update-to
90+
install-update-server: true
91+
92+
exclude:
93+
# TODO: See https://github.com/mongodb-js/compass/actions/runs/13281152689/job/37079620322
94+
- package: osx_dmg
95+
test: auto-update-from
96+
# TODO: See https://github.com/mongodb-js/compass/actions/runs/13281152689/job/37079621700
97+
- package: windows_setup
98+
test: auto-update-from
99+
# Skip auto-update tests for isolated and readonly distributions for now
100+
# This is not supported by the update server we're using in the test harness
101+
- hadron-distribution: compass-isolated
102+
test: auto-update-from
103+
- hadron-distribution: compass-isolated
104+
test: auto-update-to
105+
- hadron-distribution: compass-readonly
106+
test: auto-update-from
107+
- hadron-distribution: compass-readonly
108+
test: auto-update-to
109+
# Temporary skip failing auto-update-to tests
110+
- test: auto-update-to
111+
package: osx_dmg
112+
- test: auto-update-to
113+
package: windows_zip
114+
- test: auto-update-to
115+
package: windows_msi
116+
- test: auto-update-to
117+
package: windows_setup
118+
- test: auto-update-to
119+
package: linux_deb
120+
121+
# Skip time-to-first-query tests for readonly because it doesn't have editable documents
122+
# See https://github.com/mongodb-js/compass/actions/runs/13286945911/job/37097791601
123+
- hadron-distribution: compass-readonly
124+
test: time-to-first-query
125+
126+
runs-on: ${{ matrix.runs-on }}
127+
env:
128+
DEBUG: compass:smoketests:*
26129
steps:
27130
- name: Checkout
28131
uses: actions/checkout@v2
@@ -31,6 +134,47 @@ jobs:
31134
with:
32135
node-version: 20
33136
cache: "npm"
34-
- name: Install dependencies
137+
- name: Cache downloads
138+
uses: actions/cache@v4
139+
with:
140+
key: smoke-tests-downloads-${{ inputs.version }}-${{ runner.os }}-${{ runner.arch }}-${{ matrix.package }}
141+
path: packages/compass-smoke-tests/.downloads
142+
- name: Install dependencies and build packages
35143
run: npm ci
36-
144+
- name: Bootstrap packages
145+
run: npx lerna run bootstrap --scope @mongodb-js/compass-smoke-tests --include-dependencies
146+
147+
- name: Create GitHub App Token
148+
if: matrix.install-update-server
149+
uses: actions/create-github-app-token@v1
150+
id: app-token
151+
with:
152+
app-id: ${{ vars.DEVTOOLS_BOT_APP_ID }}
153+
private-key: ${{ secrets.DEVTOOLS_BOT_PRIVATE_KEY }}
154+
owner: 10gen
155+
repositories: compass-mongodb-com
156+
- name: Checkout Compass Update server
157+
if: matrix.install-update-server
158+
uses: actions/checkout@v4
159+
with:
160+
repository: 10gen/compass-mongodb-com
161+
token: ${{ steps.app-token.outputs.token }}
162+
# Make sure the value of GITHUB_TOKEN will not be persisted in repo's config
163+
persist-credentials: false
164+
path: 'compass-mongodb-com'
165+
- name: Install Compass Update server
166+
if: matrix.install-update-server
167+
run: npm install --no-save --workspace packages/compass-smoke-tests ${{ github.workspace }}/compass-mongodb-com
168+
169+
- name: Run tests
170+
env:
171+
EVERGREEN_BUCKET_NAME: ${{ inputs.bucket_name }}
172+
EVERGREEN_BUCKET_KEY_PREFIX: ${{ inputs.bucket_key_prefix }}
173+
DEV_VERSION_IDENTIFIER: ${{ inputs.version }}
174+
HADRON_DISTRIBUTION: ${{ matrix.hadron-distribution }}
175+
PLATFORM: ${{ matrix.hadron-platform }}
176+
ARCH: ${{ matrix.arch }}
177+
# Exposing token to prevent update server from being rate limited
178+
GITHUB_TOKEN: ${{ github.token }}
179+
working-directory: packages/compass-smoke-tests
180+
run: npm start -- --package ${{ matrix.package }} --tests ${{ matrix.test }}

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,4 @@ Nikola Irinchev <[email protected]>
9797
djechlin-mongodb <[email protected]>
9898
Dylan Richardson <[email protected]>
9999
Luke Wilson <[email protected]>
100+
Niva Sivakumar <[email protected]>

THIRD-PARTY-NOTICES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
The following third-party software is used by and included in **Mongodb Compass**.
2-
This document was automatically generated on Wed Feb 12 2025.
2+
This document was automatically generated on Sun Feb 16 2025.
33

44
## List of dependencies
55

configs/eslint-config-compass/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mongodb-js/eslint-config-compass",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"description": "Shared Compass eslint configuration",
55
"license": "SSPL",
66
"main": "index.js",
@@ -16,7 +16,7 @@
1616
"@babel/core": "^7.21.4",
1717
"@babel/eslint-parser": "^7.14.3",
1818
"@mongodb-js/eslint-config-devtools": "^0.9.9",
19-
"@mongodb-js/eslint-plugin-compass": "^1.2.0",
19+
"@mongodb-js/eslint-plugin-compass": "^1.2.1",
2020
"@typescript-eslint/eslint-plugin": "^5.59.0",
2121
"@typescript-eslint/parser": "^5.59.0",
2222
"eslint-config-prettier": "^8.3.0",

configs/eslint-plugin-compass/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"email": "[email protected]"
1414
},
1515
"homepage": "https://github.com/mongodb-js/compass",
16-
"version": "1.2.0",
16+
"version": "1.2.1",
1717
"repository": {
1818
"type": "git",
1919
"url": "https://github.com/mongodb-js/compass.git"
@@ -37,8 +37,8 @@
3737
"reformat": "npm run eslint . -- --fix && npm run prettier -- --write ."
3838
},
3939
"devDependencies": {
40-
"@mongodb-js/mocha-config-compass": "^1.6.0",
41-
"@mongodb-js/prettier-config-compass": "^1.2.0",
40+
"@mongodb-js/mocha-config-compass": "^1.6.1",
41+
"@mongodb-js/prettier-config-compass": "^1.2.1",
4242
"depcheck": "^1.4.1",
4343
"eslint": "^7.25.0",
4444
"mocha": "^10.2.0",

configs/mocha-config-compass/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "@mongodb-js/mocha-config-compass",
3-
"version": "1.6.0",
3+
"version": "1.6.1",
44
"description": "Shared mocha mocha configuration for Compass packages",
55
"license": "SSPL",
66
"main": "index.js",
77
"devDependencies": {
8-
"@mongodb-js/prettier-config-compass": "^1.2.0",
8+
"@mongodb-js/prettier-config-compass": "^1.2.1",
99
"prettier": "^2.7.1"
1010
},
1111
"scripts": {

configs/prettier-config-compass/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mongodb-js/prettier-config-compass",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "Shared Compass prettier configuration",
55
"license": "SSPL",
66
"main": "index.js",

configs/testing-library-compass/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"email": "[email protected]"
1212
},
1313
"homepage": "https://github.com/mongodb-js/compass",
14-
"version": "1.2.0",
14+
"version": "1.2.1",
1515
"repository": {
1616
"type": "git",
1717
"url": "https://github.com/mongodb-js/compass.git"
@@ -45,10 +45,10 @@
4545
"reformat": "npm run eslint . -- --fix && npm run prettier -- --write ."
4646
},
4747
"devDependencies": {
48-
"@mongodb-js/eslint-config-compass": "^1.3.0",
49-
"@mongodb-js/mocha-config-compass": "^1.6.0",
50-
"@mongodb-js/prettier-config-compass": "^1.2.0",
51-
"@mongodb-js/tsconfig-compass": "^1.2.0",
48+
"@mongodb-js/eslint-config-compass": "^1.3.1",
49+
"@mongodb-js/mocha-config-compass": "^1.6.1",
50+
"@mongodb-js/prettier-config-compass": "^1.2.1",
51+
"@mongodb-js/tsconfig-compass": "^1.2.1",
5252
"@types/chai": "^4.2.21",
5353
"@types/mocha": "^9.0.0",
5454
"@types/sinon-chai": "^3.2.5",

configs/tsconfig-compass/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mongodb-js/tsconfig-compass",
3-
"version": "1.2.0",
3+
"version": "1.2.1",
44
"description": "Shared Compass Typescript configuration",
55
"license": "SSPL",
66
"files": [
@@ -11,7 +11,7 @@
1111
"typescript": "^5.0.4"
1212
},
1313
"devDependencies": {
14-
"@mongodb-js/prettier-config-compass": "^1.2.0",
14+
"@mongodb-js/prettier-config-compass": "^1.2.1",
1515
"prettier": "^2.7.1"
1616
},
1717
"dependencies": {

0 commit comments

Comments
 (0)