Skip to content

Speedup tests #639

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 4 commits into from
Oct 11, 2022
Merged

Speedup tests #639

merged 4 commits into from
Oct 11, 2022

Conversation

dnadoba
Copy link
Collaborator

@dnadoba dnadoba commented Oct 10, 2022

Motiviation

We like fast tests.

Modification

  • set networkFrameworkWaitForConnectivity and connectionPool.retryConnectionEstablishment to false for most test cases
  • move long running test cases into separate classes so they can run in parallel

Results

Mode Old New Relative
Serial 180s (3m 0s) 48s 3.75x
Parallel 62s (1m 2s) 12s 5.1x

@dnadoba dnadoba added the semver/none No version bump required. label Oct 10, 2022
@dnadoba dnadoba marked this pull request as ready for review October 11, 2022 10:27
Copy link
Collaborator

@FranzBusch FranzBusch left a comment

Choose a reason for hiding this comment

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

Nice stuff! Looks good to me!

@dnadoba dnadoba merged commit 9195d3b into swift-server:main Oct 11, 2022
@dnadoba dnadoba deleted the dn-speedup-tests branch October 11, 2022 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/none No version bump required.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants