Skip to content

Conversation

@mark-vieira
Copy link
Contributor

@mark-vieira mark-vieira commented Oct 16, 2019

This is a follow up to #46952 which was an attempt to enable caching on all rest integration tests. As discussed in that PR, certain QA projects that ran a set of ordered suites against a single cluster are problematic to cache because of side-effects and cluster state. There are potentially some solutions there but for now we are just going to effectively exclude those problematic projects.

This pull request removes the restriction that only tests using the integ-test distribution can be cached. It replaced this with a condition that any rest integration test task can be cached, so long as it targets a cluster that is not used by any other tasks. We cannot guarantee that another task using a cluster doesn't have side-effects that cause undesired behavior when caching so we just punt in those scenarios. This should still give us decent benefit, as many of our x-pack tests use the default distribution, and we can avoid running those tests in cases where we don't change production code. For example, when a commit contains only test code changes, or just documentation changes.

@mark-vieira mark-vieira added the :Delivery/Build Build or test infrastructure label Oct 16, 2019
@elasticmachine
Copy link
Collaborator

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

@mark-vieira mark-vieira self-assigned this Oct 16, 2019
@mark-vieira
Copy link
Contributor Author

@elasticmachine run elasticsearch-ci/packaging-sample

Copy link
Contributor

@alpar-t alpar-t left a comment

Choose a reason for hiding this comment

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

LGTM!

@alpar-t
Copy link
Contributor

alpar-t commented Oct 17, 2019

I added #48175 to start the ball rolling towards being able to support the remaining cases.

@mark-vieira mark-vieira merged commit 493761c into elastic:master Oct 17, 2019
@mark-vieira mark-vieira deleted the cache-all-integ-tests branch October 17, 2019 14:31
@mark-vieira mark-vieira added the Team:Delivery Meta label for Delivery 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 >non-issue Team:Delivery Meta label for Delivery team v7.6.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants