elastic / beats

:tropical_fish: Beats - Lightweight shippers for Elasticsearch & Logstash
https://www.elastic.co/products/beats
Other
12.15k stars 4.91k forks source link

X-Pack Metricbeat `stan` module integration and system tests failing on `main` branch #34844

Open ycombinator opened 1 year ago

ycombinator commented 1 year ago

As seen in https://beats-ci.elastic.co/job/Beats/job/beats/job/main/1343/#showFailuresLink:

Build&Test / x-pack/metricbeat-pythonIntegTest / x-pack.metricbeat.module.stan.test_stan.TestStan.test_metricset_0_stats Build&Test / x-pack/metricbeat-pythonIntegTest / x-pack.metricbeat.module.stan.test_stan.TestStan.test_metricset_1_channels Build&Test / x-pack/metricbeat-pythonIntegTest / x-pack.metricbeat.module.stan.test_stan.TestStan.test_metricset_2_subscriptions Build&Test / x-pack/metricbeat-goIntegTest / github.com/elastic/beats/v7/x-pack/metricbeat/module/stan/channels.TestData Build&Test / x-pack/metricbeat-goIntegTest / github.com/elastic/beats/v7/x-pack/metricbeat/module/stan/channels.TestFetch Build&Test / x-pack/metricbeat-goIntegTest / github.com/elastic/beats/v7/x-pack/metricbeat/module/stan/stats.TestData Build&Test / x-pack/metricbeat-goIntegTest / github.com/elastic/beats/v7/x-pack/metricbeat/module/stan/stats.TestFetch Build&Test / x-pack/metricbeat-goIntegTest / github.com/elastic/beats/v7/x-pack/metricbeat/module/stan/subscriptions.TestData Build&Test / x-pack/metricbeat-goIntegTest / github.com/elastic/beats/v7/x-pack/metricbeat/module/stan/subscriptions.TestFetch

Taking a cursory look at the failures, it appears the failure is a result of this line in the stan module's Dockerfile:

https://github.com/elastic/beats/blob/f20ce9d599f5a78c578e29dbcfaa16fbb2bcdd25/x-pack/metricbeat/module/stan/_meta/Dockerfile#L7

This line's execution while building the Docker image appears to be resulting in this error:

package crypto/ecdh: unrecognized import path "crypto/ecdh" (import path does not begin with hostname)
ycombinator commented 1 year ago

This error is pretty easy to reproduce locally:

$ docker build x-pack/metricbeat/module/stan/_meta/
[+] Building 42.2s (13/18)
 => [internal] load build definition from Dockerfile                                                                                                       0.0s
 => => transferring dockerfile: 1.07kB                                                                                                                     0.0s
 => [internal] load .dockerignore                                                                                                                          0.0s
 => => transferring context: 2B                                                                                                                            0.0s
 => [internal] load metadata for docker.io/library/alpine:latest                                                                                           1.5s
 => [internal] load metadata for docker.io/library/nats-streaming:0.15.1                                                                                   1.8s
 => [internal] load metadata for docker.io/library/golang:1.13-alpine3.11                                                                                  2.6s
 => [build-env 1/4] FROM docker.io/library/golang:1.13-alpine3.11@sha256:ec6dcf15073c307fbcfc3149efe8835f3ec2bd0a0cb49aaaee4949cfc4c86b65                 11.4s
 => => resolve docker.io/library/golang:1.13-alpine3.11@sha256:ec6dcf15073c307fbcfc3149efe8835f3ec2bd0a0cb49aaaee4949cfc4c86b65                            0.0s
 => => sha256:ec6dcf15073c307fbcfc3149efe8835f3ec2bd0a0cb49aaaee4949cfc4c86b65 1.65kB / 1.65kB                                                             0.0s
 => => sha256:e9849c96c126e2cd9d0c6188c8816ed6c983e464d27b26d7dea2bdda6e6b09a9 1.36kB / 1.36kB                                                             0.0s
 => => sha256:eff4fd40cebca1bf65f86bd999768cc065bbcaee9a87bca1c781520439b71179 3.83kB / 3.83kB                                                             0.0s
 => => sha256:cbdbe7a5bc2a134ca8ec91be58565ec07d037386d1f1d8385412d224deafca08 2.81MB / 2.81MB                                                             0.4s
 => => sha256:408f875501273f3af2a9cbff2a23e736585641e73da80dd81712518b28e7843c 301.28kB / 301.28kB                                                         0.2s
 => => sha256:fe522b08c9798748151fec9b7a908aca712cd102cfcbb8ed79d57d05b71e6cc4 153B / 153B                                                                 0.4s
 => => sha256:274b9d9af2b46dabd49a54299608e460f7a8427d7bf578e883a86356982bade6 126.96MB / 126.96MB                                                         3.8s
 => => extracting sha256:cbdbe7a5bc2a134ca8ec91be58565ec07d037386d1f1d8385412d224deafca08                                                                  0.2s
 => => sha256:53955a7f64a2efc6fe0a90603a31da26dbec9d5b137e6277de89106efdbc3c07 125B / 125B                                                                 0.5s
 => => extracting sha256:408f875501273f3af2a9cbff2a23e736585641e73da80dd81712518b28e7843c                                                                  0.2s
 => => extracting sha256:fe522b08c9798748151fec9b7a908aca712cd102cfcbb8ed79d57d05b71e6cc4                                                                  0.0s
 => => extracting sha256:274b9d9af2b46dabd49a54299608e460f7a8427d7bf578e883a86356982bade6                                                                  6.9s
 => => extracting sha256:53955a7f64a2efc6fe0a90603a31da26dbec9d5b137e6277de89106efdbc3c07                                                                  0.0s
 => [internal] load build context                                                                                                                          0.0s
 => => transferring context: 478B                                                                                                                          0.0s
 => [stage-0 1/1] FROM docker.io/library/nats-streaming:0.15.1@sha256:127278c45e93822e6bef3f6367d4e724f2073548a04c8f455523f3325f1d4980                     1.5s
 => => resolve docker.io/library/nats-streaming:0.15.1@sha256:127278c45e93822e6bef3f6367d4e724f2073548a04c8f455523f3325f1d4980                             0.0s
 => => sha256:127278c45e93822e6bef3f6367d4e724f2073548a04c8f455523f3325f1d4980 1.25kB / 1.25kB                                                             0.0s
 => => sha256:2d8812318d1c4a1c7a114e4d3254419af10e5c39e515455886272c45dd7cf479 528B / 528B                                                                 0.0s
 => => sha256:cda16c83dcc1185b2106a735ab128299b81e73fdcd342525e88c669b25c18432 1.93kB / 1.93kB                                                             0.0s
 => => sha256:494bab3419b7dcfee88adb9e28f4382c3b428d8d5c49ea49a59b76c0f8e45bef 5.41MB / 5.41MB                                                             1.2s
 => => extracting sha256:494bab3419b7dcfee88adb9e28f4382c3b428d8d5c49ea49a59b76c0f8e45bef                                                                  0.2s
 => [stage-2 1/7] FROM docker.io/library/alpine:latest@sha256:ff6bdca1701f3a8a67e328815ff2346b0e4067d32ec36b7992c1fdc001dc8517                             0.7s
 => => resolve docker.io/library/alpine:latest@sha256:ff6bdca1701f3a8a67e328815ff2346b0e4067d32ec36b7992c1fdc001dc8517                                     0.0s
 => => sha256:ff6bdca1701f3a8a67e328815ff2346b0e4067d32ec36b7992c1fdc001dc8517 1.64kB / 1.64kB                                                             0.0s
 => => sha256:e2e16842c9b54d985bf1ef9242a313f36b856181f188de21313820e177002501 528B / 528B                                                                 0.0s
 => => sha256:b2aa39c304c27b96c1fef0c06bee651ac9241d49c4fe34381cab8453f9a89c7d 1.47kB / 1.47kB                                                             0.0s
 => => sha256:63b65145d645c1250c391b2d16ebe53b3747c295ca8ba2fcb6b0cf064a4dc21c 3.37MB / 3.37MB                                                             0.3s
 => => extracting sha256:63b65145d645c1250c391b2d16ebe53b3747c295ca8ba2fcb6b0cf064a4dc21c                                                                  0.2s
 => [stage-2 2/7] RUN apk add --no-cache --upgrade bash                                                                                                    3.2s
 => [stage-2 3/7] COPY --from=0 nats-streaming-server /nats-streaming-server                                                                               0.2s
 => [build-env 2/4] RUN apk --no-cache add build-base git mercurial gcc                                                                                    8.7s
 => ERROR [build-env 3/4] RUN cd src && go get -d github.com/nats-io/stan.go/                                                                             19.2s
------
 > [build-env 3/4] RUN cd src && go get -d github.com/nats-io/stan.go/:
#12 9.338 package crypto/ecdh: unrecognized import path "crypto/ecdh" (import path does not begin with hostname)
------
executor failed running [/bin/sh -c cd src && go get -d github.com/nats-io/stan.go/]: exit code: 1
michalpristas commented 1 year ago

i see 8.4, and 8.5 failing as well

botelastic[bot] commented 5 months ago

Hi! We just realized that we haven't looked into this issue in a while. We're sorry!

We're labeling this issue as Stale to make it hit our filters and make sure we get back to it as soon as possible. In the meantime, it'd be extremely helpful if you could take a look at it as well and confirm its relevance. A simple comment with a nice emoji will be enough :+1. Thank you for your contribution!