Skip to content

ref(lint): Use p-limit in the check runner - #3977

Merged
BYK merged 1 commit into
mainfrom
chore/check-plimit
Nov 21, 2026
Merged

BYK merged 1 commit into
mainfrom
chore/check-plimit

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #3973. The check runner and readRepoFiles capped concurrency with a hand-written mapBounded helper. The workspace packages already use p-limit for this, so the root scripts now use it too and the helper goes away.

  • Add p-limit ^7.3.3 as a root devDependency. The root scripts/ resolve packages from the root, so a workspace package's dependency does not reach them.
  • scripts/check.mjs and scripts/lib/repo-files.mjs call pLimit(n).map(...), which keeps the input order like mapBounded did. The caps stay the same: the CPU count for check workers, and 64 file reads at a time.
  • Delete scripts/lib/map-bounded.mjs.

via @BYK.

--

View Session [Sentry]

@sentry-junior
sentry-junior Bot requested a review from BYK November 21, 2026 22:39
@vercel

vercel Bot commented Nov 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
junior-docs Ready Ready Preview Nov 21, 2026 10:39pm UTC

Request Review

Comment thread package.json Resolved
@BYK
BYK enabled auto-merge (squash) November 21, 2026 22:41
@BYK
BYK merged commit df1c3bb into main Nov 21, 2026
58 of 59 checks passed
@BYK
BYK deleted the chore/check-plimit branch November 21, 2026 22:48
BYK added a commit that referenced this pull request Nov 21, 2026
Follow-up to #3977. `p-limit` is now a dependency of the
root and four workspace packages, and they had drifted to two ranges
(`^7.3.1` and `^7.3.3`). One catalog entry keeps them on one version.

- Add `p-limit: ^7.3.3` under `catalog:` in `pnpm-workspace.yaml`.
- Switch `p-limit` to `"catalog:"` in the root `package.json` and in
junior, junior-dashboard, junior-github and junior-google.
- `pnpm-lock.yaml`: every importer now resolves `p-limit` 7.3.3, and the
lockfile drops the 7.3.1 entry.

The published junior and junior-github packages now require `p-limit`
`^7.3.3` instead of `^7.3.1`.

<!-- junior-request-attribution:start -->
via @BYK.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:agent%3Acdada5c589dc375265165b968649b09b -->

--

[View
Session](https://junior-prod.sentry.dev/conversations/agent%3Acdada5c589dc375265165b968649b09b)
[[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3Acdada5c589dc375265165b968649b09b/?project=4510944073809921)

<!-- junior-session-footer:end -->

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: BYK <[email protected]>

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 117fb711 Deployed Nov 21, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant