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
[Testing] Mark FixedPointConversion tests as "long_test" #23522
[Testing] Mark FixedPointConversion tests as "long_test" #23522
Conversation
As of 14d89ec, these tests now take 2.25x longer than the *entire* validation test suite on fast machines. Mark them as "long_test" for now until they can be broken into smaller concurrent tests.
@swift-ci please smoke test |
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.
Thanks Dave!
I think that we should be able to rework these in the long-term to avoid the problem, but this is a perfectly acceptable quick fix. |
Great! Thanks |
@davezarzycki: thanks for the quick fix, in #23220 you say it takes 2.25x the next longest test, in here is 2.25x than the entire validation test. I hope the original statement is the right one. In any case, how are you measuring the numbers? Is there a command in the repo that I can use? I want to check what's taking that long, and why. Also, are we talking about Darwin machines, Linux machines? Did you noticed if it was the Release or the Debug test? The test might not have been “long” before because I think it was not running a large part of the tests, but I wasn’t expecting such a huge change. I was testing this before, and while it wasn’t the fastest test that I have ever run, it took way less than the 2 minutes I just seen in a beefy machine. |
@drodriguez – The "problem" is that with enough CPU cores, the time to run the entire test suite "equals" the time needed run the longest individual test. The change in #23220 made one of the FixedPointConversion tests the new longest test (by 2.25x) and therefore the whole test suite took 2.25x longer. |
I have been looking a little bit more into this. The executables themselves take around 2 seconds to run (Debug slightly slower than Release. Averages 2.33 and 2.19). Gyb takes less than 0.2 seconds to run. The bunch of the time is the compilation of the file. The file is 14k lines (many of them are empty or comments). This are the stats for the compilation in my machine (quite beefy):
It seems to me that it is more like a lot of little functions taking a long time together. Maybe breaking up the test is the only way to go. |
Ya… The best and worst thing about |
As of 14d89ec (GitHub #23220), these tests now take 2.25x longer than the entire validation test suite on fast machines. Mark them as "long_test" for now until they can be broken into smaller concurrent tests.