Skip to content

[deep-report] Add goleak to goroutine-heavy test packages to catch leaks in CI #47814

Description

@github-actions

Description

The Repository Quality report #47797 inventories 7 production goroutines (2 with no join point) yet finds zero goleak usage in tests. With multiple goroutine-lifecycle fixes now in flight (#47603, #47604, #47609, plus the new docker_images fix), there is no regression guard. Add go.uber.org/goleak verification (e.g. goleak.VerifyTestMain) to the packages that launch goroutines — pkg/cli and pkg/console first.

Expected Impact

Provides an automated safety net so future goroutine-leak regressions fail CI instead of shipping. Complements — does not duplicate — the individual fix issues, which patch specific sites; this locks the fixes in place.

Suggested Agent

Test Quality Sentinel or a Go test-infra agent.

Estimated Effort

Medium (1-4 hours)

Data Source

DeepReport Intelligence analysis 2026-07-24; Repository Quality report #47797 (goleak usage = 0). Verified no existing open issue mentions goleak.

Generated by 🔬 Deep Report · age00 · 232.9 AIC · ⌖ 17.8 AIC · ⊞ 10.3K ·

  • expires on Jul 26, 2026, 7:23 AM UTC-08:00

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions