Repository navigation
FIX @W-24708955@ Pin Java 17 in the npm publish workflow - #525
Merged
Merged
Conversation
ubuntu-latest now resolves to ubuntu-26.04, whose default JDK is Java 25. The PMD (and SFGE) engines build with Gradle 8.9, which cannot run on Java 25, so the build-and-test-and-publish job failed at code-analyzer-pmd-engine (dry run 45878114236). Pin Temurin 17 with actions/setup-java instead of relying on the runner image default. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Git2Gus App is installed but the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The November dry run of
publish-package-to-npm.yml(run 45878114236,dev@ 9244099,dryrun=true) failed inbuild-and-test-and-publishatcode-analyzer-pmd-engine:runs-on: ubuntu-latestnow resolves toubuntu-26.04(image 20261116.202). Its default JDK is Java 25.0.5 (Java 11, 17 and 21 are also installed). The PMD and SFGE engines build with the Gradle 8.9 wrapper, which cannot run on Java 25. The workflow never selects a JDK, so it picked up the new image default.This is independent of the monthly changes and would break the real publish too.
engine-api,core,eslint8,eslintandflowhad already built, tested and dry-run published successfully before the failure.Change
Add
actions/setup-java@v4(Temurin 17) to thebuild-and-test-and-publishjob, so the JDK no longer depends on the runner image default. Workflow-only change; no package code is touched.Java 17 is within what the project builds with (the pmd-rules Gradle build targets Java 11 and
verify-pr.ymlpins Java 11).Not changed
validate-packages-as-releasable,prepare-release-branchandcreate-postrelease-pull-requestrun on macOS and succeeded in the dry run. They are untouched.Test plan
dev, then re-run the dry run fromdevwith all 11 packages anddryrun=true. Expectbuild-and-test-and-publishto pass for all 11 packages, includingpmdandsfge. Delete the leftoverrelease/<epoch>branch afterwards.Work item: W-24708955
🤖 Generated with Claude Code