Skip to content

fix: Enable paralleltest linter rule - #4883

Closed
majiayu000 wants to merge 2 commits into
percona:mainfrom
majiayu000:fix-2342-enable-paralleltest-linter-rul-0102-1059
Closed

majiayu000 wants to merge 2 commits into
percona:mainfrom
majiayu000:fix-2342-enable-paralleltest-linter-rul-0102-1059

Conversation

@majiayu000

Copy link
Copy Markdown
Contributor

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

codecov Bot commented Jan 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 45.93%. Comparing base (4e3b1ff) to head (3ee687b).
⚠️ Report is 873 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #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 Harness.
📢 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.

@CLAassistant

CLAassistant commented Feb 5, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@ademidoff
ademidoff marked this pull request as draft August 3, 2026 07:00
@majiayu000

Copy link
Copy Markdown
Contributor Author

Closing this draft: #2342 was closed by #5299, which reworked the tests to run in parallel, and this branch now conflicts across ~194 files with failing CI. Happy to revisit enabling the paralleltest linter in a fresh PR if maintainers still want it. Thanks @maxkondr for the earlier review.

@majiayu000 majiayu000 closed this Nov 24, 2026
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

3 participants