grafana / k6

A modern load testing tool, using Go and JavaScript - https://k6.io
GNU Affero General Public License v3.0
26.03k stars 1.27k forks source link

Extensions build process fails due to go.buf.build #3252

Closed codebien closed 1 year ago

codebien commented 1 year ago

It is not possible to build extensions that are not based on the latest commit of the k6 master branch.

The issue is generated by go.buf.build that has been removed so it isn't able to serve the expected Prometheus remote write dependencies.

For example, following the steps for building the InfluxDB output will generate a failure: https://github.com/grafana/xk6-output-influxdb#install

We are working on a patch for hot fixing v0.45.0 and release a new v0.45.1 patch. This is a high-priority issue and we are actively working on this.

A work around is to run the xk6 command using the -replace directive as following:

xk6 build --with github.com/grafana/xk6-output-influxdb --replace go.buf.build/grpc/go/prometheus/prometheus=buf.build/gen/go/prometheus/prometheus/protocolbuffers/go@latest --replace go.buf.build/grpc/go/gogo/protobuf=buf.build/gen/go/gogo/protobuf/protocolbuffers/go@latest
kalyan02 commented 1 year ago

@codebien Thank you for reporting this and suggesting a fix.

Would appreciate if you are able to clarify the following:

mstoykov commented 1 year ago

is the domain go.buf.build owned by k6/grafana?

No - we have nothing to do with the project, apart from using it.

would the packages be coming back up at go.buf.build? or the replacement with buf.build permanent?

The replacement is permanent and we do not know what caused it to suddenly stop working today exactly.

kalyan02 commented 1 year ago

@mstoykov Thanks for clarification.

I suspect is is possible that either the cache on the mirros served via cloudflare expired or TTL on the subdomain expired.

Cheers!

codebien commented 1 year ago

A new k6 release v0.45.1 with a patch has been released. We are accordingly updating extensions for restoring the build processes.

Laurianti commented 1 year ago

https://github.com/grafana/xk6-amqp/issues/34

codebien commented 1 year ago

Closing as all the extensions in the Grafana organization have been fixed.