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 90.78947% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 74.32%. Comparing base (6046505) to head (fc069af).

Files with missing lines Patch % Lines
internal/dispatch/combined/combined.go 91.43% 2 Missing and 1 partial ⚠️
internal/testserver/datastore/postgres.go 0.00% 3 Missing ⚠️
internal/datastore/crdb/crdb.go 83.34% 1 Missing ⚠️

❌ Your project check has failed because the head coverage (74.32%) is below the target coverage (75.00%). You can increase the head coverage or adjust the target coverage.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2757      +/-   ##
==========================================
- Coverage   74.33%   74.32%   -0.00%     
==========================================
  Files         484      484              
  Lines       57307    57336      +29     
==========================================
+ Hits        42591    42612      +21     
- Misses      11731    11734       +3     
- Partials     2985     2990       +5     

☔ 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 3 times, most recently 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

tstirrat15
tstirrat15 previously approved these changes Jan 5, 2026
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.

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.

LGTM

@miparnisari miparnisari added this pull request to the merge queue Jan 23, 2026
Merged via the queue into main with commit e20df7c Jan 23, 2026
44 of 45 checks passed
@miparnisari miparnisari deleted the goroutine-leaks-fixes branch January 23, 2026 19:13
@github-actions github-actions bot locked and limited conversation to collaborators Jan 23, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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