Description
On ubuntu-24.04 arm64 builds, the Pester test Node.Tests.ps1 → Node.js → n fails with n: command not found, even though n is listed in toolset-2404.json → node_modules and install-nodejs.sh runs npm install -g
$node_modules which reports success (added 1172 packages).
All other globals from the same npm install -g invocation (grunt, gulp, parcel, tsc, newman, webpack, webpack-cli, lerna, yarn) are present on PATH and pass their tests. Only n is missing.
Failing test output
Describing Node.js
[+] node 109ms
[+] grunt 134ms
[+] gulp 113ms
[-] n 40ms
Command 'n --version' has finished with exit code
/usr/bin/bash: line 1: n: command not found
at "$NodeCommand --version" | Should -ReturnZeroExitCode,
/imagegeneration/tests/Node.Tests.ps1:7
[+] parcel 52ms
[+] tsc 154ms
...
Tests Passed: 11, Failed: 1
Exception: Test run has failed
Build then aborts with Script exited with non-zero exit status: 1.
Platforms affected
Runner images affected
Image version and build link
current packer code from main branch
Is it regression?
no sure, ARM64 based image seems to be quite new
Expected behavior
Tests works in proper way.
Actual behavior
Tests failing
Repro steps
- Build the ubuntu-24.04 arm64 image.
- Wait for the install-nodejs.sh provisioner to run invoke_tests "Node" "Node.js".
- Observe the [-] n failure in the Pester output and the resulting non-zero exit from the provisioner.
Description
On ubuntu-24.04 arm64 builds, the Pester test Node.Tests.ps1 → Node.js → n fails with n: command not found, even though n is listed in toolset-2404.json → node_modules and install-nodejs.sh runs npm install -g
$node_modules which reports success (added 1172 packages).
All other globals from the same npm install -g invocation (grunt, gulp, parcel, tsc, newman, webpack, webpack-cli, lerna, yarn) are present on PATH and pass their tests. Only n is missing.
Failing test output
Describing Node.js
[+] node 109ms
[+] grunt 134ms
[+] gulp 113ms
[-] n 40ms
Command 'n --version' has finished with exit code
/usr/bin/bash: line 1: n: command not found
at "$NodeCommand --version" | Should -ReturnZeroExitCode,
/imagegeneration/tests/Node.Tests.ps1:7
[+] parcel 52ms
[+] tsc 154ms
...
Tests Passed: 11, Failed: 1
Exception: Test run has failed
Build then aborts with Script exited with non-zero exit status: 1.
Platforms affected
Runner images affected
Image version and build link
current packer code from main branch
Is it regression?
no sure, ARM64 based image seems to be quite new
Expected behavior
Tests works in proper way.
Actual behavior
Tests failing
Repro steps