Skip to content

[tests] More granular tests for faster builds #10778

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
Jul 27, 2017

Conversation

moiseev
Copy link
Contributor

@moiseev moiseev commented Jul 5, 2017

There are a few validation tests that take a very long time to execute. Say, there are 2 tests that take 1000 seconds each, and the rest are single seconds. It is possible that a single executor will get both of those long tests, while all the other fast ones land on other executors. So the test time would be 2000 seconds, and roughly half of this time will be spent in just one thread.

This change splits the long running tests into (even) smaller pieces, thus halving the maximum duration of a single test file execution.

@moiseev
Copy link
Contributor Author

moiseev commented Jul 5, 2017

@swift-ci Please test

@moiseev
Copy link
Contributor Author

moiseev commented Jul 6, 2017

For comparison: the most recent successful build for the PR took 1 hr 33 min on macOS-33.
Let's wait for this one.

@moiseev
Copy link
Contributor Author

moiseev commented Jul 6, 2017

/cc @shahmishal

@swift-ci
Copy link
Contributor

swift-ci commented Jul 6, 2017

Build failed
Jenkins build - Swift Test OS X Platform
Git Commit - 0913206
Test requested by - @moiseev

@moiseev
Copy link
Contributor Author

moiseev commented Jul 6, 2017

@swift-ci Please test

@moiseev
Copy link
Contributor Author

moiseev commented Jul 6, 2017

Took 1 hr 36 min on macOS-30

Hmm... Something's not right.

@moiseev
Copy link
Contributor Author

moiseev commented Jul 7, 2017

@swift-ci Please test

1 similar comment
@moiseev
Copy link
Contributor Author

moiseev commented Jul 12, 2017

@swift-ci Please test

@moiseev
Copy link
Contributor Author

moiseev commented Jul 27, 2017

@swift-ci Please clean test macOS

@moiseev moiseev merged commit 7b9d29e into swiftlang:master Jul 27, 2017
@moiseev moiseev deleted the test-speed branch July 27, 2017 20:51
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