e6089ad9cf
The Gerrit build of the Bazel team fails with: ERROR: /home/ci/workspace/gerrit/BAZEL_VERSION/HEAD/PLATFORM_NAME/linux-x86_64/gerrit-elasticsearch/BUILD:32:1: Java compilation in rule '//gerrit-elasticsearch:elasticsearch_test_utils' failed: Worker process sent response with exit code: 1.. gerrit-elasticsearch/src/test/java/com/google/gerrit/elasticsearch/ElasticTestUtils.java:162: error: [strict] Using type com.google.gerrit.reviewdb.client.AccountGroup from an indirect dependency (TOOL_INFO: "//gerrit-reviewdb:client"). See command below ** Schema<AccountGroup> groupSchema = ^ 1 error Change-Id: I6e3a9988becf087d9b0f9bca6c04721daa4468fc Signed-off-by: Edwin Kempin <ekempin@google.com>
71 lines
1.9 KiB
Python
71 lines
1.9 KiB
Python
java_library(
|
|
name = "elasticsearch",
|
|
srcs = glob(["src/main/java/**/*.java"]),
|
|
visibility = ["//visibility:public"],
|
|
deps = [
|
|
"//gerrit-antlr:query_exception",
|
|
"//gerrit-extension-api:api",
|
|
"//gerrit-reviewdb:client",
|
|
"//gerrit-reviewdb:server",
|
|
"//gerrit-server:server",
|
|
"//lib:gson",
|
|
"//lib:guava",
|
|
"//lib:gwtorm",
|
|
"//lib:protobuf",
|
|
"//lib/commons:codec",
|
|
"//lib/commons:lang",
|
|
"//lib/elasticsearch",
|
|
"//lib/elasticsearch:jest",
|
|
"//lib/elasticsearch:jest-common",
|
|
"//lib/guice",
|
|
"//lib/guice:guice-assistedinject",
|
|
"//lib/jgit/org.eclipse.jgit:jgit",
|
|
"//lib/joda:joda-time",
|
|
"//lib/log:api",
|
|
"//lib/lucene:lucene-analyzers-common",
|
|
"//lib/lucene:lucene-core",
|
|
],
|
|
)
|
|
|
|
load("//tools/bzl:junit.bzl", "junit_tests")
|
|
|
|
java_library(
|
|
name = "elasticsearch_test_utils",
|
|
testonly = 1,
|
|
srcs = glob(["src/test/java/**/ElasticTestUtils.java"]),
|
|
deps = [
|
|
":elasticsearch",
|
|
"//gerrit-extension-api:api",
|
|
"//gerrit-reviewdb:client",
|
|
"//gerrit-server:server",
|
|
"//lib:gson",
|
|
"//lib:guava",
|
|
"//lib:junit",
|
|
"//lib:truth",
|
|
"//lib/elasticsearch",
|
|
"//lib/jgit/org.eclipse.jgit:jgit",
|
|
"//lib/jgit/org.eclipse.jgit.junit:junit",
|
|
],
|
|
)
|
|
|
|
junit_tests(
|
|
name = "elasticsearch_tests",
|
|
size = "large",
|
|
srcs = glob(["src/test/java/**/*Test.java"]),
|
|
flaky = 1,
|
|
tags = [
|
|
"elastic",
|
|
"flaky",
|
|
],
|
|
deps = [
|
|
":elasticsearch",
|
|
":elasticsearch_test_utils",
|
|
"//gerrit-server:query_tests_code",
|
|
"//gerrit-server:server",
|
|
"//gerrit-server:testutil",
|
|
"//lib/guice",
|
|
"//lib/jgit/org.eclipse.jgit:jgit",
|
|
"//lib/jgit/org.eclipse.jgit.junit:junit",
|
|
],
|
|
)
|