Skip to content

Commit d8687dc

Browse files
Merge remote-tracking branch 'origin/main' into beta-releases
2 parents 218cc7f + 6944c4a commit d8687dc

Some content is hidden

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

48 files changed

+798
-465
lines changed

.evergreen/functions.yml

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ variables:
4040
# WARN: This version is behind our electron runtime, but updating it will
4141
# drop support for some older linux platforms, so we are keeping them out of
4242
# sync for now
43-
# TODO: https://jira.mongodb.org/browse/COMPASS-6915
43+
# TODO: https://jira.mongodb.org/browse/COMPASS-6915
4444
NODE_JS_VERSION: '16.20.2'
4545
NPM_VERSION: '8.19.4'
4646
# secrets
@@ -323,38 +323,42 @@ functions:
323323
shell: bash
324324
env:
325325
<<: *compass-env
326-
COMPASS_APP_PATH: ${appPath}
327-
COMPASS_APP_NAME: ${packagerOptions.name}
326+
COMPASS_APP_PATH_ORIGINAL: ${appPath}
328327
script: |
329328
set -e
330329
# Load environment variables
331330
eval $(.evergreen/print-compass-env.sh)
331+
set -x
332332
333333
# Check the app bundle size.
334334
npm run --workspace mongodb-compass check-bundled-app-size
335335
336-
echo "Unpacking ${app_archive_name} ..."
336+
if [[ "$IS_WINDOWS" == "true" ]]; then
337+
COMPASS_OUTDIR="$COMPASS_APP_PATH_ORIGINAL"
338+
else
339+
# Unpack outside the Compass working tree to avoid interactions with
340+
# npm packages from inside it.
341+
# (This doesn't seem to work on Windows without issues around being
342+
# able to spawn the extracted executable, unfortunately.)
343+
COMPASS_OUTDIR="$PWD/../tmp/from-packaged"
344+
fi
345+
346+
mkdir -p "$COMPASS_OUTDIR"
347+
echo "Unpacking ${app_archive_name} to $COMPASS_OUTDIR ..."
337348
338349
# Unpack the app archive
339350
if [[ "${app_archive_name}" == *.zip ]]; then
340-
COMPASS_OUTDIR="$COMPASS_APP_PATH"
341-
if [[ "$IS_OSX" == "true" ]]; then
342-
# unzip on macos needs a different path to avoid nesting the .app
343-
# inside another .app dir
344-
COMPASS_OUTDIR=$(dirname "$COMPASS_APP_PATH")
345-
fi
346-
echo "Unpacking ${app_archive_name} to $COMPASS_OUTDIR ..."
347-
mkdir -p "$COMPASS_OUTDIR"
348351
unzip "packages/compass/dist/${app_archive_name}" -d "$COMPASS_OUTDIR"
349352
else
350-
COMPASS_OUTDIR="packages/compass/dist"
351-
echo "Unpacking ${app_archive_name} to $COMPASS_OUTDIR ..."
352-
mkdir -p "$COMPASS_OUTDIR"
353353
tar -xzf "packages/compass/dist/${app_archive_name}" -C "$COMPASS_OUTDIR"
354354
fi
355355
356356
# Print folder content to confirm that it worked
357-
ls -la packages/compass/dist
357+
ls -la "$COMPASS_OUTDIR"
358+
359+
if [[ "$IS_WINDOWS" == "true" ]]; then
360+
chmod +x "$COMPASS_OUTDIR"/*.exe
361+
fi
358362
359363
e2e-coverage:
360364
- command: shell.exec
@@ -387,7 +391,7 @@ functions:
387391
shell: bash
388392
env:
389393
<<: *compass-env
390-
COMPASS_APP_PATH: ${appPath}
394+
COMPASS_APP_PATH_ORIGINAL: ${appPath}
391395
COMPASS_APP_NAME: ${packagerOptions.name}
392396
DEBUG: ${debug|}
393397
MONGODB_VERSION: ${mongodb_version|}
@@ -398,10 +402,15 @@ functions:
398402
eval $(.evergreen/print-compass-env.sh)
399403
source .evergreen/start-docker-envs.sh
400404
405+
if [[ "$IS_WINDOWS" == "true" ]]; then
406+
export COMPASS_APP_PATH="$COMPASS_APP_PATH_ORIGINAL"
407+
else
408+
export COMPASS_APP_PATH="$PWD/../tmp/from-packaged/$(basename "$COMPASS_APP_PATH_ORIGINAL")"
409+
fi
401410
echo "Running tests against packaged app at $COMPASS_APP_PATH for MongoDB $MONGODB_VERSION..."
402411
403412
if [[ "$IS_OSX" == "true" ]]; then
404-
echo "Disabling keychain usage in Compass (TODO: https://jira.mongodb.org/browse/BUILD-14458)"
413+
echo "Disabling keychain usage in Compass (TODO: https://jira.mongodb.org/browse/COMPASS-7102)"
405414
export COMPASS_E2E_DISABLE_KEYCHAIN_USAGE="true"
406415
echo "Disabling clipboard usage in e2e tests (TODO: https://jira.mongodb.org/browse/BUILD-14780)"
407416
export COMPASS_E2E_DISABLE_CLIPBOARD_USAGE="true"

THIRD-PARTY-NOTICES.md

Lines changed: 1 addition & 34 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 Mon Sep 25 2023.
2+
This document was automatically generated on Tue Sep 26 2023.
33

44
## List of dependencies
55

@@ -234,7 +234,6 @@ This document was automatically generated on Mon Sep 25 2023.
234234
| **[debug](#233219ced46fb5b84e28859835e97775eb9d0181f4cb85d6aa5cecb61e595947)** | 2.6.9 | MIT |
235235
| **[debug](#d17e389ce22af9246d1b07714885a99a0c7ffce55db7f2ecf52bfef063e8c8ac)** | 4.3.1 | MIT |
236236
| **[decompress-response](#71cad5eab34cc643a6a7853a43d3090ac7e8b6014c9ec55fabb8112cdbfd9fbd)** | 5.0.0 | MIT |
237-
| **[dedent](#339f63cd441e23f69d2d748fb33f2abd1800e36538a684f9005b16194d1c219b)** | 1.5.1 | MIT |
238237
| **[deep-extend](#654bd7d00073c2195bca924a07d93393b2aaf5cacbb6f52a383877f6f33dbfbf)** | 0.6.0 | MIT |
239238
| **[default-browser-id](#bc6a381b83371172dbb72cac459792e2d4d55ecb71165c082142ef085b2130ee)** | 3.0.0 | MIT |
240239
| **[default-browser](#bf5c7331e49e4c648e57747ffd553870a7fe79fea24780366a6bc22ef346f304)** | 4.0.0 | MIT |
@@ -20040,38 +20039,6 @@ License files:
2004020039

2004120040
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2004220041

20043-
<a id="339f63cd441e23f69d2d748fb33f2abd1800e36538a684f9005b16194d1c219b"></a>
20044-
20045-
### [dedent](https://www.npmjs.com/package/dedent) (version 1.5.1)
20046-
20047-
License tags: MIT
20048-
20049-
License files:
20050-
20051-
- LICENSE:
20052-
20053-
The MIT License (MIT)
20054-
20055-
Copyright (c) 2015 Desmond Brand ([email protected])
20056-
20057-
Permission is hereby granted, free of charge, to any person obtaining a copy
20058-
of this software and associated documentation files (the "Software"), to deal
20059-
in the Software without restriction, including without limitation the rights
20060-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
20061-
copies of the Software, and to permit persons to whom the Software is
20062-
furnished to do so, subject to the following conditions:
20063-
20064-
The above copyright notice and this permission notice shall be included in
20065-
all copies or substantial portions of the Software.
20066-
20067-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20068-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20069-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20070-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20071-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20072-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20073-
THE SOFTWARE.
20074-
2007520042
<a id="654bd7d00073c2195bca924a07d93393b2aaf5cacbb6f52a383877f6f33dbfbf"></a>
2007620043

2007720044
### [deep-extend](https://www.npmjs.com/package/deep-extend) (version 0.6.0)

0 commit comments

Comments
 (0)