-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Failing test: Jest Integration Tests.src/core/server/elasticsearch/integration_tests - fake elasticsearch should return unknown product when it cannot perform the Product check (503 response) #129754
Comments
Pinging @elastic/kibana-core (Team:Core) |
New failure: CI Build - 8.2 |
This kibana/src/core/server/elasticsearch/status.ts Lines 20 to 27 in 5edf7e2
Which means that for some reason,
Looking at the code, we have some debounces in the observable chain, e.g this one: kibana/src/core/server/status/status_service.ts Lines 72 to 74 in 9d5aca5
and we're using a kibana/src/core/server/status/routes/status.ts Lines 64 to 66 in 9d5aca5
Given we're using a local 'fake' service and the overall quick time it takes for core to complete the |
Fixes #129754 The failing integration test is querying the `/api/status` endpoint before Kibana and ES are completely initialized, and thus, it is getting a _unavailable: Waiting for Elasticsearch_ instead of the expected _critical_. The proposed fix consists in awaiting a few milliseconds, in order to give the `debounceTime` operators enough time to propagate the right status. Co-authored-by: kibanamachine <[email protected]>
Fixes elastic#129754 The failing integration test is querying the `/api/status` endpoint before Kibana and ES are completely initialized, and thus, it is getting a _unavailable: Waiting for Elasticsearch_ instead of the expected _critical_. The proposed fix consists in awaiting a few milliseconds, in order to give the `debounceTime` operators enough time to propagate the right status. Co-authored-by: kibanamachine <[email protected]>
@gsoldevila, do you think that we can backport #148616 to 7.17? It looks like it's failing in that branch. |
Fixes elastic#129754 The failing integration test is querying the `/api/status` endpoint before Kibana and ES are completely initialized, and thus, it is getting a _unavailable: Waiting for Elasticsearch_ instead of the expected _critical_. The proposed fix consists in awaiting a few milliseconds, in order to give the `debounceTime` operators enough time to propagate the right status. Co-authored-by: kibanamachine <[email protected]> (cherry picked from commit 9f39b78)
In progress #190158 |
# Backport This will backport the following commits from `main` to `7.17`: - [Fix unknown product test flaky behavior (#148616)](#148616) <!--- Backport version: 8.9.8 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Gerard Soldevila","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-01-11T14:20:37Z","message":"Fix unknown product test flaky behavior (#148616)\n\nFixes https://github.com/elastic/kibana/issues/129754\r\n\r\nThe failing integration test is querying the `/api/status` endpoint\r\nbefore Kibana and ES are completely initialized, and thus, it is getting\r\na _unavailable: Waiting for Elasticsearch_ instead of the expected\r\n_critical_.\r\n\r\nThe proposed fix consists in awaiting a few milliseconds, in order to\r\ngive the `debounceTime` operators enough time to propagate the right\r\nstatus.\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"9f39b785620fbc42e30aea774e875bb3048eb2ae","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","test-failure-flaky","backport:skip","v8.7.0"],"number":148616,"url":"https://github.com/elastic/kibana/pull/148616","mergeCommit":{"message":"Fix unknown product test flaky behavior (#148616)\n\nFixes https://github.com/elastic/kibana/issues/129754\r\n\r\nThe failing integration test is querying the `/api/status` endpoint\r\nbefore Kibana and ES are completely initialized, and thus, it is getting\r\na _unavailable: Waiting for Elasticsearch_ instead of the expected\r\n_critical_.\r\n\r\nThe proposed fix consists in awaiting a few milliseconds, in order to\r\ngive the `debounceTime` operators enough time to propagate the right\r\nstatus.\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"9f39b785620fbc42e30aea774e875bb3048eb2ae"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/148616","number":148616,"mergeCommit":{"message":"Fix unknown product test flaky behavior (#148616)\n\nFixes https://github.com/elastic/kibana/issues/129754\r\n\r\nThe failing integration test is querying the `/api/status` endpoint\r\nbefore Kibana and ES are completely initialized, and thus, it is getting\r\na _unavailable: Waiting for Elasticsearch_ instead of the expected\r\n_critical_.\r\n\r\nThe proposed fix consists in awaiting a few milliseconds, in order to\r\ngive the `debounceTime` operators enough time to propagate the right\r\nstatus.\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"9f39b785620fbc42e30aea774e875bb3048eb2ae"}}]}] BACKPORT-->
Backport merged (thanks @gsoldevila)! Closing this issue. |
A test failed on a tracked branch
First failure: CI Build - main
The text was updated successfully, but these errors were encountered: