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

Reinstate usage of READ_ONLY_REMOTE_GRADLE_CACHE to avoid wrong cache hits #4853

Merged
merged 3 commits into from
Jan 5, 2022

Conversation

kiview
Copy link
Member

@kiview kiview commented Jan 5, 2022

Through the Dependabot update of Jedis to 4.0.1, we saw that our testMatrix Gradle task falsely populates the cache for the test execution, although the tests are actually not executed.

This PR adds an additional input to the test tasks during testMatrix execution, so we can ensure that we will end up with a different cache key, as opposed to the actual execution of tests.

Copy link
Member

@rnorth rnorth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems reasonable to me, but as you suggested separately I'd agree that this testMatrix approach deserves a revisit to see if it's truly scaling well for us.

@bsideup bsideup added this to the next milestone Jan 5, 2022
@kiview kiview changed the title Add additional task input for test execution in testMatrix task to avoid wrong cache hits Reinstate usage of READ_ONLY_REMOTE_GRADLE_CACHE to avoid wrong cache hits Jan 5, 2022
@kiview kiview merged commit e42a37d into master Jan 5, 2022
@delete-merged-branch delete-merged-branch bot deleted the ci-matrix-fix-cache branch January 5, 2022 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants