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

Adding com.palantir.baseline-testing prevents caching of test results #1609

Open
sergeykad opened this issue Jan 12, 2021 · 2 comments
Open

Comments

@sergeykad
Copy link

sergeykad commented Jan 12, 2021

What happened?

Test results are never fetched from Gradle build cache if the plugin is used.
This behavior is unexpected and not documented.
Gradle reports the following Non-cacheable because 'Task outputs cacheable' not satisfied [ENABLE_CONDITION_NOT_SATISFIED]

Expected

The plugin will not prevent caching of test results.

@iamdanfox
Copy link
Contributor

We actually implemented this behaviour intentionally, because we found quite a lot of big integration tests weren't correctly declaring all their 'inputs' to gradle (i.e. if they rely on the contents of some name docker image, and that image changes under the hood).

#694

It's possible to restore caching by adding com.palantir.baseline.restore-test-cache = true to your gradle.properties.

@sergeykad
Copy link
Author

I guess it's ok. It just was unexpected, since it is not mentioned in the plugin description.

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

No branches or pull requests

2 participants