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

[Data Streams] Unskip API integration tests #209102

Conversation

ElenaStoeva
Copy link
Contributor

@ElenaStoeva ElenaStoeva commented Jan 31, 2025

Closes #209014

Summary

This PR unskips and updates the Data streams API integration tests to reflect the recent changes to Elasticsearch (elastic/elasticsearch#121049). Previously, the cluster.logsdb.enabled setting was always false by default in stateful Kibana. With the new changes, it is true by default if the logsdb.prior_logs_usage setting is false (which is the case for new test clusters, hence the test failure), and true otherwise. Therefore, we need to update the tests so that we test both cases.

Flaky test runner: https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7821

@ElenaStoeva ElenaStoeva 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 v9.0.0 backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) v8.18.0 v8.19.0 labels Jan 31, 2025
@ElenaStoeva ElenaStoeva self-assigned this Jan 31, 2025
@ElenaStoeva ElenaStoeva requested a review from a team as a code owner January 31, 2025 12:39
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-management (Team:Kibana Management)

Copy link
Contributor

@SoniaSanzV SoniaSanzV left a comment

Choose a reason for hiding this comment

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

thank you for addressing it, @ElenaStoeva. Lgtm :)
But let's wait for CI and Flaky Test Runner to succeed before approving it.

@@ -27,7 +27,7 @@ export default function ({ getService }: FtrProviderContext) {
} = datastreamsHelpers(getService);

// Failing: See https://github.com/elastic/kibana/issues/209014
Copy link
Contributor

Choose a reason for hiding this comment

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

[nit] can you remove this code comment now?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, thanks for catching this! Removed.

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🎉 All tests passed! - kibana-flaky-test-suite-runner#7821

[✅] x-pack/test/api_integration/apis/management/config.ts: 200/200 tests passed.

see run history

@ElenaStoeva ElenaStoeva enabled auto-merge (squash) January 31, 2025 17:37
@SoniaSanzV
Copy link
Contributor

@elasticmachine merge upstream

@ElenaStoeva ElenaStoeva merged commit 96e3d55 into elastic:main Feb 3, 2025
9 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.18, 8.x, 9.0

https://github.com/elastic/kibana/actions/runs/13118054909

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Unknown metric groups

ESLint disabled line counts

id before after diff
@kbn/test-suites-xpack 721 722 +1

Total ESLint disabled count

id before after diff
@kbn/test-suites-xpack 746 747 +1

History

cc @ElenaStoeva

kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 3, 2025
Closes elastic#209014

## Summary

This PR unskips and updates the Data streams API integration tests to
reflect the recent changes to Elasticsearch
(elastic/elasticsearch#121049). Previously, the
`cluster.logsdb.enabled` setting was always `false` by default in
stateful Kibana. With the new changes, it is `true` by default if the
`logsdb.prior_logs_usage` setting is `false` (which is the case for new
test clusters, hence the test failure), and `true` otherwise. Therefore,
we need to update the tests so that we test both cases.

Flaky test runner:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7821

(cherry picked from commit 96e3d55)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 3, 2025
Closes elastic#209014

## Summary

This PR unskips and updates the Data streams API integration tests to
reflect the recent changes to Elasticsearch
(elastic/elasticsearch#121049). Previously, the
`cluster.logsdb.enabled` setting was always `false` by default in
stateful Kibana. With the new changes, it is `true` by default if the
`logsdb.prior_logs_usage` setting is `false` (which is the case for new
test clusters, hence the test failure), and `true` otherwise. Therefore,
we need to update the tests so that we test both cases.

Flaky test runner:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7821

(cherry picked from commit 96e3d55)
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Feb 3, 2025
Closes elastic#209014

## Summary

This PR unskips and updates the Data streams API integration tests to
reflect the recent changes to Elasticsearch
(elastic/elasticsearch#121049). Previously, the
`cluster.logsdb.enabled` setting was always `false` by default in
stateful Kibana. With the new changes, it is `true` by default if the
`logsdb.prior_logs_usage` setting is `false` (which is the case for new
test clusters, hence the test failure), and `true` otherwise. Therefore,
we need to update the tests so that we test both cases.

Flaky test runner:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7821

(cherry picked from commit 96e3d55)
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.18
8.x
9.0

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Feb 3, 2025
# Backport

This will backport the following commits from `main` to `9.0`:
- [[Data Streams] Unskip API integration tests
(#209102)](#209102)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Elena
Stoeva","email":"59341489+ElenaStoeva@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-02-03T16:24:58Z","message":"[Data
Streams] Unskip API integration tests (#209102)\n\nCloses
https://github.com/elastic/kibana/issues/209014\r\n\r\n##
Summary\r\n\r\nThis PR unskips and updates the Data streams API
integration tests to\r\nreflect the recent changes to
Elasticsearch\r\n(elastic/elasticsearch#121049).
Previously, the\r\n`cluster.logsdb.enabled` setting was always `false`
by default in\r\nstateful Kibana. With the new changes, it is `true` by
default if the\r\n`logsdb.prior_logs_usage` setting is `false` (which is
the case for new\r\ntest clusters, hence the test failure), and `true`
otherwise. Therefore,\r\nwe need to update the tests so that we test
both cases.\r\n\r\nFlaky test
runner:\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7821","sha":"96e3d55638502eb55cba8f8ab2b9152599eed5a1","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Index
Management","Team:Kibana
Management","release_note:skip","v9.0.0","backport:prev-minor","v8.18.0","v9.1.0","v8.19.0"],"title":"[Data
Streams] Unskip API integration
tests","number":209102,"url":"https://github.com/elastic/kibana/pull/209102","mergeCommit":{"message":"[Data
Streams] Unskip API integration tests (#209102)\n\nCloses
https://github.com/elastic/kibana/issues/209014\r\n\r\n##
Summary\r\n\r\nThis PR unskips and updates the Data streams API
integration tests to\r\nreflect the recent changes to
Elasticsearch\r\n(elastic/elasticsearch#121049).
Previously, the\r\n`cluster.logsdb.enabled` setting was always `false`
by default in\r\nstateful Kibana. With the new changes, it is `true` by
default if the\r\n`logsdb.prior_logs_usage` setting is `false` (which is
the case for new\r\ntest clusters, hence the test failure), and `true`
otherwise. Therefore,\r\nwe need to update the tests so that we test
both cases.\r\n\r\nFlaky test
runner:\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7821","sha":"96e3d55638502eb55cba8f8ab2b9152599eed5a1"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/209102","number":209102,"mergeCommit":{"message":"[Data
Streams] Unskip API integration tests (#209102)\n\nCloses
https://github.com/elastic/kibana/issues/209014\r\n\r\n##
Summary\r\n\r\nThis PR unskips and updates the Data streams API
integration tests to\r\nreflect the recent changes to
Elasticsearch\r\n(elastic/elasticsearch#121049).
Previously, the\r\n`cluster.logsdb.enabled` setting was always `false`
by default in\r\nstateful Kibana. With the new changes, it is `true` by
default if the\r\n`logsdb.prior_logs_usage` setting is `false` (which is
the case for new\r\ntest clusters, hence the test failure), and `true`
otherwise. Therefore,\r\nwe need to update the tests so that we test
both cases.\r\n\r\nFlaky test
runner:\r\nhttps://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/7821","sha":"96e3d55638502eb55cba8f8ab2b9152599eed5a1"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Elena Stoeva <59341489+ElenaStoeva@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) 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 v9.0.0 v9.1.0
Projects
None yet
5 participants