Skip to content

[flaky test] TestNewEndpointClient on internal/aws/xray #38903

Open
@pjanotti

Description

@pjanotti

Component(s)

internal/aws

Describe the issue you're reporting

https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/14038112541/job/39301144731?pr=38886

https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/14038311867/job/39301830570

=== Failed
=== FAIL: k8sclient TestNewEndpointClient (1.96s)
    testing.go:1232: TempDir RemoveAll cleanup: remove C:\Users\RUNNER~1\AppData\Local\Temp\TestNewEndpointClient2794352608\001\kubeconfig1568137733: The process cannot access the file because it is being used by another process.

=== FAIL: k8sclient TestNewEndpointClient (re-run 1) (1.80s)
    testing.go:1232: TempDir RemoveAll cleanup: remove C:\Users\RUNNER~1\AppData\Local\Temp\TestNewEndpointClient1042394718\001\kubeconfig2292752825: The process cannot access the file because it is being used by another process.

Typically the test is not closing some file handle deterministically and when the test suit tries to cleanup the folder we get this type of error on Windows

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