Repository navigation
Build and test the wasm module in CI, on the Java 21 and Java 25 cases - #273
Merged
Merged
Conversation
The test cases moved to test-cases-java21 in 970c348, but wasmDifferentialTest still passed the old folder, so the release's wasm job failed with ENOENT before comparing anything. The jar it compares with runs on JDK 21, so the cases for JDK 21 are the ones.
Until now only the release built the module, so a change that broke it showed in a release: the moved test-cases folder did. CI's new wasm job runs wasmTest as the release's does, after build. The differential test now runs the jar on the Oracle GraalVM 25 the module is built with, rather than on JDK 21, so that both parse with the same javac, and gives it the cases in test-cases-java25 as well as those in test-cases-java21. differential.mjs takes any number of case folders and names each input after its folder.
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.
Based on
21.X.X.The release workflow's
wasmjob fails inwasmDifferentialTest:differential.mjsgetsopen-java-format/src/test/resources/test-cases, which no longer exists, andreaddirSyncthrowsENOENT. The cases moved totest-cases-java21in 970c348;FormatterCasesTestandRemoveUnusedImportsTestfollowed, butopen-java-format-wasm/build.gradledid not, and nothing but the release builds that project (-Pwasm=true).Changes
wasmDifferentialTestreadstest-cases-java21andtest-cases-java25: 919 inputs.differential.mjstakes any number of case folders and names each input after its folder and file.wasmjob, afterbuild, that runswasmTestas the release's job does: Oracle GraalVM 25.0.4, Binaryen 133 and Node 24. It builds no zip and keeps nothing.settings.gradle, the README and one comment in release.yml now say that CI builds the module too.Checked
The jar side of
differential.mjswas run locally on JDK 25 against both folders: it formats all 919 inputs and prints only lines that name one. The module side needs Oracle GraalVM and Binaryen, which the newwasmjob of this pull request provides. actionlint and zizmor report nothing on ci.yml.