The GitHub Actions job "license" on 
incubator-graphar.git/feat/java-info-unit-tests has failed.
Run started by GitHub user Thespica (triggered by Thespica).

Head commit for run:
0130c42a21d4fd6672eb923901c09b71b8989a23 / google-labs-jules[bot] 
<161369871+google-labs-jules[bot]@users.noreply.github.com>
feat: Add comprehensive unit tests for java-info module (attempt 2)

This commit includes the unit tests for the java-info module as per
issue #676.

Work done:
- I created a test dataset in 
maven-projects/info/src/test/resources/gar_test_data/.
- I implemented GraphInfoTest.java, VertexInfoTest.java, and EdgeInfoTest.java
  with detailed tests for loading and validating graph metadata,
  vertex information (including properties and property groups), and
  edge information (including adjacent lists and property groups).

Blocker:
The `mvn spotless:apply` command fails due to a `java.lang.IllegalAccessError`.
The `google-java-format` tool (used by Spotless) cannot access internal JDK
compiler classes (com.sun.tools.javac.parser.Tokens$TokenKind) because they
are not exported by the module system in the current JDK.

I attempted to resolve this by:
1. Adding 
`<jvmArg>--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED</jvmArg>`
   to the spotless-maven-plugin configuration in `maven-projects/info/pom.xml`
   failed because the plugin version 2.20.0 does not accept `<jvmArgs>` in the
   `<java>` or `<googleJavaFormat>` sections.
2. Updating the `googleJavaFormat` version from 1.7 to 1.13.0 in
   `maven-projects/info/pom.xml` (to match the version used in the spark module)
   did not resolve the IllegalAccessError.

Without the ability to correctly configure the spotless-maven-plugin to pass
the necessary JVM arguments to the formatter, or to find alternative ways to
set these arguments (e.g., global MAVEN_OPTS), I am unable to format the
code and satisfy the CI requirements. Further investigation into the correct
spotless plugin configuration or environment setup is needed.

Report URL: https://github.com/apache/incubator-graphar/actions/runs/15216362668

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@graphar.apache.org
For additional commands, e-mail: commits-h...@graphar.apache.org

Reply via email to