-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Simplify gradle test task error reporting #59760
Simplify gradle test task error reporting #59760
Conversation
breskeby
commented
Jul 17, 2020
•
edited
Loading
edited
- Avoid using extra plugin
- Avoid extra task listener (should be avoided related to Elasticsearch build and Gradle plugins should support Gradle configuration cache #57918 )
- Keep all logic for reporting failures in the TestListener
- Avoids overhead for non decorated tasks and up-to-date test tasks
- avoid using extra plugin - avoid extra task listener (should be avoided related to elastic#57918 ) - keep all logic in the listener
- makes linking output to the test task possible in GE console output
throw new IllegalStateException(this.getClass().getName() + " can only be applied to the root project."); | ||
} | ||
|
||
project.getGradle().addListener(new TaskActionListener() { |
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.
Removing the task listener also fixes an incompatibility with upcoming gradle configuration cache. see https://docs.gradle.org/6.6-rc-1/userguide/configuration_cache.html#config_cache:requirements:build_listeners for details
Pinging @elastic/es-core-infra (:Core/Infra/Build) |
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.
LGTM
* Simplify test error reporting - avoid using extra plugin - avoid extra task listener (should be avoided related to elastic#57918 ) - keep all logic in the listener
* Simplify test error reporting - avoid using extra plugin - avoid extra task listener (should be avoided related to elastic#57918 ) - keep all logic in the listener
* Simplify test error reporting - avoid using extra plugin - avoid extra task listener (should be avoided related to elastic#57918 ) - keep all logic in the listener