bazel-contrib / bazel-contrib/rules_jvm_external

Issues Running `bazel test //...`

Open
#763 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
373
Forks
301
Avg merge
7d 17h
Merged PRs (30d)
3

Description

Getting errors with a clean installation using bazel 5.3.0 and the latest commit from `master` on both debian and mac.

**mac os 12.6, azul jdk 11**
```
$ bazel test //...
Starting local Bazel server and connecting to it...
DEBUG: /private/var/tmp/_bazel_aryehh/bf9cc807f1dda80fbd5ff19299fafa90/external/io_bazel_rules_kotlin/kotlin/kotlin.bzl:114:10: kt_jvm_test should be loaded from //kotlin:jvm.bzl
ERROR: /Users/aryehh/Development/rules_jvm_external/tests/integration/override_targets/BUILD:21:11: While resolving toolchains for target //tests/integration/override_targets:sceneform_rendering: no matching toolchains found for types @bazel_tools//tools/android:sdk_toolchain_type
ERROR: Analysis of target '//tests/integration/override_targets:sceneform_rendering' failed; build aborted:
INFO: Elapsed time: 28.796s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (279 packages loaded, 1047 targets configured)
FAILED: Build did NOT complete successfully (279 packages loaded, 1047 targets configured)
currently loading: @io_sundr_sundr_core_0_9_2//file ... (7 packages)
Fetching @jetify_all_test; Resolving and fetching the transitive closure of 3 artifact(s).. 16s
Fetching @starlark_aar_import_test; Resolving and fetching the transitive closure of 1 artifact(s).. 16s
Fetching @starlark_aar_import_with_jetify_test; Resolving and fetching the transitive closure of 1 artifact(s).. 16s
Fetching @starlark_aar_import_with_sources_test; Resolving and fetching the transitive closure of 1 artifact(s).. 16s
Fetching @jetify_include_list_test; Resolving and fetching the transitive closure of 3 artifact(s).. 15s
Fetching @npm; fetching 13s
```

**debian rodete (glinux), openjdk11-like**
```
INFO: Repository 'unsafe_shared_cache' used the following cache hits instead of downloading the corresponding file.
* Hash '076de041cbebc0a1272b84f1e69f6da5df4961847850b95cb3dfa3f776145225' for https://github.com/coursier/coursier/releases/download/v2.0.16/coursier.jar
If the definition of 'unsafe_shared_cache' was updated, verify that the hashes were also updated.
ERROR: /usr/local/google/home/aryehh/Development/rules_jvm_external/tests/unit/aar_import/BUILD:18:11: While resolving toolchains for target //tests/unit/aar_import:aar_import_that_consumes_the_downloaded_file_directly: no matching toolchains found for types @bazel_tools//tools/android:sdk_toolchain_type
Analyzing: 265 targets (116 packages loaded, 766 targets configured)
currently loading: @remote_coverage_tools// ... (8 packages)
Fetching @npm; Restarting.
Fetching @yarn; Restarting.
ERROR: Analysis of target '//tests/unit/aar_import:test_does_aar_artifact_have_the_correct_file_extension' failed; build aborted:
Analyzing: 265 targets (116 packages loaded, 766 targets configured)
currently loading: @remote_coverage_tools// ... (8 packages)
Fetching @npm; Restarting.
Fetching @yarn; Restarting.
INFO: Elapsed time: 5.412s
Analyzing: 265 targets (116 packages loaded, 766 targets configured)
currently loading: @remote_coverage_tools// ... (8 packages)
Fetching @npm; Restarting.
Fetching @yarn; Restarting.
INFO: 0 processes.
Analyzing: 265 targets (116 packages loaded, 766 targets configured)
currently loading: @remote_coverage_tools// ... (8 packages)
Fetching @npm; Restarting.
Fetching @yarn; Restarting.
FAILED: Build did NOT complete successfully (116 packages loaded, 766 targets configured)
currently loading: @remote_coverage_tools// ... (8 packages)
Fetching @npm; Restarting.
Fetching @yarn; Restarting.
Fetching @org_apache_ant_ant_1_9_9; fetching
FAILED: Build did NOT complete successfully (116 packages loaded, 766 targets configured)
currently loading: @remote_coverage_tools// ... (8 packages)
Fetching @npm; Restarting.
Fetching @yarn; Restarting.
Fetching @org_apache_ant_ant_1_9_9; fetching
Fetching https://repo1.maven.org/maven2/org/apache/commons/commons-compress/1.18/commons-compress-1.18.jar
Fetching https://repo1.maven.org/maven2/com/github/fommil/netlib/native_system-java/1.1/native_system-java-1.1.jar
Fetching https://repo1.maven.org/.../2.0.51.Final/netty-tcnative-boringssl-static-2.0.51.Final-linux-x86_64.jar
Fetching https://repo1.maven.org/maven2/com/twitter/chill-java/0.7.6/chill-java-0.7.6.jar
Fetching https://repo1.maven.org/maven2/org/clapper/grizzled-slf4j_2.12/1.3.2/grizzled-slf4j_2.12-1.3.2.jar ... (11 fetches)
```

Contributor guide

Open the contributing guide

Research direction

Reproduce `bazel test //...` with Bazel 5.3.0, then inspect the failing targets and BUILD files at `tests/integration/override_targets/BUILD` and `tests/unit/aar_import/BUILD`. Start with the reported Android SDK toolchain errors and verify that the full test command completes successfully on the affected environments.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.