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

Avoid tasks materialized during configuration phase #65922

Merged

Conversation

breskeby
Copy link
Contributor

@breskeby breskeby commented Dec 6, 2020

Rework more build scripts to make usage of task avoidance api and avoid
unnecessary task creations across the build to reduce overall configuration overhead.

Another major benefit we gain from this is that we now also avoid unnecessary
test cluster creation and configuration as these are by default only created
when the according integTest or consumer task is created when requested for execution

This brings us another step closer to finish off #56610

@breskeby breskeby self-assigned this Dec 6, 2020
@breskeby breskeby added :Delivery/Build Build or test infrastructure Team:Delivery Meta label for Delivery team v7.11.0 v8.0.0 labels Dec 6, 2020
@breskeby
Copy link
Contributor Author

breskeby commented Dec 7, 2020

@elasticmachine test this please

@breskeby
Copy link
Contributor Author

breskeby commented Dec 8, 2020

@elasticmachine update branch please

@elasticmachine
Copy link
Collaborator

merge conflict between base and head

@breskeby breskeby marked this pull request as ready for review December 8, 2020 15:26
@breskeby breskeby requested a review from pugnascotia December 8, 2020 15:27
@breskeby breskeby force-pushed the avoid-task-creation-during-config-phase branch 2 times, most recently from ec6b8a2 to f559603 Compare December 9, 2020 10:44
@@ -7,7 +7,7 @@ org.gradle.jvmargs=-XX:+HeapDumpOnOutOfMemoryError -Xss2m
systemProp.org.gradle.dependency.duplicate.project.detection=false

# Enforce the build to fail on deprecated gradle api usage
systemProp.org.gradle.warning.mode=fail
# systemProp.org.gradle.warning.mode=fail
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this change intentional?

Copy link
Contributor Author

@breskeby breskeby Dec 9, 2020

Choose a reason for hiding this comment

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

nope. good catch. fixed

@breskeby breskeby force-pushed the avoid-task-creation-during-config-phase branch from c08a4e3 to 5217d45 Compare December 9, 2020 22:30
@breskeby
Copy link
Contributor Author

@elasticmachine update branch

@breskeby breskeby merged commit defaa93 into elastic:master Dec 12, 2020
breskeby added a commit to breskeby/elasticsearch that referenced this pull request Dec 12, 2020
* Avoid tasks materialized during configuration phase
* Fix RestTestFromSnippet testRoot setup
breskeby added a commit that referenced this pull request Dec 12, 2020
* Avoid tasks materialized during configuration phase
* Fix RestTestFromSnippet testRoot setup
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.11.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants