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

Failing test: Jest Integration Tests.src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/rollups/integration_tests - daily rollups integration test deletes documents older that 3 days from the saved objects repository #111821

Closed
kibanamachine opened this issue Sep 10, 2021 · 36 comments · Fixed by #135825, #143350, #163157 or #199136
Assignees
Labels
failed-test A test failure on a tracked branch, potentially flaky-test impact:critical This issue should be addressed immediately due to a critical level of impact on the product. loe:small Small Level of Effort Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc

Comments

@kibanamachine
Copy link
Contributor

kibanamachine commented Sep 10, 2021

A test failed on a tracked branch

Error: expect(received).toBe(expected) // Object.is equality

Expected: 4
Received: 3
    at Object.<anonymous> (/dev/shm/workspace/parallel/3/kibana/src/plugins/kibana_usage_collection/server/collectors/event_loop_delays/rollups/integration_tests/daily_rollups.test.ts:90:19)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at _callCircusTest (/dev/shm/workspace/parallel/3/kibana/node_modules/jest-circus/build/run.js:212:5)
    at _runTest (/dev/shm/workspace/parallel/3/kibana/node_modules/jest-circus/build/run.js:149:3)
    at _runTestsForDescribeBlock (/dev/shm/workspace/parallel/3/kibana/node_modules/jest-circus/build/run.js:63:9)
    at _runTestsForDescribeBlock (/dev/shm/workspace/parallel/3/kibana/node_modules/jest-circus/build/run.js:57:9)
    at run (/dev/shm/workspace/parallel/3/kibana/node_modules/jest-circus/build/run.js:25:3)
    at runAndTransformResultsToJestFormat (/dev/shm/workspace/parallel/3/kibana/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:176:21)
    at jestAdapter (/dev/shm/workspace/parallel/3/kibana/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:109:19)
    at runTestInternal (/dev/shm/workspace/parallel/3/kibana/node_modules/jest-runner/build/runTest.js:380:16)
    at runTest (/dev/shm/workspace/parallel/3/kibana/node_modules/jest-runner/build/runTest.js:472:34)

First failure: Jenkins Build

@kibanamachine kibanamachine added the failed-test A test failure on a tracked branch, potentially flaky-test label Sep 10, 2021
@botelastic botelastic bot added the needs-team Issues missing a team label label Sep 10, 2021
@dmlemeshko dmlemeshko added the Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc label Sep 10, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-core (Team:Core)

@botelastic botelastic bot removed the needs-team Issues missing a team label label Sep 10, 2021
@kibanamachine
Copy link
Contributor Author

New failure: CI Build

@kibanamachine
Copy link
Contributor Author

New failure: CI Build

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - 7.16

@exalate-issue-sync exalate-issue-sync bot added impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. loe:small Small Level of Effort labels Nov 4, 2021
@kibanamachine
Copy link
Contributor Author

New failure: CI Build - 7.16

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - 8.0

jbudz added a commit that referenced this issue Nov 8, 2021
jbudz added a commit that referenced this issue Nov 8, 2021
jbudz added a commit that referenced this issue Nov 8, 2021
@jbudz
Copy link
Member

jbudz commented Nov 8, 2021

skipped

main: fca8cbf
8.0: e5960af
7.16: d4d931c

@exalate-issue-sync exalate-issue-sync bot added impact:critical This issue should be addressed immediately due to a critical level of impact on the product. and removed impact:low Addressing this issue will have a low level of impact on the quality/strength of our product. labels Nov 25, 2021
@afharo afharo self-assigned this Jul 6, 2022
@kibanamachine
Copy link
Contributor Author

New failure: kibana-elasticsearch-snapshot-verify - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - 8.x

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - 8.x

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - main

@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - 8.x

jbudz added a commit that referenced this issue Nov 6, 2024
@kibanamachine
Copy link
Contributor Author

New failure: kibana-on-merge - 8.x

jbudz added a commit that referenced this issue Nov 6, 2024
@jbudz
Copy link
Member

jbudz commented Nov 6, 2024

Skipped

main: 199792f
8.x: 7fed185

@afharo
Copy link
Member

afharo commented Nov 6, 2024

Except from a couple timeouts, the errors are the same as the description above. I wonder if it's a race condition where we call .find before the index is refreshed.

afharo added a commit to afharo/kibana that referenced this issue Nov 6, 2024
afharo added a commit that referenced this issue Nov 6, 2024
kibanamachine pushed a commit to kibanamachine/kibana that referenced this issue Nov 6, 2024
kibanamachine added a commit that referenced this issue Nov 6, 2024
# Backport

This will backport the following commits from `main` to `8.x`:
- [Flaky #111821 - Refresh index
(#199136)](#199136)

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

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

<!--BACKPORT [{"author":{"name":"Alejandro Fernández
Haro","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-06T16:10:06Z","message":"Flaky
#111821 - Refresh index
(#199136)","sha":"8054aa253fddc5be6c88904024518d30f5d8ae1d","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","v9.0.0","backport:prev-minor"],"title":"Flaky
#111821 - Refresh
index","number":199136,"url":"https://github.com/elastic/kibana/pull/199136","mergeCommit":{"message":"Flaky
#111821 - Refresh index
(#199136)","sha":"8054aa253fddc5be6c88904024518d30f5d8ae1d"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/199136","number":199136,"mergeCommit":{"message":"Flaky
#111821 - Refresh index
(#199136)","sha":"8054aa253fddc5be6c88904024518d30f5d8ae1d"}}]}]
BACKPORT-->

Co-authored-by: Alejandro Fernández Haro <[email protected]>
mgadewoll pushed a commit to mgadewoll/kibana that referenced this issue Nov 7, 2024
mgadewoll pushed a commit to mgadewoll/kibana that referenced this issue Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
failed-test A test failure on a tracked branch, potentially flaky-test impact:critical This issue should be addressed immediately due to a critical level of impact on the product. loe:small Small Level of Effort Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
Projects
None yet
7 participants