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

Simplify gradle test task error reporting #59760

Merged
merged 3 commits into from
Jul 21, 2020

Conversation

breskeby
Copy link
Contributor

@breskeby breskeby commented Jul 17, 2020

- avoid using extra plugin
- avoid extra task listener (should be avoided related to elastic#57918 )
- keep all logic in the listener
@breskeby breskeby self-assigned this Jul 17, 2020
@breskeby breskeby added :Delivery/Build Build or test infrastructure Team:Core/Infra Meta label for core/infra team v7.8.2 v7.9.1 v8.0.0 labels Jul 17, 2020
@breskeby breskeby changed the title Simplify test error reporting Simplify gradle test task error reporting Jul 17, 2020
- 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() {
Copy link
Contributor Author

@breskeby breskeby Jul 17, 2020

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

@breskeby breskeby marked this pull request as ready for review July 17, 2020 12:27
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-core-infra (:Core/Infra/Build)

Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

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

LGTM

@breskeby breskeby merged commit 9ecf478 into elastic:master Jul 21, 2020
@breskeby breskeby deleted the simplify-test-error-reporting branch July 21, 2020 11:09
breskeby added a commit to breskeby/elasticsearch that referenced this pull request Jul 21, 2020
* 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
breskeby added a commit to breskeby/elasticsearch that referenced this pull request Jul 21, 2020
* 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
breskeby added a commit to breskeby/elasticsearch that referenced this pull request Jul 21, 2020
* 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
breskeby added a commit that referenced this pull request Jul 21, 2020
* Simplify test error reporting

- avoid using extra plugin
- avoid extra task listener (should be avoided related to #57918 )
- keep all logic in the listener
breskeby added a commit that referenced this pull request Jul 21, 2020
* Simplify test error reporting

- avoid using extra plugin
- avoid extra task listener (should be avoided related to #57918 )
- keep all logic in the listener
breskeby added a commit that referenced this pull request Jul 21, 2020
* Simplify test error reporting

- avoid using extra plugin
- avoid extra task listener (should be avoided related to #57918 )
- keep all logic in the listener
@mark-vieira mark-vieira added the Team:Delivery Meta label for Delivery team label Nov 11, 2020
@mark-vieira mark-vieira removed the Team:Core/Infra Meta label for core/infra team label Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Delivery/Build Build or test infrastructure Team:Delivery Meta label for Delivery team v7.8.2 v7.9.1 v7.10.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants