Skip to content

Conversation

@majiayu000
Copy link

Fixes #2342

Changes

  • Enable paralleltest linter by removing it from the disabled list in .golangci.yml
  • Add t.Parallel() calls to test functions and subtests across 194 test files
  • Fix test isolation by ensuring proper parallel test execution patterns

Enable the paralleltest linter rule in .golangci.yml and add t.Parallel()
calls to all test functions and subtests to support parallel test execution.

This change:
- Removes paralleltest from the disabled linters list in .golangci.yml
- Adds t.Parallel() to 180+ test files across the codebase
- Removes unused //nolint:paralleltest directives
- Fixes benchmark functions that incorrectly had b.Parallel() added

Signed-off-by: majiayu000 <1835304752@qq.com>
Fix malformed t.Parallel() calls that were split across multiple lines,
causing gci linter errors.

Signed-off-by: majiayu000 <1835304752@qq.com>
@majiayu000 majiayu000 requested review from a team, JiriCtvrtka and idoqo as code owners January 2, 2026 03:17
@majiayu000 majiayu000 requested review from ademidoff and maxkondr and removed request for a team January 2, 2026 03:17
@codecov
Copy link

codecov bot commented Jan 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 45.93%. Comparing base (4e3b1ff) to head (3ee687b).

Additional details and impacted files
@@           Coverage Diff           @@
##               v3    #4883   +/-   ##
=======================================
  Coverage   45.93%   45.93%           
=======================================
  Files         364      364           
  Lines       37880    37880           
=======================================
  Hits        17399    17399           
  Misses      18805    18805           
  Partials     1676     1676           
Flag Coverage Δ
admin 17.82% <ø> (ø)
vmproxy 72.09% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enable paralleltest linter rule

1 participant