Skip to content

e2e test fails because of missing maven build dependency  #33

Description

@jamesbond7

There is an e2e test having the following BUILD.bazel file:


specs2_ite2e_test(
name = "e2e",
size = "large",
srcs = [
":sources",
],
data = [
"//tgs/vap-tgs-search-v7",
"//third_party/docker_images:vespa_7.tar",
],
jvm_flags = [
"-Dvap='$(rootpaths //tgs/vap-tgs-search-v7)'",
],
runtime_deps = [
"//e2e/src/it/resources",
],
deps = [
...
],
)

It depends on //tgs/vap-tgs-search-v7 artifact having the following BUILD.bazel file:


package(default_visibility = ["//visibility:public"])

load("@core_server_build_tools//packager:publisher.bzl","publisher_tags")
load("@wix_incubator_bazelizer//maven:defs.bzl", "maven_project")
load("@bazelizer//:execute_build.bzl", "execute_build")

filegroup(
name = "source",
srcs = glob([
"src//*",
"assembly/
/*",
]),
)

maven_project(
name = "maven",
flags = [
"--deps-drop-all",
"--deps-drop-exclude", "com.yahoo.vespa:*",
"--mvn-active-profiles", "vespa_7",
],
parent_project = "//srs/3party:maven_vespa_7",
pom_file = ":pom.xml",
)

execute_build(
name = "vap-tgs-search-v7",
srcs = [":source"],
project = ":maven",
outputs = [
"application.zip",
"vap-tgs-search-v7-1.0.0-SNAPSHOT.tar.gz",
],
tags = publisher_tags(
"com.wixpress.search.tgs",
"vap-tgs-search-v7",
"tar.gz",
classifier = "",
) + ["deployable"],

) + [""], # to make it build locally

deps = [
    "//deviantart/da-searcher-components:agg=._da-searcher-components-bundle-deps-v7",
],

)

The bazel test command fails:

bazel test //e2e/src/it/scala/com/wixpress/search/tgs/vap_tgs_search_v7/...

...
org.specs2.specification.core.FatalExecution: java.nio.file.NoSuchFileException: tgs/vap-tgs-search-v7/application.zip
Caused by: java.nio.file.NoSuchFileException: tgs/vap-tgs-search-v7/application.zip
...

We see that the following dependency file is missing:

/private/var/tmp/_bazel_gregoryb/96006f863e737e544cd95e9f71f4b21f/execroot/vespa_services/bazel-out/darwin-fastbuild/bin/e2e/src/it/scala/com/wixpress/search/tgs/vap_tgs_search_v7/e2e_test_runner.runfiles/vespa_services/tgs/vap-tgs-search-v7/application.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions