Open crobert-1 opened 2 months ago
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself.
Another process scrape integration test failure. It's a different test but looks like the same general failure output, so I think it makes sense to keep both failures in the same issue for now.
Test_ProcessScrapeWithCustomRootPath
Test_ProcessScrapeWithBadRootPathAndEnvVar
It seems like here's the problem https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/b82cd7f9e3673d3850ddc5b44d4ca7968891d97c/receiver/hostmetricsreceiver/hostmetrics_receiver_test.go#L253.
Tests run with scraperFactories
- https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/b82cd7f9e3673d3850ddc5b44d4ca7968891d97c/receiver/hostmetricsreceiver/factory.go#L33 - content prints:
=== RUN TestGatherMetrics_CreateMetricsScraperError
map[mock:*mock.Mock<0xc00131d090>]
--- PASS: TestGatherMetrics_CreateMetricsScraperError (0.00s)
=== RUN Test_ProcessScrape
map[mock:*mock.Mock<0xc00131d090>]
scraperint.go:78:
Error Trace: /home/js/opentelemetry-collector-contrib/internal/coreinternal/scraperinttest/scraperint.go:78
/home/js/opentelemetry-collector-contrib/receiver/hostmetricsreceiver/integration_test.go:55
Error: Received unexpected error:
host metrics scraper factory not found for key: "process"
Test: Test_ProcessScrape
Messages: failed creating metrics receiver
Maybe "copying" scraperFactories
at the beginning of the test and assigning it back with defer will work - example https://github.com/open-telemetry/opentelemetry-collector-contrib/pull/32583
My apologies, but this is still failing after rebasing on top of the fix.
It looks like the tests addressed in the relevant PR are different tests than what are failing. The PR changed TestGatherMetrics_ScraperKeyConfigError
and TestGatherMetrics_CreateMetricsScraperError
, but the failing tests are Test_ProcessScrape
, Test_ProcessScrapeWithCustomRootPath
, and Test_ProcessScrapeWithBadRootPathAndEnvVar
.
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.
Component(s)
receiver/hostmetrics
Describe the issue you're reporting
Failing CI/CD link
Note that this test hasn't been running for some time, as explained in https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/32207, so this failure may not be the result of a recent change.
Failure output: