Skip to content

Commit 9ea9e28

Browse files
Merge remote-tracking branch 'origin/main' into beta-releases
2 parents 4d1654c + 7c89ff2 commit 9ea9e28

File tree

82 files changed

+1447
-1190
lines changed

Some content is hidden

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

82 files changed

+1447
-1190
lines changed

.evergreen/buildvariants.in.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ buildvariants:
1717
tasks:
1818
- name: publish
1919
- name: publish-packages-next
20+
- name: publish-dev-release
2021

2122
- name: ubuntu_connectivity_tests
2223
display_name: Connectivity Tests

.evergreen/buildvariants.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ buildvariants:
1717
tasks:
1818
- name: publish
1919
- name: publish-packages-next
20+
- name: publish-dev-release
2021

2122
- name: ubuntu_connectivity_tests
2223
display_name: Connectivity Tests

.evergreen/functions.yml

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ variables:
3838
EVERGREEN_TASK_URL: https://evergreen.mongodb.com/task/${task_id}
3939
EVERGREEN_VERSION_ID: ${version_id}
4040
EVERGREEN_WORKDIR: ${workdir}
41+
EVERGREEN_CREATED_AT: ${created_at}
4142
# WARN: This version is behind our electron runtime, but updating it will
4243
# drop support for some older linux platforms, so we are keeping them out of
4344
# sync for now
@@ -301,9 +302,6 @@ functions:
301302
set -e
302303
# Load environment variables
303304
eval $(.evergreen/print-compass-env.sh)
304-
305-
echo "Synchronizing evergreen environment from Compass build tools..."
306-
307305
# Generates and expansion file with build target metadata in packages/compass/expansions.yml
308306
npm run --workspace mongodb-compass build-info -- ${target_platform} ${target_arch} --format=yaml --flatten ${compass_distribution} --out expansions.yml
309307
- command: expansions.update
@@ -411,7 +409,7 @@ functions:
411409
SIGNING_SERVER_PORT: ${SIGNING_SERVER_PORT}
412410
script: |
413411
set -e
414-
412+
# Load environment variables
415413
eval $(.evergreen/print-compass-env.sh)
416414
.evergreen/compass_package.sh
417415
- command: shell.exec
@@ -442,12 +440,28 @@ functions:
442440
set -e
443441
# Load environment variables
444442
eval $(.evergreen/print-compass-env.sh)
445-
if [[ "${project}" == "10gen-compass-main" ]]; then
446-
export npm_config_dry_run=true
447-
fi
448443
echo "Uploading release assets to S3 and GitHub if needed..."
449444
npm run --workspace mongodb-compass upload
450445
446+
publish-dev-release:
447+
- command: shell.exec
448+
params:
449+
working_dir: src
450+
shell: bash
451+
env:
452+
<<: *compass-env
453+
script: |
454+
eval $(.evergreen/print-compass-env.sh)
455+
.evergreen/publish-dev-release.sh LATEST
456+
- command: s3.put
457+
params:
458+
<<: *save-artifact-params-public
459+
local_file: src/LATEST
460+
remote_file: ${project}/compass/dev/LATEST
461+
content_type: text/plain
462+
display_name: LATEST
463+
optional: true
464+
451465
get-packaged-app:
452466
- command: s3.get
453467
params:

.evergreen/print-compass-env.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ function printCompassEnv() {
104104
printVar('IS_UBUNTU', process.env.IS_UBUNTU);
105105
printVar('DEBUG', process.env.DEBUG);
106106
printVar('MONGODB_VERSION', process.env.MONGODB_VERSION || process.env.MONGODB_DEFAULT_VERSION);
107+
printVar('DEV_VERSION_IDENTIFIER', process.env.DEV_VERSION_IDENTIFIER);
107108
}
108109

109110
printCompassEnv();

.evergreen/print-compass-env.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,26 @@ fi
3030
export BASHPATH="$PATH"
3131
export OSTYPE="$OSTYPE"
3232

33+
escapeLeadingZero() {
34+
echo "$1" | sed 's/^0*//'
35+
}
36+
37+
if [[ "${EVERGREEN_PROJECT}" == "10gen-compass-main" ]]; then
38+
# We do not publish anything from the 10gen-compass-main project.
39+
export npm_config_dry_run=true
40+
# When packaging Compass from main, we want to use the dev version identifier
41+
# based on the created_at (when evergreen was triggered - formatted as 24_05_16_14_52_37).
42+
if [[ "${EVERGREEN_BRANCH_NAME}" == "main" ]]; then
43+
ts=($(echo "$EVERGREEN_CREATED_AT" | tr "_" " "))
44+
year=$(escapeLeadingZero "${ts[0]}")
45+
month=$(escapeLeadingZero "${ts[1]}")
46+
day=$(escapeLeadingZero "${ts[2]}")
47+
hour=$(escapeLeadingZero "${ts[3]}")
48+
minute="${ts[4]}"
49+
second="${ts[5]}"
50+
export DEV_VERSION_IDENTIFIER="${year}.${month}.${day}-dev.${hour}${minute}${second}"
51+
fi
52+
fi
53+
54+
3355
.evergreen/print-compass-env.js

.evergreen/publish-dev-release.sh

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#! /usr/bin/env bash
2+
3+
set -e
4+
set -x
5+
6+
if [[ "${EVERGREEN_PROJECT}" != "10gen-compass-main" ]]; then
7+
echo "Trying to publish main compass (dev build) from ${EVERGREEN_PROJECT} project. Skipping...";
8+
exit 0;
9+
fi
10+
11+
if [[ "${EVERGREEN_BRANCH_NAME}" != "main" ]]; then
12+
echo "Trying to publish main compass (dev build) from ${EVERGREEN_BRANCH_NAME} branch. Skipping...";
13+
exit 0;
14+
fi
15+
16+
URL="https://mciuploads.s3.amazonaws.com/${EVERGREEN_PROJECT}/compass/dev/$1"
17+
CURRENT_VERSION=$(curl -sf "${URL}" || echo "0.0.0-dev.0")
18+
19+
echo "Comparing versions: $CURRENT_VERSION and $DEV_VERSION_IDENTIFIER"
20+
PUBLISH_VERSION=$(npx semver "$CURRENT_VERSION" "$DEV_VERSION_IDENTIFIER" | tail -n1 | xargs)
21+
echo "$PUBLISH_VERSION" > "$1"

.evergreen/tasks.in.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,14 @@ tasks:
9393
- func: install
9494
- func: bootstrap
9595
- func: publish-packages-next
96+
- name: publish-dev-release
97+
tags: []
98+
depends_on:
99+
- name: 'publish'
100+
variant: '*'
101+
commands:
102+
- func: prepare
103+
- func: publish-dev-release
96104
<% for (const packageTask of tasks.package) { %>
97105
- name: <% out(packageTask.name) %>
98106
tags: ['required-for-publish', 'run-on-pr']

.evergreen/tasks.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,14 @@ tasks:
9393
- func: install
9494
- func: bootstrap
9595
- func: publish-packages-next
96+
- name: publish-dev-release
97+
tags: []
98+
depends_on:
99+
- name: 'publish'
100+
variant: '*'
101+
commands:
102+
- func: prepare
103+
- func: publish-dev-release
96104

97105
- name: package-compass
98106
tags: ['required-for-publish', 'run-on-pr']

THIRD-PARTY-NOTICES.md

Lines changed: 7 additions & 7 deletions
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 Sun Jun 02 2024.
2+
This document was automatically generated on Tue Jun 04 2024.
33

44
## List of dependencies
55

@@ -243,7 +243,7 @@ This document was automatically generated on Sun Jun 02 2024.
243243
| **[ejson-shell-parser](#88e1a447c02d9ef3274034c023a5ebcec8188381b1bd951de7c57c140f7f3d4b)** | 2.0.1 | MIT |
244244
| **[electron-dl](#e97e034c7b93c63e7a433d75f6f1de3e0668764225ebbd61dbde8d1b55d6f3b7)** | 3.5.0 | MIT |
245245
| **[electron-squirrel-startup](#09fb8168e8fda2e174f8d1a1c392ffd8f762c5637c788edd00d1e2486d060349)** | 1.0.1 | Apache-2.0 |
246-
| **[electron](#df306ea54b07d931d1c03b5191c519ebc8a147cc5a1abc6d6e3bb58e36794e75)** | 29.4.0 | MIT |
246+
| **[electron](#8c7bbdce1cfd1d615c53adc4f9f00dfb196ba81f3534f7097879e0b49c4fb622)** | 29.4.2 | MIT |
247247
| **[encodeurl](#b89152db475e86531e570f87b45d8a51aa5e5d87d4cc3b960cee7b8febf1d26a)** | 1.0.2 | MIT |
248248
| **[end-of-stream](#fadc10994f5fa767d06fb25cfff35fb17a895daf3bc3477c782907668ed16563)** | 1.4.4 | MIT |
249249
| **[ensure-error](#3b1eba5276d89414cef21a1007e85c4f1d6749bf57b300e082ab23975a41dbc9)** | 3.0.1 | MIT |
@@ -442,7 +442,7 @@ This document was automatically generated on Sun Jun 02 2024.
442442
| **[ms](#2083576c5af8054927640b4788059806d07e250a26066c9ccb2d928394fb9226)** | 2.1.3 | MIT |
443443
| **[napi-build-utils](#26912b5ff7632f262d64273f99cd1a869376c5c378960e24501585e35b31054a)** | 1.0.2 | MIT |
444444
| **[negotiator](#e3856213d8f0a7d28cd4166e53ec7e2c019cb7becf4a8535097bac28d21e8579)** | 0.6.3 | MIT |
445-
| **[node-abi](#8e2613c563a94f0a2e56c1fdd062f129dd0bf82a76887714e08c291e6ace9dcc)** | 3.62.0 | MIT |
445+
| **[node-abi](#b0c567d1ffb85e3ed9bb2c7ff2a568c6e77163186b1560f1a476dd88695e10f1)** | 3.63.0 | MIT |
446446
| **[node-addon-api](#af9f7588524ca4e68f4efe7b24aea46d9c8004263b1d7cf3b558f86d87a163e8)** | 4.3.0 | MIT |
447447
| **[node-fetch](#364527ef1b51cc6ac34872b931049c9e25b5014f9b40e3898c84e1a830e21720)** | 2.6.7 | MIT |
448448
| **[node-fetch](#23d7d5a419e9a25e6384dee4aa24f7162544418f0cdc2d92e94e2cf924507b8c)** | 2.7.0 | MIT |
@@ -19963,9 +19963,9 @@ License files:
1996319963
See the License for the specific language governing permissions and
1996419964
limitations under the License.
1996519965

19966-
<a id="df306ea54b07d931d1c03b5191c519ebc8a147cc5a1abc6d6e3bb58e36794e75"></a>
19966+
<a id="8c7bbdce1cfd1d615c53adc4f9f00dfb196ba81f3534f7097879e0b49c4fb622"></a>
1996719967

19968-
### [electron](https://www.npmjs.com/package/electron) (version 29.4.0)
19968+
### [electron](https://www.npmjs.com/package/electron) (version 29.4.2)
1996919969

1997019970
License tags: MIT
1997119971

@@ -28766,9 +28766,9 @@ License files:
2876628766
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
2876728767
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2876828768

28769-
<a id="8e2613c563a94f0a2e56c1fdd062f129dd0bf82a76887714e08c291e6ace9dcc"></a>
28769+
<a id="b0c567d1ffb85e3ed9bb2c7ff2a568c6e77163186b1560f1a476dd88695e10f1"></a>
2877028770

28771-
### [node-abi](https://www.npmjs.com/package/node-abi) (version 3.62.0)
28771+
### [node-abi](https://www.npmjs.com/package/node-abi) (version 3.63.0)
2877228772

2877328773
License tags: MIT
2877428774

configs/webpack-config-compass/package.json

Lines changed: 2 additions & 2 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.3.8",
16+
"version": "1.3.9",
1717
"repository": {
1818
"type": "git",
1919
"url": "https://github.com/mongodb-js/compass.git"
@@ -74,7 +74,7 @@
7474
"cli-progress": "^3.9.1",
7575
"core-js": "^3.17.3",
7676
"css-loader": "^4.3.0",
77-
"electron": "^29.4.0",
77+
"electron": "^29.4.2",
7878
"html-webpack-plugin": "^5.3.2",
7979
"less-loader": "^10.0.1",
8080
"mini-css-extract-plugin": "^2.3.0",

0 commit comments

Comments
 (0)