JetBrains / teamcity-bazel-plugin

TeamCity plugin for Bazel build system
Apache License 2.0
14 stars 6 forks source link

Integration tests are broken #35

Closed odisseus closed 1 month ago

odisseus commented 7 months ago

The task :plugin-bazel-integration-tests:integration fails, because the example projects cannot be built.

With the latest version of Bazel (7.0.2)

$ cd /plugin-bazel-integration-tests/samples/FlakyTests
$ bazel test //...
ERROR: FlakyTests/WORKSPACE:3:1: name 'maven_jar' is not defined
ERROR: FlakyTests/WORKSPACE:9:1: name 'maven_server' is not defined
ERROR: error loading package '': Encountered error while reading extension file 'tools/build_defs/repo/http.bzl': no such package '@bazel_tools//tools/build_defs/repo': error loading package 'external': Could not load //external package

With Bazel version 1.2.1 (which seems to have been current in 2019)

$ cd /plugin-bazel-integration-tests/samples/FlakyTests
$ bazel test --incompatible_disallow_unverified_http_downloads=false //...
Starting local Bazel server and connecting to it...
ERROR: FlakyTests/BUILD:5:1: //:java-maven-lib depends on @com_google_guava_guava//jar:jar in repository @com_google_guava_guava which failed to fetch. no such package '@com_google_guava_guava//jar': Failed to fetch Maven dependency: Could not transfer artifact com.google.guava:guava:jar:18.0 from/to com_google_guava_guava (http://uk.maven.org/maven2): uk.maven.org: nodename nor servname provided, or not known
ERROR: Analysis of target '//:java-maven-lib' failed; build aborted: no such package '@com_google_guava_guava//jar': Failed to fetch Maven dependency: Could not transfer artifact com.google.guava:guava:jar:18.0 from/to com_google_guava_guava (http://uk.maven.org/maven2): uk.maven.org: nodename nor servname provided, or not known