Skip to content

Commit 4225c70

Browse files
committed
Reduce npm install verbosity with --loglevel=error --no-audit
Suppress npm deprecation warnings and security audit reports. These flags reduce output noise while preserving actual errors. Audit reports aren't actionable for test-only dependencies.
1 parent 1f2596e commit 4225c70

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

.github/workflows/test-smokes.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
9595
- name: Install node dependencies
9696
if: ${{ runner.os != 'Windows' || github.event_name == 'schedule' }}
97-
run: npm install
97+
run: npm install --loglevel=error --no-audit
9898
working-directory: ./tests/integration/playwright
9999
shell: bash
100100

@@ -105,7 +105,7 @@ jobs:
105105

106106
- name: Install MECA validator
107107
if: ${{ runner.os != 'Windows' }}
108-
run: npm install -g meca
108+
run: npm install -g meca --loglevel=error --no-audit
109109

110110
- name: Set RENV_PATHS_ROOT
111111
shell: bash

tests/configure-test-env.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ If ($node_exists) {
8787
Write-Host -ForegroundColor yellow "Some tests may fail. Consider upgrading Node.js."
8888
}
8989
Write-Host "Setting up npm testing environment"
90-
npm install -g meca
90+
npm install -g meca --loglevel=error --no-audit
9191
}
9292
}
9393

@@ -96,11 +96,11 @@ Write-Host -ForegroundColor green ">>>> Configuring Playwright for integration t
9696
If ($npm_exists) {
9797
Write-Host "Installing Playwright dependencies..."
9898
Push-Location integration/playwright
99-
npm install
99+
npm install --loglevel=error --no-audit
100100
# Install multiplex server dependencies
101101
Write-Host "Installing multiplex server dependencies..."
102102
Push-Location multiplex-server
103-
npm install
103+
npm install --loglevel=error --no-audit
104104
Pop-Location
105105
# On Windows, npx playwright install --with-deps works without admin rights
106106
Write-Host "Installing Playwright browsers..."

tests/configure-test-env.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ else
103103
echo "Some tests may fail. Consider upgrading Node.js."
104104
fi
105105
echo "Setting up npm testing environment"
106-
npm install -g meca
106+
npm install -g meca --loglevel=error --no-audit
107107
fi
108108

109109
# Setup Playwright for browser testing ---
@@ -112,11 +112,11 @@ if [ -n "$npm_exists" ]
112112
then
113113
echo "Installing Playwright dependencies..."
114114
pushd integration/playwright > /dev/null
115-
npm install
115+
npm install --loglevel=error --no-audit
116116
# Install multiplex server dependencies
117117
echo "Installing multiplex server dependencies..."
118118
pushd multiplex-server > /dev/null
119-
npm install
119+
npm install --loglevel=error --no-audit
120120
popd > /dev/null
121121
# Try to install browsers with --with-deps (may require sudo on Linux/macOS)
122122
echo "Installing Playwright browsers..."

0 commit comments

Comments
 (0)