Skip to content

Conversation

@miparnisari
Copy link
Contributor

@miparnisari miparnisari commented Dec 9, 2025

For reviewers: please see changes in

  • pkg/testutil/leakdetection.go
  • internal/dispatch/combined/combined.go

@github-actions github-actions bot added area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools) area/dispatch Affects dispatching of requests labels Dec 9, 2025
@codecov
Copy link

codecov bot commented Dec 9, 2025

Codecov Report

❌ Patch coverage is 88.88889% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.68%. Comparing base (eebf2ea) to head (f3fe0c1).

Files with missing lines Patch % Lines
internal/dispatch/combined/combined.go 89.66% 2 Missing and 1 partial ⚠️
internal/testserver/datastore/postgres.go 0.00% 3 Missing ⚠️
internal/datastore/crdb/crdb.go 80.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2757      +/-   ##
==========================================
- Coverage   77.71%   77.68%   -0.03%     
==========================================
  Files         472      472              
  Lines       49709    49738      +29     
==========================================
+ Hits        38625    38632       +7     
- Misses       8232     8246      +14     
- Partials     2852     2860       +8     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@miparnisari miparnisari force-pushed the goroutine-leaks-fixes branch from d86c005 to b326cfb Compare December 10, 2025 02:10
@github-actions github-actions bot added area/cli Affects the command line area/api v1 Affects the v1 API area/datastore Affects the storage system labels Dec 10, 2025
@miparnisari miparnisari force-pushed the goroutine-leaks-fixes branch from b326cfb to efba795 Compare December 10, 2025 03:19
@miparnisari miparnisari force-pushed the goroutine-leaks-fixes branch 6 times, most recently from 701ad8a to e63c319 Compare December 22, 2025 23:52
@miparnisari miparnisari marked this pull request as ready for review December 23, 2025 00:04
@miparnisari miparnisari requested a review from a team as a code owner December 23, 2025 00:04
@miparnisari miparnisari force-pushed the goroutine-leaks-fixes branch 2 times, most recently from ad6867a to 1a145a0 Compare December 23, 2025 00:16
@miparnisari miparnisari force-pushed the goroutine-leaks-fixes branch from 1a145a0 to f3fe0c1 Compare December 23, 2025 17:15
var redispatch dispatch.Dispatcher

cts := caveattypes.TypeSetOrDefault(opts.caveatTypeSet)
if opts.upstreamAddr == "" {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI major change on the setup. Notice how before, redispatch's content was getting overwritten on line 307

Copy link
Contributor

@tstirrat15 tstirrat15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

}

// Start is async so that prepopulating doesn't block the server start.
// The caller must cancel the context before calling Close.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oof. This seems like a footgun.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/api v1 Affects the v1 API area/cli Affects the command line area/datastore Affects the storage system area/dispatch Affects dispatching of requests area/tooling Affects the dev or user toolchain (e.g. tests, ci, build tools)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants