Skip to content

test: Speed up test/Misc/verify-swift-feature-testing.test-sh some more #79764

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 1 commit into from
Mar 4, 2025

Conversation

AnthonyLatsis
Copy link
Collaborator

Instead of first invoking grep to get a list of files with matches, and then invoking it again on each file to find lines with matches, invoke it once on the entire test suite to get a list of paths and lines with matches, and parse that output into a dictionary that maps file paths to lists of lines.
This further reduces run time from ~2.5s to ~1s.

…more

Instead of first invoking `grep` to get a list of files with matches,
and then invoking it again on each file to find lines with matches,
invoke it once on the entire test suite to get a list of paths and lines
with matches, and parse that output into a dictionary that maps file
paths to lists of lines.
This further reduces run time from ~2.5s to ~1s.
@AnthonyLatsis AnthonyLatsis requested a review from drodriguez March 4, 2025 16:24
@AnthonyLatsis
Copy link
Collaborator Author

@swift-ci please smoke test

@AnthonyLatsis AnthonyLatsis merged commit f636aa0 into swiftlang:main Mar 4, 2025
3 checks passed
@AnthonyLatsis AnthonyLatsis deleted the ulmus-parvifolia branch March 4, 2025 23:28
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