Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues Running bazel test //... #763

Open
aryeh-looker opened this issue Oct 1, 2022 · 1 comment
Open

Issues Running bazel test //... #763

aryeh-looker opened this issue Oct 1, 2022 · 1 comment

Comments

@aryeh-looker
Copy link

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)
@aryeh-looker
Copy link
Author

aryeh-looker commented Oct 1, 2022

Tried bazel clean --expunge as well, but same issues

jonshea added a commit to jonshea/rules_jvm_external that referenced this issue Nov 28, 2022
Tests will fail unless there is an Android SDK available on the system.
This PR documents the Android SDK requirement in the "Tests" section of
`README.md`.

See: bazel-contrib#763
shs96c pushed a commit that referenced this issue Dec 6, 2022
Tests will fail unless there is an Android SDK available on the system.
This PR documents the Android SDK requirement in the "Tests" section of
`README.md`.

See: #763
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant