Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[flaky test][receiver/opencensus] TestExportSpanLinkingMaintainsParentLink panic: index out of range #37632

Open
pjanotti opened this issue Feb 1, 2025 · 1 comment
Labels

Comments

@pjanotti
Copy link
Contributor

pjanotti commented Feb 1, 2025

Component(s)

receiver/opencensus

Describe the issue you're reporting

Looks like a race in the test, I couldn't repro it locally so likely it is low frequency. Detected at https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/13051122084/job/36411445776#step:8:360

It was preceeded by another, potentially related, test failure, see #37633

=== FAIL: internal/octrace TestExportSpanLinkingMaintainsParentLink (0.24s)
    observability_test.go:112: 
        	Error Trace:	D:/a/opentelemetry-collector-contrib/opentelemetry-collector-contrib/receiver/opencensusreceiver/internal/octrace/observability_test.go:112
        	Error:      	"[0xc00031a1a0 0xc0001aa820 0xc0001aa9c0 0xc0001aad00 0xc0001aaea0 0xc0001ab040 0xc0001ab1e0]" should have 6 item(s), but has 7
        	Test:       	TestExportSpanLinkingMaintainsParentLink
    observability_test.go:115: 
        	Error Trace:	D:/a/opentelemetry-collector-contrib/opentelemetry-collector-contrib/receiver/opencensusreceiver/internal/octrace/observability_test.go:115
        	Error:      	"[]" should have 1 item(s), but has 0
        	Test:       	TestExportSpanLinkingMaintainsParentLink
panic: runtime error: index out of range [0] with length 0 [recovered]
	panic: runtime error: index out of range [0] with length 0

goroutine 53 [running]:
testing.tRunner.func1.2({0x140e82e40, 0xc000324030})
	C:/hostedtoolcache/windows/go/1.22.11/x64/src/testing/testing.go:1631 +0x3f7
testing.tRunner.func1()
	C:/hostedtoolcache/windows/go/1.22.11/x64/src/testing/testing.go:1634 +0x6b6
panic({0x140e82e40?, 0xc000324030?})
	C:/hostedtoolcache/windows/go/1.22.11/x64/src/runtime/panic.go:770 +0x132
github.com/open-telemetry/opentelemetry-collector-contrib/receiver/opencensusreceiver/internal/octrace.TestExportSpanLinkingMaintainsParentLink(0xc000124680)
	D:/a/opentelemetry-collector-contrib/opentelemetry-collector-contrib/receiver/opencensusreceiver/internal/octrace/observability_test.go:123 +0x140c
testing.tRunner(0xc000124680, 0x140f3f470)
	C:/hostedtoolcache/windows/go/1.22.11/x64/src/testing/testing.go:1689 +0x21f
created by testing.(*T).Run in goroutine 1
	C:/hostedtoolcache/windows/go/1.22.11/x64/src/testing/testing.go:1742 +0x826

@pjanotti pjanotti added the needs triage New item requiring triage label Feb 1, 2025
Copy link
Contributor

github-actions bot commented Feb 1, 2025

Pinging code owners:

  • receiver/opencensus: @open-telemetry/collector-approvers

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

@pjanotti pjanotti added flaky test a test is flaky and removed needs triage New item requiring triage labels Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant