-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
Add a time-based STF system test #384
Conversation
Test: |
String timelimitInMins; | ||
int testCountMultiplier; | ||
public void help(HelpTextGenerator help) throws StfException { | ||
help.outputSection("MixedLoadTest runs workloads of math,mauve,nio,lang,concurrent unit tests"); |
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.
Is this TimedLoadTest
or MixedLoadTest
?
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.
Good catch! That was a copy paste error. I've updated the help message.
a591667
to
9e04b7c
Compare
I do not think 'TimedLoadTest' is what this test should be called - assuming you might want to create other workload tests which are timed based what would you call the next one? As far as I can see, this is actually just a variant of MixedLoadTest running for a period of time rather rather than a fixed number of tests. So why not just modify MixedLoadTest to accept the timeLimit argument? If the argument is not received, then the test would behave as is does now; if the argument is present it would be used as the timeLimit and the number of tests to be run increased so that they do not complete before the timelimit expires. Also, why only allow the user to specify the timeLimit in minutes? The STF -timeLimit option actually uses a 5s / 5m / 5h syntax so it makes sense for the -test-args argument to use the same syntax. If that were done then a playlist or test makefile could have several targets for the same workload such as:
|
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.
See comment in PR Conversation regarding requested changes.
9e04b7c
to
da1e4e1
Compare
@lumpfish - Thanks for the review comments. The following changes have been made based on them:
Tested time-bsased case here: https://ci.adoptopenjdk.net/view/Test_grinder/job/Grinder/5483/ |
openjdk.test.load/src/test.load/net/adoptopenjdk/stf/MixedLoadTest.java
Outdated
Show resolved
Hide resolved
openjdk.test.load/src/test.load/net/adoptopenjdk/stf/MixedLoadTest.java
Outdated
Show resolved
Hide resolved
openjdk.test.load/src/test.load/net/adoptopenjdk/stf/MixedLoadTest.java
Outdated
Show resolved
Hide resolved
18df835
to
b996820
Compare
Latest changes were tested here: https://ci.adoptopenjdk.net/view/Test_grinder/job/Grinder/5489/ |
openjdk.test.load/src/test.load/net/adoptopenjdk/stf/MixedLoadTest.java
Outdated
Show resolved
Hide resolved
openjdk.test.load/src/test.load/net/adoptopenjdk/stf/MixedLoadTest.java
Outdated
Show resolved
Hide resolved
b996820
to
5b4f727
Compare
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.
Looks good. Please "Squash and Merge" when you're ready.
if (isTimeBasedLoadTest) { | ||
loadTestInvocation = loadTestInvocation | ||
.setSuiteNumTests(totalTests * 80000000 * testCountMultiplier); // If it's a time based test, run a very large load |
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.
@Mesbah-Alam shouldn't we just set this to INT_MAX
or LONG_MAX
or whatever the maximum representable integer is rather than using a "very large load" with a magic 80,000,000 constant? The tests will be terminated after the alloted time anyway.
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 for your suggestion. I will try this out.
Related to adoptium/aqa-tests#2104
FYI @lumpfish
Signed-off-by: Mesbah_Alam@ca.ibm.com Mesbah_Alam@ca.ibm.com