You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Tests] Simplify classpath for analytics javaRestTests (#124274) (#124494)
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
0 commit comments