You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We shouldn't be using JDK 9 as a --javabase yet, just as a --host_javabase, so that TODO shouldn't be a problem.
Can you confirm that the JAVA_HOME environment variable is being set correctly for those windows tests, and that this logic is locating the local JDK 8 instead of the embedded JDK 9?
Since both of the failing tests as python integration tests, maybe there's some setup that needs to handle for python tests that isn't currently happening? Maybe something needs to happen for py tests here?
The JAVA_HOME set in bazel/src/test/shell/testenv.sh should be irrelevant to python tests. --test_env=JAVA_HOME will pass JAVA_HOME to all tests. But looks like we are not respecting it in test_base.py
So, maybe adding a env['JAVA_HOME'] = TestBase.GetEnv('JAVA_HOME') will fix it?
Activity
cushon commentedon Jun 1, 2018
Are they only failing on windows?
buchgr commentedon Jun 2, 2018
@cushon yes! The
windows_remote_testis also only run on Windows, but therunfiles_testruns on all platforms.aehlig commentedon Jun 4, 2018
@laszlocsomor can you help triaging further and assign as appropriate? Thanks.
meteorcloudy commentedon Jun 4, 2018
@aehlig Laszlo is on vacation this week, I can take a look at this.
meteorcloudy commentedon Jun 4, 2018
@buchgr
bazel/src/main/tools/jdk.BUILD
Lines 74 to 78 in c924cf6
Did you see this?
@cushon Not sure why it's only failing on Windows, any idea how to fix for JDK 9?
cushon commentedon Jun 4, 2018
We shouldn't be using JDK 9 as a
--javabaseyet, just as a--host_javabase, so that TODO shouldn't be a problem.Can you confirm that the
JAVA_HOMEenvironment variable is being set correctly for those windows tests, and that this logic is locating the local JDK 8 instead of the embedded JDK 9?bazel/src/main/java/com/google/devtools/build/lib/packages/WorkspaceFactory.java
Lines 542 to 546 in f4cf006
meteorcloudy commentedon Jun 5, 2018
@buchgr Can you confirm the Windows setup for
JAVA_HOME?cushon commentedon Jun 5, 2018
I saw there's some windows-specific
JAVA_HOMEhandling, but I don't totally understand how it all fits together:bazel/src/test/shell/testenv.sh
Line 58 in 38a36cc
bazel/.bazelci/presubmit.yml
Line 77 in b84e1a6
Since both of the failing tests as python integration tests, maybe there's some setup that needs to handle for python tests that isn't currently happening? Maybe something needs to happen for py tests here?
bazel/src/test/py/bazel/test_base.py
Line 258 in 38a36cc
meteorcloudy commentedon Jun 6, 2018
The
JAVA_HOMEset inbazel/src/test/shell/testenv.shshould be irrelevant to python tests.--test_env=JAVA_HOMEwill passJAVA_HOMEto all tests. But looks like we are not respecting it intest_base.pySo, maybe adding a
env['JAVA_HOME'] = TestBase.GetEnv('JAVA_HOME')will fix it?cushon commentedon Jun 6, 2018
@meteorcloudy thanks!
I got the python tests passing on windows with this patch:
@buchgr can you include that change in #5312?
update bazel's embedded jdk to jdk9
laszlocsomor commentedon Jul 3, 2018
Can we close this bug?
buchgr commentedon Jul 3, 2018
Yep!
update bazel's embedded jdk to jdk9
update bazel's embedded jdk to jdk9