Skip to content

[processor/resourcedetectionprocessor]: Report for failed tests on main #47914

@github-actions

Description

@github-actions

Auto-generated report for __run job build.

Link to failed build: https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/24901163311
Commit: 3a638ed
PR: #47749

Component(s)

processor/resourcedetection

Test Failures

  • TestProcessor_RefreshInterval_UpdatesResource
=== RUN   TestProcessor_RefreshInterval_UpdatesResource
==================
WARNING: DATA RACE
Read at 0x00c0001973c8 by goroutine 137:
  github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourcedetectionprocessor.TestProcessor_RefreshInterval_UpdatesResource()
      D:/a/opentelemetry-collector-contrib/opentelemetry-collector-contrib/processor/resourcedetectionprocessor/resourcedetection_processor_test.go:372 +0x1064
  testing.tRunner()
      C:/hostedtoolcache/windows/go/1.25.9/x64/src/testing/testing.go:1934 +0x1c3
  testing.(*T).Run.gowrap1()
      C:/hostedtoolcache/windows/go/1.25.9/x64/src/testing/testing.go:1997 +0x44

Previous write at 0x00c0001973c8 by goroutine 146:
  github.com/stretchr/testify/mock.(*Mock).MethodCalled()
      C:/Users/runneradmin/go/pkg/mod/github.com/stretchr/testify@v1.11.1/mock/mock.go:558 +0x1224
  github.com/stretchr/testify/mock.(*Mock).Called()
      C:/Users/runneradmin/go/pkg/mod/github.com/stretchr/testify@v1.11.1/mock/mock.go:491 +0x191
  github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourcedetectionprocessor.(*mockDetector).Detect()
      D:/a/opentelemetry-collector-contrib/opentelemetry-collector-contrib/processor/resourcedetectionprocessor/resourcedetection_processor_test.go:40 +0x44
  github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourcedetectionprocessor/internal.(*ResourceProvider).detectResource.func1()
      D:/a/opentelemetry-collector-contrib/opentelemetry-collector-contrib/processor/resourcedetectionprocessor/internal/resourcedetection.go:170 +0xdc
  github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourcedetectionprocessor/internal.(*ResourceProvider).detectResource.gowrap1()
      D:/a/opentelemetry-collector-contrib/opentelemetry-collector-contrib/processor/resourcedetectionprocessor/internal/resourcedetection.go:195 +0x61

Goroutine 137 (running) created at:
  testing.(*T).Run()
      C:/hostedtoolcache/windows/go/1.25.9/x64/src/testing/testing.go:1997 +0x9dc
  testing.runTests.func1()
      C:/hostedtoolcache/windows/go/1.25.9/x64/src/testing/testing.go:2477 +0x85
  testing.tRunner()
      C:/hostedtoolcache/windows/go/1.25.9/x64/src/testing/testing.go:1934 +0x1c3
  testing.runTests()
      C:/hostedtoolcache/windows/go/1.25.9/x64/src/testing/testing.go:2475 +0x96c
  testing.(*M).Run()
      C:/hostedtoolcache/windows/go/1.25.9/x64/src/testing/testing.go:2337 +0xed4
  go.uber.org/goleak.VerifyTestMain()
      C:/Users/runneradmin/go/pkg/mod/go.uber.org/goleak@v1.3.0/testmain.go:53 +0x64
  github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourcedetectionprocessor.TestMain()
      D:/a/opentelemetry-collector-contrib/opentelemetry-collector-contrib/processor/resourcedetectionprocessor/generated_package_test.go:12 +0x5e4
  main.main()
      _testmain.go:117 +0x171

Goroutine 146 (finished) created at:
  github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourcedetectionprocessor/internal.(*ResourceProvider).detectResource()
      D:/a/opentelemetry-collector-contrib/opentelemetry-collector-contrib/processor/resourcedetectionprocessor/internal/resourcedetection.go:161 +0x124
  github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourcedetectionprocessor/internal.(*ResourceProvider).Refresh()
      D:/a/opentelemetry-collector-contrib/opentelemetry-collector-contrib/processor/resourcedetectionprocessor/internal/resourcedetection.go:123 +0xbe
  github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourcedetectionprocessor/internal.(*ResourceProvider).refreshLoop()
      D:/a/opentelemetry-collector-contrib/opentelemetry-collector-contrib/processor/resourcedetectionprocessor/internal/resourcedetection.go:312 +0x239
  github.com/open-telemetry/opentelemetry-collector-contrib/processor/resourcedetectionprocessor.(*resourceDetectionProcessor).Start.(*ResourceProvider).StartRefreshing.func1.gowrap1()
      D:/a/opentelemetry-collector-contrib/opentelemetry-collector-contrib/processor/resourcedetectionprocessor/internal/resourcedetection.go:286 +0x5d
==================
    testing.go:1617: race detected during execution of test
--- FAIL: TestProcessor_RefreshInterval_UpdatesResource (0.12s)

Note: Information about any subsequent build failures that happen while
this issue is open, will be added as comments with more information to this issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions