blob: 5b0b59621260576a3be510d9c9bbdb00b082223d [file] [log] [blame]
load("//tools/base/bazel:bazel.bzl", "iml_module")
load("//tools/base/bazel:maven.bzl", "maven_repository")
SYNC_PERFGATE_TAGS = [
"block-network",
"noci:studio-win",
"noci:studio-linux",
"ci:perfgate-linux",
]
SYNC_SMOKE_TAGS = [
"block-network",
"noci:studio-win",
]
# managed by go/iml_to_build
iml_module(
name = "intellij.android.sync-perf-tests",
iml_files = ["intellij.android.sync-perf-tests.iml"],
split_test_targets = {
"DolphinSmoke": {
"data": ["//prebuilts/studio/buildbenchmarks/dolphin.3627ef8a"],
"test_filter": "com.android.tools.idea.gradle.project.sync.perf.DolphinSmokeTest",
"timeout": "long",
"tags": SYNC_SMOKE_TAGS,
},
"DolphinV2": {
"data": ["//prebuilts/studio/buildbenchmarks/dolphin.3627ef8a"],
"test_filter": "com.android.tools.idea.gradle.project.sync.perf.DolphinPerfTestV2",
"tags": SYNC_PERFGATE_TAGS,
},
# This split test target contains AveragePerfTest, and other unspecified tests if
# they exist. Additional targets should be made if this one begins taking a long time.
"other": {
"tags": SYNC_PERFGATE_TAGS,
},
},
test_class = "com.android.tools.idea.SyncPerfTestSuite",
test_data = [
":test_deps",
"//prebuilts/studio/sdk:build-tools/30.0.3",
"//prebuilts/studio/sdk:build-tools/latest",
"//prebuilts/studio/sdk:platform-tools",
"//prebuilts/studio/sdk:platforms/android-32", # Used for model v1 tests that needs AGP 7.1 (which needs compile sdk 32)
"//prebuilts/studio/sdk:platforms/latest",
"//prebuilts/studio/sdk:platforms/latest-preview",
"//tools/adt/idea/android/annotations",
"//tools/adt/idea/sync-perf-tests/testData",
"//tools/base/build-system:android_gradle_plugin.zip",
"//tools/base/build-system:android_gradle_plugin_runtime_dependencies",
"//tools/base/build-system:gradle-distrib",
"//tools/base/build-system:gradle-distrib-7.2",
"//tools/base/build-system/integration-test:kotlin_gradle_plugin_prebuilts",
],
# do not sort: must match IML order
test_deps = [
"//tools/adt/idea/.idea/libraries:junit4",
"//tools/adt/idea/adt-testutils:intellij.android.adt.testutils",
"//tools/adt/idea/android-common:intellij.android.common",
"//tools/base/flags:studio.android.sdktools.flags",
"//tools/base/testutils:studio.android.sdktools.testutils",
"//prebuilts/tools/common/m2:JUnit4",
"//tools/analytics-library/testing:android.sdktools.analytics-testing",
"//tools/analytics-library/tracker:analytics-tracker",
"//tools/base/perf-logger:studio.perf-logger",
"//tools/adt/idea/.idea/libraries:studio-analytics-proto",
"//tools/adt/idea/android-test-framework:intellij.android.testFramework",
"//tools/adt/idea/android:intellij.android.core",
"//tools/adt/idea/project-system-gradle:intellij.android.projectSystem.gradle",
],
test_srcs = ["testSrc"],
test_tags = [
"cpu:3",
],
test_timeout = "eternal",
visibility = ["//visibility:public"],
# do not sort: must match IML order
deps = [
"@intellij//:intellij-sdk",
"@intellij//:com.intellij.java",
"@intellij//:com.intellij.gradle",
],
)
maven_repository(
name = "test_deps",
# keep sorted: for buildifier
artifacts = [
"@maven//:com.android.support.appcompat-v7_28.0.0",
"@maven//:com.android.support.constraint.constraint-layout_1.0.2",
"@maven//:com.android.support.test.espresso.espresso-core_3.0.2",
"@maven//:com.android.support.test.uiautomator.uiautomator-v18_2.1.1",
"@maven//:com.android.tools.build.gradle_7.1.0",
"@maven//:com.google.android.android_4.1.1.4",
"@maven//:com.google.auto.value.auto-value_1.4-rc1",
"@maven//:com.google.guava.guava_19.0",
"@maven//:com.jakewharton.auto.value.auto-value-annotations_1.2-update1",
"@maven//:io.opentracing.opentracing-impl_0.13.0",
"@maven//:org.jetbrains.kotlinx.kotlinx-coroutines-core_1.4.1",
],
visibility = ["//visibility:public"],
)