-
Notifications
You must be signed in to change notification settings - Fork 25.3k
Migrate x-pack-deprecation REST tests #131444
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
base: main
Are you sure you want to change the base?
Conversation
Pinging @elastic/es-core-infra (Team:Core/Infra) |
x-pack/plugin/deprecation/qa/early-deprecation-rest/build.gradle
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but one comment:
Also, I preferred not to move and "flatten" the project here, but maintain a separate "qa" sub-project, as the IT tests use two different test plugins, specific to this module.
Could we at least combine to two separate QA projects into one? I don't see any reason to keep them separate.
FWIW this is a big advantage of the new IT tests, that we can control plugins for the cluster per test suite. Moving the qa tests into one sourceset doesn't affect that, but does make the entire set of tests more discoverable together. |
Oh yes, definitely, I can do that.
What I cannot (or don't want) to do is to remove the QA sub-project altogether: keep me honest here and correct me if I'm wrong, but if I remove it and move everything under |
Merged them. @mark-vieira still LG to you? |
…e/elasticsearch into refactor-xpack-deprecation-tests
I'm pretty sure the module you need here is |
Tried to add it, still failing :/ |
Same error or a different one? It's often a bit of a whack-a-mole with these things. |
Exact same indexnotfoud exception: https://gradle-enterprise.elastic.co/s/ef6jzgb7p337w |
@ClassRule | ||
public static ElasticsearchCluster cluster = ElasticsearchCluster.local() | ||
.distribution(DistributionType.DEFAULT) | ||
.plugin("deprecation-plugin") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should be installing this as a module not a plugin. Also, it should already be included in the default distro, so installing it as a plugin here is unnecessary. In fact, I'm surprised this even works and doesn't result in an error since we basically have this thing loaded twice.
Hmm. Yeah, there's something registering that index. I would expect it to be the deprecation plugin itself. Perhaps the test is implicitly relying on something to trigger a deprecation and therefore create the index? I'm not sure. |
This PR migrates legacy rest tests in the x-pack deprecation module.
I tried to use the
INTEG_TEST
distribution and add just the basic modules needed (ml, data-streams, deprecation) but this way the indices are not persisted and the tests fails. Need more investigation to identify the set of required modules.Also, I preferred not to move and "flatten" the project here, but maintain a separate "qa" sub-project, as the IT tests use two different test plugins, specific to this module.