Skip to content

Conversation

@breskeby
Copy link
Contributor

Backports the following commits to 9.0:

This replaces the usage of a defaultDistribution for javaRestTest by the integTestDistribution.

This has a few advantages:
1. The overall dependencies on running the java rest tests are minimized.
   By using the default distribution we rely on building the whole default distribution (including all modules and plugins)
   before we can run these tests. This a) takes time and b) dramatically reduces the likelyhood of us avoiding test task execution at all as we
   basically declare the whole distro as an input. By using integTest distro we reduce the surface of the inputs dramatically which also results in faster
   execution of these tests
2. its more idiomatic as one pattern we see is that we e.g  disable the security settings that we would not need once we use the integTest distro without
   the security plugin
3. it makes test setup and its dependencies more explicit.

Point 3. might sound as like a downside at first, but for understanding what those tests are doing and what they are relying on I think its worth the 3 more lines of code.

Here are two build scans task executions:
- before the `javaRestTest` task requires `995 tasks, 2 transforms executed in 155 projects`: https://gradle-enterprise.elastic.co/s/drj5mfzsfx7ra/timeline
- after we only rely on `275 tasks, 2 transforms executed in 56 projects`: https://gradle-enterprise.elastic.co/s/jr5sblhppn4fg/timeline?page=2
@breskeby breskeby added :Delivery/Build Build or test infrastructure >non-issue auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport Team:Delivery Meta label for Delivery team labels Mar 10, 2025
@elasticsearchmachine elasticsearchmachine merged commit e6ad4a2 into elastic:9.0 Mar 10, 2025
16 checks passed
@breskeby breskeby deleted the backport/9.0/pr-124274 branch March 10, 2025 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport :Delivery/Build Build or test infrastructure >non-issue Team:Delivery Meta label for Delivery team v9.0.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants