Skip to content

Conversation

artemcm
Copy link
Contributor

@artemcm artemcm commented Apr 25, 2023

Cherry-pick of #65415

As well as a couple of additional frontend options that seem like they may impact scanning result.

• Release: Swift 5.9
• Explanation: To have these options missing from the dependency scanning context hash means that clients that may be running multiple concurrent scans on targets/modules that have identical command-lines other than the module name would encounter concurrency issues due to not isolating their respective scans' state.
• Scope of Issue: Scanner crashes when scanning multiple source modules simultaneously where the scanner invocations only differ in module name.
• Origination: Synchronization of concurrent scans was recently moved to the scanner itself, from the client (SwiftDriver).
• Risk: Zero risk to implicit module builds, minimal risk to explicit module builds - this change is more restrictive than we were before and will result in more distinct scanning contexts
• Automated Testing: Added unit test that verifies scanning hash difference for relevant use-cases

Resolves rdar://108464467

…ning context (hash)

As well as a couple of additional frontend options that seem like they may impact scanning result.

Resolves rdar://108464467
@artemcm artemcm requested a review from a team as a code owner April 25, 2023 18:13
@artemcm
Copy link
Contributor Author

artemcm commented Apr 25, 2023

@swift-ci test

@artemcm artemcm merged commit 7745d4b into swiftlang:release/5.9 Apr 26, 2023
@artemcm artemcm deleted the 59StricterDepScanHashWithFrontendOpts branch April 26, 2023 15:23
@AnthonyLatsis AnthonyLatsis added the 🍒 release cherry pick Flag: Release branch cherry picks label May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants