Skip to content

Conversation

@gmarouli
Copy link
Contributor

@gmarouli gmarouli commented Mar 26, 2025

In #120505 we introduced a capabilities check in the yaml test deprecation/10_basic/Test Deprecations but we forgot to add them in the RestDeprecationInfoAction.

In this PR we add the capabilities which will enable the test and we make the test resilient to the warning that occurs when the .security-7 index is present.

@gmarouli gmarouli added >test Issues or PRs that are addressing/adding tests :Data Management/Indices APIs APIs to create and manage indices and templates v8.18.0 v8.19.0 v9.0.1 labels Mar 26, 2025
@gmarouli gmarouli requested a review from nielsbauman March 26, 2025 16:17
@elasticsearchmachine elasticsearchmachine added the Team:Data Management Meta label for data/management team label Mar 26, 2025
@elasticsearchmachine
Copy link
Collaborator

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

muted-tests.yml Outdated
Comment on lines 390 to 392
- class: org.elasticsearch.xpack.test.rest.XPackRestIT
method: test {p0=deprecation/10_basic/Test Deprecations}
issue: https://github.com/elastic/elasticsearch/issues/123147
Copy link
Contributor

Choose a reason for hiding this comment

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

I actually just opened #125682 to address the failing tests from that issue. The failure issue only references V7 compat tests, which will be fixed by my PR. We need a different fix for main. The fix is to specify index: "*,-.security*" here:

Could you make that change instead of muting it in this PR, please? Sorry for not mentioning that earlier, I was trying to do too many things at the same time...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done, let's see if it passes.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also thanks for fixing. I am wondering though if this is a fix or a workaround. What do you think?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Talked offline and checked the proxy logs to see how it's used. We decided to anticipate the warning because the API is mainly used in this way GET /_migration/deprecations.

@gmarouli gmarouli added the auto-backport Automatically create backport pull requests when merged label Mar 27, 2025
@gmarouli gmarouli requested a review from nielsbauman March 27, 2025 10:54
Copy link
Contributor

@nielsbauman nielsbauman 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 Mary! (don't forget to update the PR description and description of the merge/squash commit)

@gmarouli gmarouli enabled auto-merge (squash) March 27, 2025 11:29
@gmarouli gmarouli added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Mar 27, 2025
@gmarouli
Copy link
Contributor Author

Thanks for all the help @nielsbauman

@gmarouli gmarouli merged commit 1ac5dfa into elastic:main Mar 27, 2025
17 checks passed
@gmarouli gmarouli deleted the fix-missing-capacity branch March 27, 2025 11:56
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
8.18
8.x
9.0

gmarouli added a commit to gmarouli/elasticsearch that referenced this pull request Mar 27, 2025
In elastic#120505 we introduced a capabilities check in the yaml test `deprecation/10_basic/Test Deprecations` but we forgot to add them in the `RestDeprecationInfoAction`.

In this PR we add the capabilities which will enable the test and we make the test resilient to the warning that occurs when the `.security-7` index is present.
gmarouli added a commit to gmarouli/elasticsearch that referenced this pull request Mar 27, 2025
In elastic#120505 we introduced a capabilities check in the yaml test `deprecation/10_basic/Test Deprecations` but we forgot to add them in the `RestDeprecationInfoAction`.

In this PR we add the capabilities which will enable the test and we make the test resilient to the warning that occurs when the `.security-7` index is present.
gmarouli added a commit to gmarouli/elasticsearch that referenced this pull request Mar 27, 2025
In elastic#120505 we introduced a capabilities check in the yaml test `deprecation/10_basic/Test Deprecations` but we forgot to add them in the `RestDeprecationInfoAction`.

In this PR we add the capabilities which will enable the test and we make the test resilient to the warning that occurs when the `.security-7` index is present.
elasticsearchmachine pushed a commit that referenced this pull request Mar 27, 2025
In #120505 we introduced a capabilities check in the yaml test `deprecation/10_basic/Test Deprecations` but we forgot to add them in the `RestDeprecationInfoAction`.

In this PR we add the capabilities which will enable the test and we make the test resilient to the warning that occurs when the `.security-7` index is present.
elasticsearchmachine pushed a commit that referenced this pull request Mar 27, 2025
In #120505 we introduced a capabilities check in the yaml test `deprecation/10_basic/Test Deprecations` but we forgot to add them in the `RestDeprecationInfoAction`.

In this PR we add the capabilities which will enable the test and we make the test resilient to the warning that occurs when the `.security-7` index is present.
elasticsearchmachine pushed a commit that referenced this pull request Mar 27, 2025
In #120505 we introduced a capabilities check in the yaml test `deprecation/10_basic/Test Deprecations` but we forgot to add them in the `RestDeprecationInfoAction`.

In this PR we add the capabilities which will enable the test and we make the test resilient to the warning that occurs when the `.security-7` index is present.
omricohenn pushed a commit to omricohenn/elasticsearch that referenced this pull request Mar 28, 2025
In elastic#120505 we introduced a capabilities check in the yaml test `deprecation/10_basic/Test Deprecations` but we forgot to add them in the `RestDeprecationInfoAction`.

In this PR we add the capabilities which will enable the test and we make the test resilient to the warning that occurs when the `.security-7` index is present.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Automatically create backport pull requests when merged auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) :Data Management/Indices APIs APIs to create and manage indices and templates Team:Data Management Meta label for data/management team >test Issues or PRs that are addressing/adding tests v8.18.0 v8.19.0 v9.0.1 v9.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants