Skip to content

Enable eslint concurrency#36878

Merged
silverwind merged 4 commits into
go-gitea:mainfrom
silverwind:eslint-concurrency
Mar 10, 2026
Merged

Enable eslint concurrency#36878
silverwind merged 4 commits into
go-gitea:mainfrom
silverwind:eslint-concurrency

Conversation

@silverwind
Copy link
Copy Markdown
Member

@silverwind silverwind commented Mar 10, 2026

Add --concurrency 2 to all ESLint invocations in the Makefile. ESLint v9 supports multi-threaded linting via worker threads. Benchmark results on a 16-core machine with ~211 lintable files:

Concurrency Wall time CPU time
off (default) 8.4s 11.1s
2 6.9s 19.1s
3 6.9s 25.8s
4 6.9s 31.5s
5 7.2s 36.9s
auto 7.3s 38.3s
8 9.3s 61.4s
16 21.1s 142.7s

This PR was authored by Claude.

Add `--concurrency 2` to all ESLint invocations in the Makefile.
ESLint v9 supports multi-threaded linting, and benchmarking shows
`--concurrency 2` provides the best wall-time improvement with
reasonable CPU overhead.

Co-Authored-By: Claude (Opus 4.6) <noreply@anthropic.com>
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Mar 10, 2026
@silverwind silverwind requested a review from Copilot March 10, 2026 07:56
@silverwind silverwind changed the title Enable ESLint concurrency for faster linting Enable eslint concurrency Mar 10, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds --concurrency 2 to all four ESLint invocations in the Makefile to enable multi-threaded linting via ESLint's worker threads support. Based on the benchmark data provided, concurrency of 2 provides optimal wall-time improvement (~18% faster) while keeping CPU overhead reasonable.

Changes:

  • Added --concurrency 2 flag to all ESLint commands in the Makefile (lint-js, lint-js-fix, lint-json, lint-json-fix)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread Makefile Outdated
silverwind and others added 2 commits March 10, 2026 09:12
Co-Authored-By: Claude (Opus 4.6) <noreply@anthropic.com>
Co-Authored-By: Claude (Opus 4.6) <noreply@anthropic.com>
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Mar 10, 2026
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Mar 10, 2026
@silverwind silverwind added the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Mar 10, 2026
@silverwind silverwind enabled auto-merge (squash) March 10, 2026 16:35
@silverwind silverwind merged commit 6e8f78a into go-gitea:main Mar 10, 2026
26 checks passed
@silverwind silverwind deleted the eslint-concurrency branch March 10, 2026 17:05
@GiteaBot GiteaBot added this to the 1.26.0 milestone Mar 10, 2026
@GiteaBot GiteaBot removed the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Mar 10, 2026
zjjhot added a commit to zjjhot/gitea that referenced this pull request Mar 13, 2026
* giteaofficial/main:
  Bound PageSize in `ListUnadoptedRepositories` (go-gitea#36884)
  Fix timeline event layout overflow with long content (go-gitea#36595)
  [skip ci] Updated translations via Crowdin
  Replace index with id in actions routes (go-gitea#36842)
  Enable eslint concurrency (go-gitea#36878)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants