Skip to content

Commit bc1960e

Browse files
wtgodbeCopilot
andcommitted
Disable npm audit and enable Node.js crash reports
Add audit=false to .npmrc to prevent ETIMEDOUT failures when the AzDO feed's security advisories endpoint times out (exit code -1). Add NODE_OPTIONS=--report-on-faulting-state-change to generate a Node.js diagnostic report (.report file) if the node process crashes during npm ci. This will help diagnose the Windows-only exit code 57005 (0xDEAD) failures where the process is killed mid-extraction with no error output. Co-authored-by: Copilot <[email protected]>
1 parent fb2bd3e commit bc1960e

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
registry=https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-public-npm/npm/registry/
2+
audit=false
23
fetch-retries=5
34
fetch-retry-factor=2
45
fetch-retry-maxtimeout=120000

eng/Npm.Workspace.nodeproj

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@
1616
<ContainsFunctionalTestAssets>false</ContainsFunctionalTestAssets>
1717
<BuildHelixPayload>false</BuildHelixPayload>
1818
<!-- Skip puppeteer tests until https://github.com/dotnet/aspnetcore/issues/54176 is resolved -->
19-
<_NpmAdditionalEnvironmentVariables>PUPPETEER_SKIP_DOWNLOAD=1</_NpmAdditionalEnvironmentVariables>
19+
<!-- Generate a Node.js diagnostic report on uncaught exceptions to help diagnose npm ci crashes (exit code 57005).
20+
Note: --report-on-faulting-state-change is not allowed in NODE_OPTIONS, so we use --report-uncaught-exception. -->
21+
<_NpmAdditionalEnvironmentVariables>PUPPETEER_SKIP_DOWNLOAD=1;NODE_OPTIONS=--report-uncaught-exception --report-directory=artifacts/log/node-reports</_NpmAdditionalEnvironmentVariables>
2022
</PropertyGroup>
2123

2224
<PropertyGroup>

0 commit comments

Comments
 (0)