Repository navigation
ref: Lint tests for awaits in loops and fix #2773 review - #2793
Merged
Merged
Conversation
Table loops whose cases share no state run with `Promise.all`: rejected or read-only requests, completions, file reads and writes in separate paths, cleanup unlinks, and per-case servers. Each case keeps its own assertions. Loops over shared state stay sequential with a reason: stores and buffers that keep insertion order, fake timers and clocks, mocks swapped per case, cursors, streams, polling, CLI runs that share a config directory, and MCP servers that take one connection at a time. Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
Drop the override that turned `no-await-in-loop` off for test files, so the rule covers the whole repo. Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
…oncurrently `event send` sends files up to ORG_FANOUT_CONCURRENCY at a time and prints results in file order. `project create` creates the first project alone, since it may create the team the rest reuse, then creates the rest concurrently and starts no new create after a failure. Code-mapping batches upload concurrently and merge in batch order.
Alert rule details look up detectors up to five at a time and keep source order. The platform-setup and OTel namespace generators fetch in parallel, then process the results in their original order.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
…in-loop Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
The sourcemap inject and resolve tests that came in with main wrote their independent fixture files in a loop, which the test lint now flags. Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
BYK
approved these changes
Dec 2, 2026
BYK
enabled auto-merge
December 2, 2026 13:55
The cases are independent: each one plans, then judges its own plan. Nothing backed the rate-limit reason for running them one at a time.
14 of 16 tasks
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Turns
no-await-in-loopon for test files and fans out the awaits that review of #2773 flagged as needlessly sequential.Tests. The override that switched the rule off for test files is gone. Independent iterations in tests now run with
Promise.all. Loops whose iterations share mocks, fixtures, temp dirs, env vars or fake timers stay sequential, each with a disable comment that gives the reason.CLI.
sentry event sendsends files up toORG_FANOUT_CONCURRENCYat a time and prints results in file order. If a send fails, the command throws the first failure in file order, but sends that already started or were queued still go out.sentry project createcreates the first project alone, since in an org with no teams it creates the team the rest reuse. It then creates the rest withmapBoundedatORG_FANOUT_CONCURRENCYand starts no new create after a failure. Creates already in flight when a failure happens (up to one window) can still finish. They appear in the partial output, which is still emitted before the error.uploadCodeMappingsuploads its 300-mapping batches withmapBoundedatORG_FANOUT_CONCURRENCYand merges the responses in batch order.MCP core.
p-limit, now a dependency of@sentry/mcp-core, and keep source order and the per-detector unavailable status.generate-platform-setupresolves docs redirects for every platform in parallel, then builds its output in platform order.generate-otel-namespacesfetches the non-custom namespace registries in parallel, then processes them in namespace order.via @BYK.
--
View Session [Sentry]