Skip to content

Commit 4c3ab25

Browse files
Merge remote-tracking branch 'origin/main' into beta-releases
2 parents b12105d + 47d6ad9 commit 4c3ab25

File tree

4 files changed

+52
-33
lines changed

4 files changed

+52
-33
lines changed

.evergreen/functions.yml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -152,8 +152,6 @@ functions:
152152
153153
# Make all the dirs
154154
mkdir -p $ARTIFACTS_PATH
155-
mkdir -p $NPM_CACHE_DIR
156-
mkdir -p $NPM_TMP_DIR
157155
158156
- command: shell.exec
159157
type: setup
@@ -195,18 +193,9 @@ functions:
195193
npm config ls -l
196194
echo "(if npm fails, debug.log will be uploaded to S3)"
197195
198-
# Install dependencies
196+
# Install and check dependencies
199197
bash ".evergreen/retry-with-backoff.sh" .evergreen/npm_ci.sh
200198
201-
# Will fail if versions of direct dependencies listed in package-lock
202-
# are not matching versions defined in package.json file of any of the
203-
# workspace packages
204-
# This command is very noisy when running from root with --all, store
205-
# the output in a file that will be uploaded with rest of the logs
206-
LS_ALL_STDOUT_FILE="$(npm config get cache)/_logs/$(date -u +"%Y-%m-%dT%H_%M_%SZ")-npm-ls-all.log"
207-
echo "Validating dependencies with \`npm ls --all\`..."
208-
(npm ls --all > $LS_ALL_STDOUT_FILE && echo "No mismatched dependency versions") || (echo "\nThe \`npm ls\` command failed with mismatched dependencies error. This usually means that the dependency versions listed in package.json are not matching dependencies resolved and recorded in package-lock.json. If you updated package.json files in your PR, inspect the error output and try to re-install offending dependncies to fix the package-lock file." && exit 1)
209-
210199
bootstrap:
211200
- command: shell.exec
212201
type: setup

.evergreen/npm_ci.sh

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,20 @@
22

33
set -e
44

5-
npm cache clean -f
5+
# Remove the cache and any potential install leftovers before installing again.
6+
# We are running this script with a retry to deal with network issues, in some
7+
# rare cases npm leaves stuff behind messing up a new attempt
8+
rm -rf "$NPM_CACHE_DIR"
69
rm -rf node_modules
710
find configs -name 'node_modules' -type d -prune -exec rm -rf '{}' +
811
find packages -name 'node_modules' -type d -prune -exec rm -rf '{}' +
912
find scripts -name 'node_modules' -type d -prune -exec rm -rf '{}' +
10-
npm ci --unsafe-perm
13+
npm ci --unsafe-perm
14+
15+
# Will fail if versions of direct dependencies listed in package-lock are not
16+
# matching versions defined in package.json file of any of the workspace
17+
# packages. This command is very noisy when running from root with --all, store
18+
# the output in a file that will be uploaded with rest of the logs
19+
LS_ALL_STDOUT_FILE="$(npm config get cache)/_logs/$(date -u +"%Y-%m-%dT%H_%M_%SZ")-npm-ls-all.log"
20+
echo "Validating dependencies with \`npm ls --all\`..."
21+
(npm ls --all >$LS_ALL_STDOUT_FILE && echo "No mismatched dependency versions") || (echo ""; echo "The \`npm ls\` command failed with mismatched dependencies error. This usually means that the dependency versions listed in package.json are not matching dependencies resolved and recorded in package-lock.json. If you updated package.json files in your PR, inspect the error output and try to re-install offending dependncies to fix the package-lock file." && exit 1)

.evergreen/print-compass-env.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#! /usr/bin/env node
22
'use strict';
3+
const path = require('path');
34

45
/*
56
This script writes a bash script that can be eval()'d in evergreen to modify the
@@ -79,18 +80,16 @@ function printCompassEnv() {
7980
PATH = maybePrependPaths(PATH, pathsToPrepend);
8081
printVar('PATH', PATH);
8182

82-
const npmCacheDir = `${newPWD}/.deps/.npm`;
83-
const npmTmpDir = `${newPWD}/.deps/tmp`;
83+
// not using `newPWD` here to avoid issues on windows where the value supposed
84+
// to be a non-cygwin path
85+
const npmCacheDir = path.resolve(__dirname, '..', '.deps', '.npm-cache');
8486

8587
printVar('ARTIFACTS_PATH', `${newPWD}/.deps`);
8688
printVar('NPM_CACHE_DIR', npmCacheDir);
87-
printVar('NPM_TMP_DIR', npmTmpDir);
8889

8990
// all npm var names need to be lowercase
9091
// see: https://docs.npmjs.com/cli/v7/using-npm/config#environment-variables
9192
printVar('npm_config_cache', npmCacheDir);
92-
// npm tmp is deprecated, but let's keep it around just in case
93-
printVar('npm_config_tmp', npmTmpDir);
9493
// Also set in our .npmrc but that does not get picked up in the preinstall script.
9594
printVar('npm_config_registry', 'https://registry.npmjs.org/');
9695

.snyk

Lines changed: 34 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,53 @@
11
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
2-
version: v1.25.0
2+
version: v1.25.1
33
# ignores vulnerabilities until expiry date; change duration by modifying expiry date
44
ignore:
55
SNYK-JS-AGGRIDCOMMUNITY-1932011:
66
- '*':
77
reason: >-
88
Not applicable as we do not use a valueFormatter or cellRenderer
99
function
10-
expires: 2024-11-15T18:27:24.346Z
10+
expires: 2025-09-17T13:05:57.065Z
1111
created: 2024-01-18T18:27:24.353Z
12-
SNYK-JS-AXIOS-6032459:
13-
- '*':
14-
reason: Not applicable to axios usage inside node-analytics package
15-
expires: 2024-10-30T10:18:43.435Z
16-
created: 2023-10-30T10:18:43.435Z
17-
SNYK-JS-ELECTRON-7443355:
18-
- '*':
19-
reason: >-
20-
Not applicable as we do not open / allow opening random webpages in
21-
our Electron app.
22-
expires: 2024-07-25T12:41:36.996Z
23-
created: 2024-07-19T12:41:36.999Z
2412
SNYK-JS-AGGRIDCOMMUNITY-7414157:
2513
- '*':
2614
reason: >-
2715
Not applicable as we don't use ag-grid utils and the library never
2816
passes user input directly to the merge function
2917
expires: 2025-09-17T13:05:57.065Z
3018
created: 2024-09-17T13:05:57.071Z
19+
SNYK-JS-ELECTRON-8642944:
20+
- '*':
21+
reason: >-
22+
Fixed in https://github.com/electron/electron/releases/tag/v32.3.0
23+
expires: 2025-03-26T09:48:32.235Z
24+
created: 2025-01-27T09:48:32.246Z
25+
SNYK-JS-ELECTRON-8642948:
26+
- '*':
27+
reason: >-
28+
Fixed in https://github.com/electron/electron/releases/tag/v32.3.0
29+
expires: 2025-03-26T09:49:13.962Z
30+
created: 2025-01-27T09:49:13.968Z
31+
SNYK-JS-ELECTRON-8097217:
32+
- '*':
33+
reason: >-
34+
Not applicable: requires attacker to inject and execute custom
35+
javascript on the page AND experimental api to be enabled (see
36+
https://issues.chromium.org/issues/365376497)
37+
expires: 2025-03-26T09:49:21.587Z
38+
created: 2025-01-27T09:49:21.596Z
39+
SNYK-JS-ELECTRON-8604283:
40+
- '*':
41+
reason: >-
42+
Fixed in https://github.com/electron/electron/releases/tag/v32.3.0
43+
expires: 2025-03-26T09:49:31.423Z
44+
created: 2025-01-27T09:49:31.431Z
45+
SNYK-JS-ELECTRON-8642946:
46+
- '*':
47+
reason: >-
48+
Fixed in https://github.com/electron/electron/releases/tag/v32.3.0
49+
expires: 2025-02-26T09:49:38.738Z
50+
created: 2025-01-27T09:49:38.746Z
3151
# patches apply the minimum changes required to fix a vulnerability
3252
patch:
3353
'npm:ms:20170412':

0 commit comments

Comments
 (0)