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

Enable data stream lifecycle feature flag in x-pack plugin tests (98050) #98133

Merged
merged 2 commits into from
Aug 2, 2023

Conversation

gmarouli
Copy link
Contributor

@gmarouli gmarouli commented Aug 2, 2023

Added missing feature flag. The reason this used work was that we would not take into account the value of the feature flag in the usage response. This changed in #97442 & #97425.

Fixes: #98050

@gmarouli gmarouli added >test Issues or PRs that are addressing/adding tests :Data Management/Data streams Data streams and their lifecycles auto-backport Automatically create backport pull requests when merged v8.9.1 labels Aug 2, 2023
@elasticsearchmachine elasticsearchmachine added the Team:Data Management Meta label for data/management team label Aug 2, 2023
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

Copy link
Contributor

@andreidan andreidan left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for fixing this Mary

@@ -227,6 +227,9 @@ testClusters.configureEach {

requiresFeature 'es.index_mode_feature_flag_registered', Version.fromString("8.0.0")
requiresFeature 'es.inference_rescorer_feature_flag_enabled', Version.fromString("8.10.0")
if (BuildParams.isSnapshotBuild() == false) {
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 if statement redundant? (the flag is always enabled in snapshot builds)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That is true, but this is how we do it in the other tests, that's why I did this here too. I am happy to clean it here and keep it inline with the other feature flags. Any objections to remove the conditional?

Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds good, thanks

@gmarouli gmarouli added auto-merge Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) auto-backport-and-merge Automatically create backport pull requests and merge when ready and removed auto-backport Automatically create backport pull requests when merged labels Aug 2, 2023
@elasticsearchmachine elasticsearchmachine merged commit 42840e0 into elastic:main Aug 2, 2023
@gmarouli gmarouli deleted the test-fix-98050 branch August 2, 2023 15:58
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
8.9 Commit could not be cherrypicked due to conflicts

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 98133

@gmarouli
Copy link
Contributor Author

gmarouli commented Aug 3, 2023

💚 All backports created successfully

Status Branch Result
8.9

Questions ?

Please refer to the Backport tool documentation

gmarouli added a commit to gmarouli/elasticsearch that referenced this pull request Aug 3, 2023
…50) (elastic#98133)

Added missing feature flag. The reason this used work was that we would
not take into account the value of the feature flag in the usage
response. This changed in
elastic#97442 &
elastic#97425.

Fixes: elastic#98050
(cherry picked from commit 42840e0)

# Conflicts:
#	x-pack/plugin/build.gradle
elasticsearchmachine pushed a commit that referenced this pull request Aug 3, 2023
…50) (#98133) (#98159)

Added missing feature flag. The reason this used work was that we would
not take into account the value of the feature flag in the usage
response. This changed in
#97442 &
#97425.

Fixes: #98050
(cherry picked from commit 42840e0)

# Conflicts:
#	x-pack/plugin/build.gradle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport-and-merge Automatically create backport pull requests and merge when ready auto-merge Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) :Data Management/Data streams Data streams and their lifecycles Team:Data Management Meta label for data/management team >test Issues or PRs that are addressing/adding tests v8.9.1 v8.10.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CI] XPackRestIT test {p0=dlm/10_usage/Test data stream lifecycle usage stats} failing
4 participants