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][config/configgrpc] Enable goleak check #9217

Merged
merged 4 commits into from
Feb 3, 2024

Conversation

crobert-1
Copy link
Member

Description:

Enables goleak to run on the configgrpc package. Requires ignoring the opencensus-go leak.

A few tests required an additional client connection close command to exit the client go routine. Additional information can be found here in the explanation for the method grpc.DialContext, specifically this comment:

Users should call ClientConn.Close to terminate all the pending operations after this function returns.

configgrpc's method ToClientConn is directly calling the grpc.DialContext method referenced.

Link to tracking Issue:
#9165

Testing:
Added goleak check is passing

Copy link

codecov bot commented Jan 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (72f6ce1) 90.34% compared to head (cd67e1d) 90.34%.
Report is 64 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #9217   +/-   ##
=======================================
  Coverage   90.34%   90.34%           
=======================================
  Files         340      340           
  Lines       17989    17989           
=======================================
  Hits        16253    16253           
  Misses       1412     1412           
  Partials      324      324           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

config/configgrpc/configgrpc_test.go Outdated Show resolved Hide resolved
config/configgrpc/configgrpc_test.go Outdated Show resolved Hide resolved
config/configgrpc/configgrpc_test.go Outdated Show resolved Hide resolved
Enables goleak to run on the configgrpc package. Requires
ignoring the opencensus-go leak.
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 19, 2024
@github-actions github-actions bot removed the Stale label Jan 20, 2024
Copy link
Contributor

github-actions bot commented Feb 3, 2024

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 3, 2024
@bogdandrutu bogdandrutu merged commit c746d8b into open-telemetry:main Feb 3, 2024
32 checks passed
@github-actions github-actions bot added this to the next release milestone Feb 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants