Skip to content

import_deps_checker tests aren't compatible with the current Bazel JDK #8162

Closed
@katre

Description

Because tests under //src/java_tools haven't been run, the code has decayed badly. I don't understand how to fix these.

To reproduce:

$ bazel build --nokeep_going  //src/java_tools/import_deps_checker/javatests/...
INFO: Analysed 31 targets (0 packages loaded, 0 targets configured).
INFO: Found 31 targets...
ERROR: missing input file '@local_jdk//:jre/lib/rt.jar'
ERROR: /usr/local/google/home/jcater/repos/bazel/src/java_tools/import_deps_checker/javatests/com/google/devtools/build/importdeps/BUILD:84:1: //src/java_tools/import_deps_checker/javatests/com/google/devtools/build/importdeps:DepsCheckerClassVisitorTest: missing input file '@local_jdk//:jre/lib/rt.jar'
ERROR: /usr/local/google/home/jcater/repos/bazel/src/java_tools/import_deps_checker/javatests/com/google/devtools/build/importdeps/BUILD:84:1 1 input file(s) do not exist
INFO: Elapsed time: 0.325s, Critical Path: 0.02s
INFO: 0 processes.
FAILED: Build did NOT complete successfully

I suspect that even cleaning this up to build, the tests still won't actually pass.

Metadata

Assignees

Labels

P3We're not considering working on this, but happy to review a PR. (No assignee)team-Rules-JavaIssues for Java rulestype: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions