elastic / elastic-otel-java

Apache License 2.0
10 stars 9 forks source link

buildkite(hook): install gradle with some retry #146

Closed v1v closed 5 months ago

v1v commented 5 months ago

It failed, and we don't want environmental issues in the releases. For such, let's use the pre-command to install gradle

image

In this build (Only accessible by Elastic employees)

SylvainJuge commented 5 months ago

I know it's probably only tangent to this, but does buildkite provides a way to configure a cache that we could use to avoid depending on those environment issues when doing the build ?

v1v commented 5 months ago

I know it's probably only tangent to this, but does buildkite provides a way to configure a cache that we could use to avoid depending on those environment issues when doing the build ?

Yes, there are two alternatives:

1) Create a VM with all the tooling 2) Create a docker image with all the tooling

I don't know if there is a hard requirement to use VMs, but if not, we could try using a docker container.

Those VM/container definitions are stored in a private GitHub repository.

SylvainJuge commented 5 months ago

The is not a strict requirement for VMs, but we do use quite a few containers for testing, and I'm not certain that running docker in docker would work as expected here. We can definitely improve that later if we end up having too much flakyness.