Skip to content

[Dependency Scanning] Always use a locking diagnostic consumer #81262

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 5, 2025

Conversation

artemcm
Copy link
Contributor

@artemcm artemcm commented May 2, 2025

Since we enabled parallel dependency scanning by-default, each individual scan needs a diagnostic consumer that is safe to use across many threads

@artemcm artemcm requested a review from cachemeifyoucan as a code owner May 2, 2025 22:26
@cachemeifyoucan
Copy link
Contributor

Is the base class DependencyScanDiagnosticCollector still used? Should we should fold it back so there is only one DiagnosticCollector that is locking?

artemcm added 2 commits May 5, 2025 10:25
Since we enabled parallel dependency scanning by-default, each individual scan needs a diagnostic consumer that is safe to use across many threads. Deprecate the 'Locking' sub-class, making its behavior the default in the base class.
…ic collection

All clients are expected to have switched to the per-scan-query diagnostics using 'swiftscan_dependency_graph_get_diagnostics'
@artemcm artemcm force-pushed the DepScanParallelDiagnosticConsumer branch from 87f7a2f to c1991d7 Compare May 5, 2025 17:42
@artemcm
Copy link
Contributor Author

artemcm commented May 5, 2025

@swift-ci smoke test

@artemcm
Copy link
Contributor Author

artemcm commented May 5, 2025

Is the base class DependencyScanDiagnosticCollector still used? Should we should fold it back so there is only one DiagnosticCollector that is locking?

Folded into the base class. 👍🏼

Copy link
Contributor

@cachemeifyoucan cachemeifyoucan left a comment

Choose a reason for hiding this comment

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

LGTM

@artemcm artemcm merged commit cd4ff86 into swiftlang:main May 5, 2025
3 checks passed
@artemcm artemcm deleted the DepScanParallelDiagnosticConsumer branch May 5, 2025 23:18
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.

2 participants