-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Introduce a mechanism to obtain the build result when using configuration caching #17659
Comments
is this related so the build does not show a summary of the test cases executed any more ?
|
Related issue on the Kotlin Gradle Plugin side |
I wrote an article that uses build services to capture build information as an alternative to BuildListeners that you might find useful - https://proandroiddev.com/gradle-configuration-caching-replacing-a-build-listener-with-build-services-40bde11937f1 |
Hi @cesar1000, this public specification describes how we're planning to improve the situation in 8.1. |
Thanks, @bamboo! I dropped a couple of questions in the doc. |
Expected Behavior
I'd like to have the ability to acquire the build result from within my build when configuration caching is enabled. In particular, I'd like for build services to be able to acquire the build result at the time the build finishes (e.g. through a new interface, like
Closeable
, or a new finish event inOperationCompletionListener
).Current Behavior
Before configuration caching, builds would be able to add a
BuildListener
to theGradle
object to obtain the build'sBuildResult
. Configuration caching doesn't allow the use of build listeners, which makes it impossible to acquire build results.Context
We have an error reporting plugin that monitors our builds for errors, presents a summary at the end of the build, and posts the error summary to our code review tool. After updating it for configuration caching, we've lost the ability to detect failures that happen outside of any tests – like compilation issues, failures during configuration, or failures to store the configuration cache. We haven't found and viable alternative.
The text was updated successfully, but these errors were encountered: