| --- |
| tasks: |
| ubuntu2004_arm64: |
| shell_commands: |
| # Android SDK NDK not available on Linux ARM64 |
| # - sed -i.bak -e 's/^# android_sdk_repository/android_sdk_repository/' -e 's/^# |
| # android_ndk_repository/android_ndk_repository/' WORKSPACE |
| # - rm -f WORKSPACE.bak |
| - rm -rf $HOME/bazeltest |
| - mkdir $HOME/bazeltest |
| build_flags: |
| - "--test_env=TEST_INSTALL_BASE=$HOME/bazeltest/install_base" |
| - "--test_env=TEST_REPOSITORY_HOME=$OUTPUT_BASE/external" |
| - "--test_env=REMOTE_NETWORK_ADDRESS=bazel.build:80" |
| - "--noremote_accept_cached" |
| build_targets: |
| - "//src:bazel" |
| - "//src:bazel_jdk_minimal" |
| - "//src:test_repos" |
| test_flags: |
| - "--sandbox_default_allow_network=false" |
| - "--sandbox_writable_path=$HOME/bazeltest" |
| - "--test_env=TEST_INSTALL_BASE=$HOME/bazeltest/install_base" |
| - "--test_env=TEST_REPOSITORY_HOME=$OUTPUT_BASE/external" |
| # Configure and enable tests that require access to the network. |
| - "--test_env=REMOTE_NETWORK_ADDRESS=bazel.build:80" |
| test_targets: |
| - "//scripts/..." |
| - "//src/java_tools/..." |
| - "//src/test/..." |
| - "//src/tools/execlog/..." |
| - "//src/tools/singlejar/..." |
| - "//src/tools/workspacelog/..." |
| - "//third_party/ijar/..." |
| # - "//tools/android/..." |
| - "//tools/aquery_differ/..." |
| - "//tools/python/..." |
| # Re-enable once fixed: https://github.com/bazelbuild/bazel/issues/8162 |
| - "-//src/java_tools/import_deps_checker/..." |
| # Disable Android tests on Linux ARM64 |
| - "-//src/test/shell/bazel/android/..." |
| - "-//src/test/java/com/google/devtools/build/android/..." |
| - "-//src/test/java/com/google/devtools/build/lib/bazel/rules/android/..." |
| - "-//src/test/java/com/google/devtools/build/lib/rules/android/..." |
| - "-//src/test/shell/bazel:bazel_android_tools_test" |
| # TODO: Re-enable the following tests on Linux ARM64 if possible |
| - "-//src/test/java/com/google/devtools/build/lib/buildtool:CompileOneDependencyIntegrationTest" |
| - "-//src/test/java/com/google/devtools/build/lib/buildtool:DanglingSymlinkTest" |
| - "-//src/test/java/com/google/devtools/build/lib/buildtool:KeepGoingTest" |
| - "-//src/test/java/com/google/devtools/build/lib/buildtool:MiscAnalysisTest" |
| - "-//src/test/java/com/google/devtools/build/lib/remote:remote" |
| - "-//src/test/java/com/google/devtools/build/lib/rules/objc:BazelJ2ObjcLibraryTest" |
| - "-//src/test/java/com/google/devtools/build/lib/skyframe/serialization:SerializationTests" |
| - "-//src/test/java/net/starlark/java/eval:ScriptTest" |
| - "-//src/test/shell/bazel:bazel_cc_code_coverage_test" |
| - "-//src/test/shell/bazel:bazel_coverage_java_jdk17_toolchain_head_test" |
| - "-//src/test/shell/bazel:bazel_coverage_java_jdk17_toolchain_released_test" |
| - "-//src/test/shell/bazel:bazel_java17_test" |
| - "-//src/test/shell/bazel:bazel_java_test_defaults" |
| - "-//src/test/shell/bazel:bazel_java_test_jdk17_toolchain_head" |
| - "-//src/test/shell/bazel:bazel_with_jdk_test" |
| - "-//src/test/shell/bazel/remote:remote_execution_mtls_test" |
| - "-//src/test/shell/bazel/remote:remote_execution_tls_test" |
| - "-//src/test/shell/integration:bazel_java_test" |
| - "-//src/test/shell/integration:minimal_jdk_test" |
| - "-//src/test/java/com/google/devtools/build/lib/rules/objc:ObjcRulesTests" |
| - "-//src/test/java/com/google/devtools/build/lib/skyframe/rewinding:RewindingTest" |
| - "-//src/test/java/com/google/devtools/build/lib/buildtool:SkymeldBuildIntegrationTest" |
| include_json_profile: |
| - build |
| - test |
| |