open-telemetry / opentelemetry-collector-contrib

Contrib repository for the OpenTelemetry Collector
https://opentelemetry.io
Apache License 2.0
2.71k stars 2.14k forks source link

[receiver/kafkametrics] Integration test failure: number of resources doesn't match expected #26293

Open crobert-1 opened 10 months ago

crobert-1 commented 10 months ago

Component(s)

receiver/kafkametrics

Describe the issue you're reporting

Possibly related to #23267, but I don't believe they're duplicates.

CI failure link

Failure stack trace:

running go integration test ./... in /home/runner/work/opentelemetry-collector-contrib/opentelemetry-collector-contrib/receiver/kafkametricsreceiver
go test -race -timeout 360s -parallel 4 -tags=integration,"" -run=Integration ./...
2023/08/29 22:03:50 github.com/testcontainers/testcontainers-go - Connected to docker: 
  Server Version: 24.0.5
  API Version: 1.43
  Operating System: Ubuntu 22.04.3 LTS
  Total Memory: 6931 MB
  Resolved Docker Host: unix:///var/run/docker.sock
  Resolved Docker Socket Path: /var/run/docker.sock
2023/08/29 22:03:50 🐳 Creating container for image docker.io/testcontainers/ryuk:0.5.1
2023/08/29 22:03:51 βœ… Container created: 7572a2d10665
2023/08/29 22:03:51 🐳 Starting container: 7572a2d10665
2023/08/29 22:03:51 βœ… Container started: 7572a2d10665
2023/08/29 22:03:51 🚧 Waiting for container id 7572a2d10665 image: docker.io/testcontainers/ryuk:0.5.1. Waiting for: &{Port:8080/tcp timeout:<nil> PollInterval:100ms}
2023/08/29 22:04:06 🐳 Creating container for image ubuntu/zookeeper:3.1-22.04_beta
2023/08/29 22:04:06 🐳 Creating container for image ubuntu/kafka:3.1-22.04_beta
2023/08/29 22:04:06 βœ… Container created: 1be6e414abae
2023/08/29 22:04:06 🐳 Starting container: 1be6e414abae
2023/08/29 22:04:06 βœ… Container created: 60b3b71a7109
2023/08/29 22:04:06 🐳 Starting container: 60b3b71a7109
2023/08/29 22:04:06 βœ… Container started: 1be6e414abae
2023/08/29 22:04:06 🚧 Waiting for container id 1be6e414abae image: ubuntu/kafka:3.1-22.04_beta. Waiting for: &{timeout:<nil> deadline:<nil> Strategies:[0xc00007fec0]}
2023/08/29 22:04:07 βœ… Container started: 60b3b71a7109
2023/08/29 22:04:07 🚧 Waiting for container id 60b3b71a7109 image: ubuntu/zookeeper:3.1-22.04_beta. Waiting for: &{timeout:<nil> deadline:<nil> Strategies:[0xc00007fea0]}
2023/08/29 22:05:10 🐳 Terminating container: 60b3b71a7109
2023/08/29 22:05:11 🚫 Container terminated: 60b3b71a7109
2023/08/29 22:05:11 🐳 Terminating container: 1be6e414abae
2023/08/29 22:05:11 🚫 Container terminated: 1be6e414abae
--- FAIL: TestIntegration (81.99s)
    scraperint.go:121: 
            Error Trace:    /home/runner/work/opentelemetry-collector-contrib/opentelemetry-collector-contrib/internal/coreinternal/scraperinttest/scraperint.go:121
                                        /home/runner/work/opentelemetry-collector-contrib/opentelemetry-collector-contrib/receiver/kafkametricsreceiver/integration_test.go:78
            Error:          Condition never satisfied
            Test:           TestIntegration
    scraperint.go:103: number of resources doesn't match expected: 1, actual: 0
    scraperint.go:109: full log:
        Error scraping metrics
        Error scraping metrics
        Error scraping metrics
        Error scraping metrics
        Error scraping metrics
        Error scraping metrics
        Error scraping metrics
        Error scraping metrics
        Error scraping metrics
        Error scraping metrics
        Error scraping metrics
        Error scraping metrics
        Error scraping metrics
        Error scraping metrics
        Error scraping metrics
        Error scraping metrics
        Error scraping metrics
        Error scraping metrics
        Error scraping metrics
        Error scraping metrics
        Error scraping metrics
        Error scraping metrics
        Error scraping metrics
        Error scraping metrics
        Error scraping metrics
        Error scraping metrics
        Error scraping metrics
        Error scraping metrics
        Error scraping metrics
        Error scraping metrics
        Error scraping metrics
        Error scraping metrics
        Error scraping metrics
        Error scraping metrics
        Error scraping metrics
        Error scraping metrics
    scraperint.go:117: latest result:
        {}
FAIL
FAIL    github.com/open-telemetry/opentelemetry-collector-contrib/receiver/kafkametricsreceiver 82.053s
ok      github.com/open-telemetry/opentelemetry-collector-contrib/receiver/kafkametricsreceiver/internal/metadata   0.044s [no tests to run]
FAIL
make[2]: *** [../../Makefile.Common:116: mod-integration-test] Error 1
github-actions[bot] commented 10 months ago

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

sakulali commented 9 months ago

One more https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/6248696573/job/16963864678?pr=27021

crobert-1 commented 9 months ago

+1 freq: https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/6264610571/job/17011764070?pr=27065

atoulme commented 9 months ago

One more: https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/6347302582/job/17242118534?pr=27267

crobert-1 commented 9 months ago

@atoulme I believe that one is frequency of #23267, I've posted there instead.

crobert-1 commented 8 months ago

+1 freq: https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/6500566168/job/17656202722?pr=27408

atoulme commented 8 months ago

One more https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/6549771747/job/17787500939?pr=27806

crobert-1 commented 8 months ago

+1 freq: https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/6544286544/job/17770494982?pr=27665

cparkins commented 8 months ago

Me too! https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/6646092497/job/18058882722?pr=28626#step:5:287

sakulali commented 8 months ago

One more: https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/6728025523/job/18286718460?pr=28858

sakulali commented 7 months ago

one more: https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/6856065934/job/18642482791?pr=29153

sakulali commented 7 months ago

one more: https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/6854421996/job/18637405832

sakulali commented 7 months ago

I have noticed that this error keeps occurring frequently. It seems that the PR from kafkametrics has not addressed this issue, and we need to search for the cause again.

TylerHelmuth commented 7 months ago

I agree. I'd also like to disable it in the meantime.

github-actions[bot] commented 5 months ago

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

github-actions[bot] commented 3 months ago

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

github-actions[bot] commented 1 month ago

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.