Skip to content

Address review comments from #1037 #1045

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

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Feb 1, 2024

Essentially

  • Fix typos
  • Add test cases for for the reducer
  • Simplify SourceReducer by returning descriptive enums instead of optionals

@ahoppen ahoppen requested a review from bnbarham February 1, 2024 20:14
@ahoppen ahoppen requested a review from benlangmuir as a code owner February 1, 2024 20:14
@ahoppen
Copy link
Member Author

ahoppen commented Feb 1, 2024

@swift-ci Please test

Copy link
Contributor

@bnbarham bnbarham left a comment

Choose a reason for hiding this comment

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

Tests 🥳!

// MARK: - Entry point

extension RequestInfo {
func reduceCommandLineArguments(using executor: SourceKitRequestExecutor) async throws -> RequestInfo {
Copy link
Contributor

Choose a reason for hiding this comment

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

Occurs to me this could also be on the executor now. Up to you which you prefer.

Copy link
Member Author

Choose a reason for hiding this comment

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

Let’s keep it on RequestInfo to match reduceInputFile

// We have found a reproducer. Stop. Looking further probably won't help because other crashes are likely the same cause.
return
reproducerBundle = try await reduce(requestInfo: requestInfo, sourcekitd: sourcekitd)
// If reduce didn't thorw, we have found a reproducer. Stop.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// If reduce didn't thorw, we have found a reproducer. Stop.
// If reduce didn't throw, we have found a reproducer. Stop.

@ahoppen ahoppen force-pushed the ahoppen/address-reducer-review-comments branch from e90f900 to 4b4942f Compare February 1, 2024 23:25
@ahoppen
Copy link
Member Author

ahoppen commented Feb 1, 2024

@swift-ci Please test macOS

@ahoppen ahoppen closed this Feb 1, 2024
@ahoppen ahoppen reopened this Feb 1, 2024
@ahoppen ahoppen force-pushed the ahoppen/address-reducer-review-comments branch from 4b4942f to 1b8cb71 Compare February 2, 2024 06:15
@ahoppen
Copy link
Member Author

ahoppen commented Feb 2, 2024

@swift-ci Please test macOS

@ahoppen
Copy link
Member Author

ahoppen commented Feb 2, 2024

@swift-ci Please test Linux

@ahoppen
Copy link
Member Author

ahoppen commented Feb 2, 2024

@swift-ci Please test Windows

@ahoppen ahoppen enabled auto-merge February 2, 2024 07:47
@ahoppen
Copy link
Member Author

ahoppen commented Feb 2, 2024

@swift-ci Please test Windows

@ahoppen ahoppen force-pushed the ahoppen/address-reducer-review-comments branch from 1b8cb71 to 2654c83 Compare February 2, 2024 21:58
@ahoppen
Copy link
Member Author

ahoppen commented Feb 2, 2024

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Feb 2, 2024

@swift-ci Please test Windows

1 similar comment
@ahoppen
Copy link
Member Author

ahoppen commented Feb 2, 2024

@swift-ci Please test Windows

@ahoppen ahoppen force-pushed the ahoppen/address-reducer-review-comments branch from 2654c83 to 98b0b23 Compare February 2, 2024 23:44
@ahoppen
Copy link
Member Author

ahoppen commented Feb 2, 2024

@swift-ci Please test

@ahoppen
Copy link
Member Author

ahoppen commented Feb 3, 2024

@swift-ci Please test Windows

@ahoppen ahoppen merged commit fb87812 into swiftlang:main Feb 3, 2024
@ahoppen ahoppen deleted the ahoppen/address-reducer-review-comments branch August 4, 2025 10:48
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