Skip to content
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

Merged
merged 1 commit into from
Jan 17, 2019

Conversation

Mesbah-Alam
Copy link
Contributor

Only destroy test specific caches at setup and teardown of tests
Signed-off-by: Mesbah_Alam@ca.ibm.com Mesbah_Alam@ca.ibm.com

@Mesbah-Alam
Copy link
Contributor Author

Related: #62

@Mesbah-Alam
Copy link
Contributor Author

Mesbah-Alam commented Jan 15, 2019

@Mesbah-Alam Mesbah-Alam force-pushed the fixSCCDeletaionIssue branch 6 times, most recently from b83913c to cbe0401 Compare January 16, 2019 18:57
Signed-off-by: Mesbah_Alam@ca.ibm.com <Mesbah_Alam@ca.ibm.com>
@Mesbah-Alam
Copy link
Contributor Author

Mesbah-Alam commented Jan 17, 2019

@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?

@Mesbah-Alam Mesbah-Alam changed the title Only destroy test specific caches at setup and teardown of tests Only destroy test specific caches at setup and teardown of SCC tests Jan 17, 2019
//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;
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@pshipton pshipton merged commit 5c0eb6c into adoptium:master Jan 17, 2019
@pshipton
Copy link
Contributor

@Mesbah-Alam
Copy link
Contributor Author

Mesbah-Alam commented Jan 17, 2019

This PR does not solve cache clean up required in SharedClassesAPI test properly. Details in: #73

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