-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Only destroy test specific caches at setup and teardown of SCC tests #71
Conversation
72025fa
to
bd7fbd6
Compare
Related: #62 |
274074c
to
d714467
Compare
Watching following test builds: |
b83913c
to
cbe0401
Compare
Signed-off-by: Mesbah_Alam@ca.ibm.com <Mesbah_Alam@ca.ibm.com>
cbe0401
to
4436359
Compare
@pshipton - This PR updates all the Shared Classes tests to destroy only the test related caches at setup and teardown stages. I've verified it based by running specific tests in Grinder at Adopt (links abbove). Could you please review and merge it? |
//We are running 5 Workloads namely WL1,..WL4. Each creates its own cache, so we should clean up each one of them | ||
for (Tests apiTest : Tests.values()) { | ||
for (int i = 1 ; i < 5 ; i++) { | ||
String cacheName = apiTest.name() + "WL1" + i; |
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.
Ideally the number of iterations and the cache name should be shared with the test and not hard coded separately. That way if the tests changes, the cleanup continues to be correct.
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.
Agree. I'll fix this in a separate PR.
Started a test build https://ci.eclipse.org/openj9/view/Pipelines/job/Pipeline-Release-Build/20/ |
This PR does not solve cache clean up required in SharedClassesAPI test properly. Details in: #73 |
Only destroy test specific caches at setup and teardown of tests
Signed-off-by: Mesbah_Alam@ca.ibm.com Mesbah_Alam@ca.ibm.com