Skip to content

Commit

Permalink
Update puppeteer env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
nirinchev committed Nov 12, 2024
1 parent b5ac5cc commit 4b760f2
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 14 deletions.
8 changes: 4 additions & 4 deletions .evergreen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7132,7 +7132,7 @@ functions:
{
export NODE_JS_VERSION=${node_js_version}
source .evergreen/setup-env.sh
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true"
export PUPPETEER_SKIP_DOWNLOAD="true"
npm run evergreen-release draft
}

Expand All @@ -7150,7 +7150,7 @@ functions:
node_js_version: ${node_js_version}
script: |
set -e
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true"
export PUPPETEER_SKIP_DOWNLOAD="true"
.evergreen/run-evergreen-release.sh download-and-list-artifacts
- command: shell.exec
params:
Expand Down Expand Up @@ -7179,7 +7179,7 @@ functions:
node_js_version: ${node_js_version}
script: |
set -e
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true"
export PUPPETEER_SKIP_DOWNLOAD="true"
.evergreen/run-evergreen-release.sh publish -- --dry-run

release_publish:
Expand All @@ -7198,7 +7198,7 @@ functions:
node_js_version: ${node_js_version}
script: |
set -e
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true"
export PUPPETEER_SKIP_DOWNLOAD="true"
.evergreen/run-evergreen-release.sh publish

run_perf_tests:
Expand Down
2 changes: 1 addition & 1 deletion .evergreen/compile-artifact.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ elif [ -n "$MONGOSH_SHARED_OPENSSL" ]; then
export LD_LIBRARY_PATH=/tmp/m/opt/lib
fi

export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true"
export PUPPETEER_SKIP_DOWNLOAD="true"
npm run evergreen-release compile
dist/mongosh --version
dist/mongosh --build-info
Expand Down
8 changes: 4 additions & 4 deletions .evergreen/evergreen.yml.in
Original file line number Diff line number Diff line change
Expand Up @@ -967,7 +967,7 @@ functions:
{
export NODE_JS_VERSION=${node_js_version}
source .evergreen/setup-env.sh
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true"
export PUPPETEER_SKIP_DOWNLOAD="true"
npm run evergreen-release draft
}

Expand All @@ -985,7 +985,7 @@ functions:
node_js_version: ${node_js_version}
script: |
set -e
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true"
export PUPPETEER_SKIP_DOWNLOAD="true"
.evergreen/run-evergreen-release.sh download-and-list-artifacts
- command: shell.exec
params:
Expand Down Expand Up @@ -1014,7 +1014,7 @@ functions:
node_js_version: ${node_js_version}
script: |
set -e
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true"
export PUPPETEER_SKIP_DOWNLOAD="true"
.evergreen/run-evergreen-release.sh publish -- --dry-run

release_publish:
Expand All @@ -1033,7 +1033,7 @@ functions:
node_js_version: ${node_js_version}
script: |
set -e
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true"
export PUPPETEER_SKIP_DOWNLOAD="true"
.evergreen/run-evergreen-release.sh publish

run_perf_tests:
Expand Down
2 changes: 1 addition & 1 deletion .evergreen/package-and-upload-artifact.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if [ "$(uname)" == Linux ]; then
cp "$(pwd)/../tmp/expansions.yaml" tmp/expansions.yaml
(cd scripts/docker && bash "$BASEDIR/retry-with-backoff.sh" docker build -t rocky8-package -f rocky8-package.Dockerfile .)
echo Starting Docker container packaging
docker run -e PUPPETEER_SKIP_CHROMIUM_DOWNLOAD \
docker run -e PUPPETEER_SKIP_DOWNLOAD \
-e EVERGREEN_EXPANSIONS_PATH=/tmp/build/tmp/expansions.yaml \
-e NODE_JS_VERSION \
-e PACKAGE_VARIANT \
Expand Down
2 changes: 1 addition & 1 deletion .evergreen/run-evergreen-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ echo "//registry.npmjs.org/:_authToken=${devtoolsbot_npm_token}" > .npmrc
set -x
export NODE_JS_VERSION=${node_js_version}
source .evergreen/setup-env.sh
export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD="true"
export PUPPETEER_SKIP_DOWNLOAD="true"
npm run evergreen-release $@
5 changes: 3 additions & 2 deletions .github/workflows/smoke-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
env:
npm_config_loglevel: verbose
npm_config_foreground_scripts: "true"
PUPPETEER_SKIP_DOWNLOAD: "true"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -30,8 +31,8 @@ jobs:
- name: Install npm@10
run: npm install -g npm@10

- name: Bootstrap
run: npm run bootstrap
- name: Install dependencies
run: npm ci

- name: Run smoke tests
run: npm run test-smoke
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"author": "Compass Team <[email protected]>",
"scripts": {
"bootstrap-with-chromium": "npm install && npm run compile",
"bootstrap": "npx cross-env PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1 npm install && npm run compile",
"bootstrap": "npx cross-env PUPPETEER_SKIP_DOWNLOAD=1 npm install && npm run compile",
"clean": "lerna clean -y && rm -Rf node_modules",
"check": "lerna run check --since HEAD --exclude-dependents",
"check-ci": "npm run check --workspaces --if-present",
Expand Down

0 comments on commit 4b760f2

Please sign in to comment.