Skip to content

Don't let parallel per-file workers reuse their request's checker - #64513

Open
Mateusz Burzyński (Andarist) wants to merge 2 commits into
microsoft:mainfrom
Andarist:fix-64458-parallel-workers-share-checker
Open

Mateusz Burzyński (Andarist) wants to merge 2 commits into
microsoft:mainfrom
Andarist:fix-64458-parallel-workers-share-checker

Conversation

@Andarist

Copy link
Copy Markdown
Contributor

fixes a bunch of crashes reported in this issue, including this one: #64458 (comment)

This PR fixes a wrong context reuse (with request id) within a parallel work created within a request handler (mainly when triggering flaky diagnostic detection).

By keeping the request id on the context paralell workers were all able to work concurrently using the same checker and the checker's state isn't concurrent-safe. By stripping the request id from the context passed down to workers, we can avoid this hazard - each worker awaits the checker to become free.

Copilot AI balanced review requested due to automatic review settings September 28, 2026 19:21
@typescript-automation typescript-automation Bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Sep 28, 2026
@typescript-automation

Copy link
Copy Markdown
Contributor

This PR doesn't have any linked issues. Please open an issue that references this PR. From there we can discuss and prioritise.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Note

This error may be related to your runner configuration. You can now configure runners for Copilot code review separately from Copilot cloud agent by creating a copilot-code-review.yml file with your setup steps. Read the docs for details.

This branch has not been deployed

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

Labels

For Uncommitted Bug PR for untriaged, rejected, closed or missing bug

Projects

Status: Not started

Development

Successfully merging this pull request may close these issues.

2 participants