felddy / npm-hang-test

Testing failure of GitHub Actions builds of s390x images
4 stars 1 forks source link

npm hangs on some architectures of Alpine Linux #2

Open felddy opened 11 months ago

felddy commented 11 months ago

Failing builds

NodeJS Architecture Distribution Notes
18.20.3 linus/s390x Alpine 3.20
20.15.0 linux/arm/v6 Alpine 3.20
20.15.0 linux/arm/v7 Alpine 3.20
20.15.0 linux/s390x Alpine 3.20
22.4.0 linux/arm/v6 Alpine 3.20
22.4.0 linux/arm/v7 Alpine 3.20
22.4.0 linux/ppc64le Alpine 3.20 Architecture currently missing
22.4.0 linux/s390x Alpine 3.20

Log output

The builds are failing on the command NODE_DEBUG=* node $(which npm) -v (a verbose version of npm -v.). The builds are limited to a timeout of 3 minutes, at which point they are cancelled by GitHub Actions and generate an error to that regard.

https://github.com/felddy/npm-hang-test/blob/82579ed1380b3a63a2fb53ca3474c113bee0cb30/.github/workflows/build.yml#L34

The s390x builds hang with the last log output being:

#12 4.855 MODULE 1: Module._load REQUEST os parent: /usr/local/lib/node_modules/npm/node_modules/@npmcli/config/lib/definitions/definitions.js
#12 4.855 MODULE 1: load built-in module os
#12 4.856 MODULE 1: Module._load REQUEST ../type-defs.js parent: /usr/local/lib/node_modules/npm/node_modules/@npmcli/config/lib/definitions/definitions.js
#12 4.857 MODULE 1: RELATIVE: requested: ../type-defs.js from parent.id /usr/local/lib/node_modules/npm/node_modules/@npmcli/config/lib/definitions/definitions.js
#12 4.857 MODULE 1: looking for ["/usr/local/lib/node_modules/npm/node_modules/@npmcli/config/lib/definitions"]
Error: The operation was canceled. 

The arm/v6 and arm/v7 both hang without any output after the command:

#12 [8/8] RUN NODE_DEBUG=* node $(which npm) -v
Error: The operation was canceled.
felddy commented 10 months ago

Also related:

felddy commented 8 months ago

Updated description with changes from:

felddy commented 7 months ago

Possible root causes is in QEMU:

See:

felddy commented 4 months ago

Temporary workaround:

See:

felddy commented 1 month ago

Also related:

felddy commented 1 month ago

Attempted to set network to host as mentioned in https://github.com/nodejs/docker-node/issues/1946#issuecomment-2022259024. No effect. Rolled back change.