Open jade-guiton-dd opened 2 days ago
receiver/hostmetrics
When running the tests for receiver/hostmetricsreceiver locally, I consistently get a failure in receiver/hostmetricsreceiver/internal/scraper/processscraper/process_scraper_test.go on lines 179 and 180:
receiver/hostmetricsreceiver
receiver/hostmetricsreceiver/internal/scraper/processscraper/process_scraper_test.go
internal.AssertContainsAttribute(t, attr, conventions.AttributeProcessCommand) internal.AssertContainsAttribute(t, attr, conventions.AttributeProcessCommandLine)
I suspect this may be an OS-dependent issue.
Run go test in receiver/hostmetricsreceiver.
go test
Tests pass.
Tests fail.
Latest main (75ceb559)
OS: macOS Sonoma 14.7.1 (on M3 hardware) Compiler: go 1.22.9
The following output is repeated many times:
Error: Should be true Test: TestScrape/Enable_memory_utilization testutils.go:17: Error Trace: [...]/opentelemetry-collector-contrib/receiver/hostmetricsreceiver/internal/testutils.go:17 [...]/opentelemetry-collector-contrib/receiver/hostmetricsreceiver/internal/scraper/processscraper/process_scraper_test.go:179 [...]/opentelemetry-collector-contrib/receiver/hostmetricsreceiver/internal/scraper/processscraper/process_scraper_test.go:128 Error: Should be true Test: TestScrape/Enable_memory_utilization testutils.go:17: Error Trace: [...]/opentelemetry-collector-contrib/receiver/hostmetricsreceiver/internal/testutils.go:17 [...]/opentelemetry-collector-contrib/receiver/hostmetricsreceiver/internal/scraper/processscraper/process_scraper_test.go:180 [...]/opentelemetry-collector-contrib/receiver/hostmetricsreceiver/internal/scraper/processscraper/process_scraper_test.go:128 Error: Should be true Test: TestScrape/Enable_memory_utilization === FAIL: internal/scraper/processscraper TestScrape (re-run 1) (0.25s)
Pinging code owners:
receiver/hostmetrics: @dmitryax @braydonk
See Adding Labels via Comments if you do not have permissions to add labels yourself.
Component(s)
receiver/hostmetrics
What happened?
Description
When running the tests for
receiver/hostmetricsreceiver
locally, I consistently get a failure inreceiver/hostmetricsreceiver/internal/scraper/processscraper/process_scraper_test.go
on lines 179 and 180:I suspect this may be an OS-dependent issue.
Steps to Reproduce
Run
go test
inreceiver/hostmetricsreceiver
.Expected Result
Tests pass.
Actual Result
Tests fail.
Collector version
Latest main (75ceb559)
Environment information
Environment
OS: macOS Sonoma 14.7.1 (on M3 hardware) Compiler: go 1.22.9
Log output
The following output is repeated many times: