-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[tests] Make ninja check-swift
4.1x faster on high-end workstations
#22649
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
[tests] Make ninja check-swift
4.1x faster on high-end workstations
#22649
Conversation
@swift-ci please smoke test |
Will PR testing still run this test? Is there any way we can make the test itself faster and still get useful coverage from it? |
There might be a better solution. This was just the quickest. Who owns this test? |
PS – This test is almost as long as the entire validation test suite on my Linux box. :-( |
@nkcsgexi Most of the time in this test is spent in the python code that diffs the results. If I skip the diff, this test takes 10 seconds on my machine. With the diff it's around 80 seconds. |
What’s wrong with classic-and-fast |
This test could also be trivially parallelized since it's running independently over each file and just reducing at the end to set the return code. |
@davezarzycki IIRC the switch from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change looks reasonable to me! In longer term, we plan to rely more on the stress-tester to run SwiftSyntax on user projects; the importance of running on the stdlib source will decrease.
Here's a fix for the difflib slowness by first comparing for |
Abandoned in favor of #22653 |
No description provided.