Consider passing GOPROXY in x-pack/metricbeat during integration tests #42446
Labels
libbeat
:Processors
Team:Service-Integrations
Label for the Service Integrations team
x-pack
Issues and pull requests for X-Pack features.
This issue is related to #42443 but it's more about the why and a shorter term solution, rather than the longer term solution.
As discovered in the PR #42358,
mage goIntegTest
(and also Python Integ Tests) fail while downloading the indirect dependency forgo.opencensus.io
. The dependency comes from dgraph-io/badger (more details in #42443 and dgraph-io/badger#2155).The error we are getting comes from the cloudfoundry module (link) and looks like:
The interesting bit is that e.g.
go get github.com/dgraph-io/badger/[email protected]
works on the CI worker itself, but fails when invoked via docker-compose as part of the test.Other projects that have encountered this issue recommend setting GOPROXY='https://proxy.golang.org/,direct', so this could be explored (keeping in mind, though, directly issuing
go get ...
on the VM seems to work without needing to define GOPROXY.For now, we had to work around the problem with VM images that have predownloaded
dgraph-io/badger/v4
and its dependencies (PR link).The text was updated successfully, but these errors were encountered: