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

[chore][cmd/configschema/docsgen/docsgen] Enable goleak #30494

Merged
merged 6 commits into from
Mar 8, 2024

Conversation

crobert-1
Copy link
Member

@crobert-1 crobert-1 commented Jan 12, 2024

Description:

Enables goleak on the docsgen package to catch potential leaking goroutines.

Link to tracking Issue:
#30438

Testing:
Test is passing other than referenced failure.

@crobert-1 crobert-1 requested a review from a team January 12, 2024 22:45
@github-actions github-actions bot added the cmd/configschema configschema command label Jan 12, 2024
@crobert-1 crobert-1 changed the title [cmd/configschema/docsgen/docsgen] Enable goleak [chore][cmd/configschema/docsgen/docsgen] Enable goleak Jan 12, 2024
@mx-psi mx-psi added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Jan 15, 2024
Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Jan 30, 2024
Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Feb 15, 2024
@crobert-1 crobert-1 removed the Stale label Feb 26, 2024
@mx-psi
Copy link
Member

mx-psi commented Feb 29, 2024

Looks like we need make genotelcontribcol

@github-actions github-actions bot added the cmd/otelcontribcol otelcontribcol command label Feb 29, 2024
@mx-psi
Copy link
Member

mx-psi commented Mar 1, 2024

=== FAIL: docsgen/docsgen  (0.00s)
PASS
goleak: Errors on successful test run: found unexpected goroutines:
[Goroutine 3 in state chan receive, with k8s.io/klog.(*loggingT).flushDaemon on top of the stack:
k8s.io/klog.(*loggingT).flushDaemon(0x14a5[34](https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/8109823297/job/22165899065?pr=30494#step:8:35)c0)
	/home/runner/go/pkg/mod/k8s.io/klog@v1.0.0/klog.go:1010 +0x8b
created by k8s.io/klog.init.0 in goroutine 1
	/home/runner/go/pkg/mod/k8s.io/klog@v1.0.0/klog.go:411 +0x19b
]
FAIL	github.com/open-telemetry/opentelemetry-collector-contrib/cmd/configschema/docsgen/docsgen	3.910s
testing: warning: no tests to run
PASS
goleak: Errors on successful test run: found unexpected goroutines:
[Goroutine 5 in state chan receive, with k8s.io/klog.(*loggingT).flushDaemon on top of the stack:
k8s.io/klog.(*loggingT).flushDaemon(0x14a534c0)
	/home/runner/go/pkg/mod/k8s.io/klog@v1.0.0/klog.go:1010 +0x8b
created by k8s.io/klog.init.0 in goroutine 1
	/home/runner/go/pkg/mod/k8s.io/klog@v1.0.0/klog.go:411 +0x19b
]
FAIL	github.com/open-telemetry/opentelemetry-collector-contrib/cmd/configschema/docsgen/docsgen	0.664s

DONE 2 runs, 27 tests, 1 skipped, 1 failure in 286.3[47](https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/8109823297/job/22165899065?pr=30494#step:8:48)s
make[2]: *** [../../Makefile.Common:126: test] Error 1
make[1]: *** [Makefile:165: cmd/configschema] Error 2
make: *** [Makefile:113: gotest] Error 2
make[1]: Leaving directory '/home/runner/work/opentelemetry-collector-contrib/opentelemetry-collector-contrib'

@crobert-1
Copy link
Member Author

@mx-psi Apologies, this PR is dependent on another being merged first, it's a bit buried in the description:

#30492 needs to be merged before this, as the last failing test of this PR (k8s.io/klog) will be fixed by that PR.

@mx-psi
Copy link
Member

mx-psi commented Mar 1, 2024

Oh, sorry I missed that. Would you mind marking this PR as draft then?

@crobert-1 crobert-1 marked this pull request as draft March 1, 2024 17:08
@crobert-1 crobert-1 marked this pull request as ready for review March 7, 2024 19:32
@crobert-1
Copy link
Member Author

@mx-psi: This PR should be ready now that it's passing on main. 👍

@mx-psi mx-psi merged commit 38714e5 into open-telemetry:main Mar 8, 2024
144 checks passed
@github-actions github-actions bot added this to the next release milestone Mar 8, 2024
DougManton pushed a commit to DougManton/opentelemetry-collector-contrib that referenced this pull request Mar 13, 2024
…ry#30494)

**Description:** <Describe what has changed.>
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
Enables `goleak` on the `docsgen` package to catch potential leaking
goroutines.

**Link to tracking Issue:** <Issue number if applicable>
open-telemetry#30438

**Testing:** <Describe what testing was performed and which tests were
added.>
Test is passing other than referenced failure.

---------

Co-authored-by: Pablo Baeyens <pbaeyens31+github@gmail.com>
XinRanZhAWS pushed a commit to XinRanZhAWS/opentelemetry-collector-contrib that referenced this pull request Mar 13, 2024
…ry#30494)

**Description:** <Describe what has changed.>
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
Enables `goleak` on the `docsgen` package to catch potential leaking
goroutines.

**Link to tracking Issue:** <Issue number if applicable>
open-telemetry#30438

**Testing:** <Describe what testing was performed and which tests were
added.>
Test is passing other than referenced failure.

---------

Co-authored-by: Pablo Baeyens <pbaeyens31+github@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmd/configschema configschema command cmd/otelcontribcol otelcontribcol command Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants