Skip to content

Fix NPM tests on ARM based runners - #3085

Merged
Goooler merged 1 commit into
mainfrom
g/20260916/fix-npm-tests-on-arm-runners
Sep 16, 2026
Merged

Goooler merged 1 commit into
mainfrom
g/20260916/fix-npm-tests-on-arm-runners

Conversation

@Goooler

@Goooler Goooler commented Sep 16, 2026

Copy link
Copy Markdown
Member

Just merge the test fixes but the runner migrations.

Closes #3081.

-----

Bump Node to v22.14.0 in NpmTestsWithDynamicallyInstalledNpmInstallationTest

Fixes 404 download failure on Windows ARM64 runners when frontend-maven-plugin attempts to download Node 18 (which has no official win-arm64 binaries on nodejs.org):

```
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.11.3:install-node-and-npm (default-cli) on project spotless-maven-plugin-tests: Could not download Node.js: Got error code 404 from the server. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.11.3:install-node-and-npm (default-cli) on project spotless-maven-plugin-tests: Could not download Node.js: Got error code 404 from the server.
Caused by: org.apache.maven.plugin.MojoFailureException: Could not download Node.js: Got error code 404 from the server.
    at com.github.eirslett.maven.plugins.frontend.mojo.MojoUtils.toMojoFailureException(MojoUtils.java:28)
    at com.github.eirslett.maven.plugins.frontend.mojo.AbstractFrontendMojo.execute(AbstractFrontendMojo.java:103)
```

-----

Bump Node to 22.14.0 and npm to 10.9.2 in NpmTestsWithoutNpmInstallationTest

Node.js official distribution did not provide Windows ARM64 (win-arm64.zip) prebuilt binaries for Node 18.x, causing download failures on Windows on ARM runners:

```
Could not determine the dependencies of task ':nodeSetup'.
> Failed to query the value of task ':nodeSetup' property 'nodeArchiveFile'.
   > Could not resolve all files for configuration ':detachedConfiguration1'.
      > Could not find org.nodejs:node:18.16.1.
        Searched in the following locations:
          - https://nodejs.org/dist/v18.16.1/node-v18.16.1-win-arm64.zip
```

-----

Bump gradle-node-plugin to 7.1.0 in NpmTestsWithoutNpmInstallationTest

Fixes configuration cache failure on Linux ARM runners where gradle-node-plugin 3.5.1 attempted to run `uname -m` during configuration time:

```
Caused by: org.gradle.api.InvalidUserCodeException: Starting an external process 'uname -m' during configuration time is unsupported.
    at org.gradle.configurationcache.initialization.DefaultConfigurationCacheProblemsListener.onExternalProcessStarted(ConfigurationCacheProblemsListener.kt:87)
    at org.gradle.configurationcache.InstrumentedInputAccessListener.externalProcessStarted(InstrumentedInputAccessListener.kt:110)
    at org.gradle.internal.classpath.Instrumented.externalProcessStarted(Instrumented.java:501)
    at org.gradle.internal.classpath.Instrumented.externalProcessStarted(Instrumented.java:509)
    at org.gradle.internal.classpath.Instrumented.start(Instrumented.java:363)
    at com.github.gradle.node.util.KotlinUtilsKt.execute(KotlinUtils.kt:14)
```
@Goooler
Goooler merged commit c89f8d2 into main Sep 16, 2026
28 checks passed
@Goooler
Goooler deleted the g/20260916/fix-npm-tests-on-arm-runners branch September 16, 2026 11:52
@Goooler Goooler changed the title Fix NPN tests on ARM based runners Fix NPM tests on ARM based runners Sep 16, 2026
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