Skip to content

build/bake: increase npm fetch retries in workflow installs#190

Open
crazy-max wants to merge 1 commit intodocker:mainfrom
crazy-max:npm-fetch-retries
Open

build/bake: increase npm fetch retries in workflow installs#190
crazy-max wants to merge 1 commit intodocker:mainfrom
crazy-max:npm-fetch-retries

Conversation

@crazy-max
Copy link
Copy Markdown
Member

relates to https://github.com/docker/github-builder/actions/runs/25382289564/job/74433765810#step:2:30

/usr/local/bin/npm install --prefer-offline --ignore-scripts @docker/actions-toolkit@0.89.1
npm error code ECONNRESET
npm error network aborted
npm error network This is a problem related to network connectivity.
npm error network In most cases you are behind a proxy or have bad network settings.
npm error network
npm error network If you are behind a proxy, please make sure that the
npm error network 'proxy' config is set properly.  See: 'npm help config'
npm error A complete log of this run can be found in: /home/runner/.npm/_logs/2026-05-05T14_25_22_862Z-debug-0.log
Error: The process '/usr/local/bin/npm' failed with exit code 1
    at ExecState._setResult (/home/runner/work/_actions/actions/github-script/3a2844b7e9c422d3c10d287c895573f7108da1b3/dist/index.js:1702:25)
    at ExecState.CheckComplete (/home/runner/work/_actions/actions/github-script/3a2844b7e9c422d3c10d287c895573f7108da1b3/dist/index.js:1685:18)
    at ChildProcess.<anonymous> (/home/runner/work/_actions/actions/github-script/3a2844b7e9c422d3c10d287c895573f7108da1b3/dist/index.js:1579:27)
    at ChildProcess.emit (node:events:509:28)
    at maybeClose (node:internal/child_process:1124:16)
    at ChildProcess._handle.onexit (node:internal/child_process:306:5)
Error: Unhandled error: Error: The process '/usr/local/bin/npm' failed with exit code 1

Both the build and bake workflows now set NPM_CONFIG_FETCH_RETRIES to 5 at workflow scope, which is inherited by the actions/github-script steps that run npm install for @docker/actions-toolkit.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max crazy-max requested a review from tonistiigi May 5, 2026 14:49
@crazy-max crazy-max marked this pull request as ready for review May 5, 2026 14:54
@crazy-max crazy-max requested a review from a team as a code owner May 5, 2026 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant