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

[Index Management] Fix enrich policies api test #172923

Conversation

sabarasaba
Copy link
Member

@sabarasaba sabarasaba commented Dec 8, 2023

Closes #172697

Summary

Running an enrich policy is a long running task that might take x amount of time, in most cases should be pretty quick (depending on data) and in others it might take slightly longer. We have a timeout already in the execution step that catches most of these cases leaving us the delete enrich policy with the correct expected result that would be a 200. When the policy is still running the delete api will return a 429, with this PR we account for both scenarios in order for the test not to break.

I've also fixed the serverless functional tests for enrich policies that were failing for MKI, this seems to have happened due to the usage of a custom role.

I've run the PR on flaky-test-runner to make sure it all works as expected. Also ran them against MKI and seems to be passing too.

@sabarasaba sabarasaba added Feature:Index Management Index and index templates UI Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more release_note:skip Skip the PR/issue when compiling release notes backport:skip This commit does not require backporting v8.12.0 labels Dec 8, 2023
@sabarasaba sabarasaba self-assigned this Dec 8, 2023
@sabarasaba sabarasaba requested a review from a team December 8, 2023 10:23
@sabarasaba
Copy link
Member Author

/ci

@sabarasaba
Copy link
Member Author

@elasticmachine merge upstream

@sabarasaba
Copy link
Member Author

/ci

Copy link
Contributor

@ElenaStoeva ElenaStoeva left a comment

Choose a reason for hiding this comment

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

Changes LGTM 🚀

@sabarasaba sabarasaba marked this pull request as ready for review December 10, 2023 15:17
@elasticmachine
Copy link
Contributor

Pinging @elastic/platform-deployment-management (Team:Deployment Management)

@sabarasaba
Copy link
Member Author

@elasticmachine merge upstream

@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #3 / APM API tests alerts/transaction_duration.spec.ts basic no archive transaction duration alert create rule for opbeans-node using kql filter shows alert count=1 for opbeans-node on service inventory
  • [job] [logs] FTR Configs #87 / discover Discover Saved Queries Manage saved queries updates a saved query

Metrics [docs]

✅ unchanged

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @sabarasaba

@sabarasaba sabarasaba merged commit d3535bd into elastic:main Dec 13, 2023
39 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting Feature:Index Management Index and index templates UI release_note:skip Skip the PR/issue when compiling release notes Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v8.12.0 v8.13.0
Projects
None yet
5 participants