A hung npm ci in CI times out and retries instead of holding a runner for hours #359
No reviewers
Labels
No labels
agent
api-regen
agent
architect
agent
coder
agent
console-coder
agent
docs-writer
agent
mechanic
agent
protocol-coder
agent
storage-coder
area/api
area/ci
area/console
area/dhcp
area/dns
area/docs
area/packaging
area/process
area/storage
area/windows
kind
bug
kind
chore
kind
docs
kind
epic
kind
feature
kind
performance
kind
security
kind
test
priority
high
priority
low
priority
medium
resolution
duplicate
resolution
not-a-bug
resolution
wontfix
status
blocked
status
in-progress
status
needs-decision
status
needs-design
status
ready
theme
ad-samba-dns
theme
alternatives-benchmark
theme
console-toolchain
theme
later
theme
parity-devices
theme
parity-query
theme
post-release-fixes
theme
tracker-setup
theme
valkey
theme
windows-installer
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
lantea-one/ninlil!359
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/358-npm-ci-timeout"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Every
npm ciin CI now runs under a time limit with one retry, and every CI job hastimeout-minutes. A hung npm can no longer hold an asgard runner slot for hours..forgejo/scripts/npm-ci.sh:npm ciafter 10 minutes (NPM_CI_TIMEOUT) and kills the whole process group if needed (NPM_CI_KILL_AFTER, default 20 s).node_modulesand retries once, then fails with "npm hung twice".build-admin-console.shand the "Install Dependencies" step of the admin-console test job call the helper, andin-container.shpasses the two environment variables through.timeout-minutesis set on every job inpipeline.yml,bump-pins.ymlandcleanup.yml. The limits sit well above the longest recent run, with room for a cold builder image and one npm retry..forgejo/scripts/tests/npm-ci.test.sh(14 checks, fake npm). The hang and retry checks fail against a helper without the time limit, and all 14 pass with the real one.Closes #358
🤖 Generated with Claude Code
https://claude.ai/code/session_01T33E3pmQvqkTriyQUMNUTK