Hi Olek,
> I added that in an attempt to override the incorrect flag, but instead > they are both emitted which still causes the error.
Sorry for the misleading.
I forgot that the "flaky Java autopkgtests" has been disabled. :-) Yes, It failed once I tried to enable the "java-1-hello" test.
>> I *have* temporarily disabled the Java tests [1]. As you said, to not >> hold back the package due to a possibly flaky test. But my concern is >> that this is actually an issue with how Bazel uses Java rather than a >> flaky test. Again, I'd be happy to be wrong about that. :) > This is really just an optimization parameter, I don't think this is > a critical issue. There is probably a UseParallelOldGC parameter left > somewhere in the bazel source files. I can't find it on codesearch [1], > maybe in a zip extracted at build time? I agree with what Emmanuel Bourg said: It seems that the build system's local jdk overrides those jvm parameters we defined in bazelrc or bashsrcript. Anyone who is instersted in this bug,please have a look at autopkgtests log bellow: cd /home/debci/.cache/bazel/_bazel_debci/698c1127ea1ad847cdc7bf5209ab9eb9/sandbox/processwrapper-sandbox/17/execroot/io_bazel && exec env - LC_CTYPE=en_US.UTF-8 PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games external/local_jdk/bin/java -Xverify:none -XX:+UseParallelOldGC -XX:-CompactStrings '--patch-module=java.compiler=external/remote_java_tools_linux/java_tools/java_compiler.jar' '--patch-module=jdk.compiler=external/remote_java_tools_linux/java_tools/jdk_compiler.jar' --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED' '--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED' '--add-exports=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED' '--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED' '--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED' '--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED' '--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED' '--add-opens=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED' '--add-opens=java.base/java.nio=ALL-UNNAMED' '--add-opens=java.base/java.lang=ALL-UNNAMED' -jar external/remote_java_tools_linux/java_tools/turbine_direct_binary_deploy.jar --output bazel-out/k8-fastbuild/bin/examples/java-native/src/main/java/com/example/myproject/libhello-lib-hjar.jar --output_deps bazel-out/k8-fastbuild/bin/examples/java-native/src/main/java/com/example/myproject/libhello-lib-hjar.jdeps --bootclasspath bazel-out/k8-fastbuild/bin/external/bazel_tools/tools/jdk/platformclasspath.jar --sources examples/java-native/src/main/java/com/example/myproject/Greeter.java --javacopts -source 8 -target 8 '-XDskipDuplicateBridges=true' '-XDcompilePolicy=simple' -g -parameters -XX:+UseParallelGC -XX:+IgnoreUnrecognizedVMOptions -XX:+UseParallelGC -XX:+IgnoreUnrecognizedVMOptions -- --target_label //examples/java-native/src/main/java/com/example/myproject:hello-lib --reduce_classpath_mode NONE) Execution platform: //:default_host_platform |