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

[Discover][UnifiedDataTable] Attempt to fix flaky jest test #201754

Merged
merged 6 commits into from
Nov 28, 2024

Conversation

kertal
Copy link
Member

@kertal kertal commented Nov 26, 2024

Summary

Fixes #187527

The jest test occasionally failed , and we don't have a good way to reproduce or run a flaky test runner, so this attempt is simple trying out an addtional waitFor to see if this could help.

PS: I think the root cause could be lazy loading of an involved component, if someone has an idea how to debug this, pls let know 🙏

Checklist

@kertal kertal force-pushed the discover-attempt-to-fix-flaky-jest branch from 0e3d69a to be757a4 Compare November 26, 2024 10:56
@kertal
Copy link
Member Author

kertal commented Nov 26, 2024

/ci

@kertal
Copy link
Member Author

kertal commented Nov 26, 2024

/ci

@kertal kertal self-assigned this Nov 26, 2024
@kertal
Copy link
Member Author

kertal commented Nov 26, 2024

/ci

Copy link
Contributor

@akowalska622 akowalska622 left a comment

Choose a reason for hiding this comment

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

🥳

@kertal kertal added Feature:Discover Discover Application Feature:UnifiedDataTable release_note:skip Skip the PR/issue when compiling release notes backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) labels Nov 27, 2024
@kertal kertal marked this pull request as ready for review November 27, 2024 13:04
@kertal kertal requested review from a team as code owners November 27, 2024 13:04
@kertal kertal added the Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. label Nov 27, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

@kertal kertal requested a review from akowalska622 November 27, 2024 14:47
@kertal kertal enabled auto-merge (squash) November 28, 2024 08:21
@kertal kertal merged commit d3727a5 into elastic:main Nov 28, 2024
9 checks passed
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x

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

@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] Jest Tests #14 / CancelCreationConfirmationModal calls onConfirm

Metrics [docs]

✅ unchanged

History

cc @kertal

@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.x

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 Nov 28, 2024
# Backport

This will backport the following commits from `main` to `8.x`:
- [[Discover][UnifiedDataTable] Fix flaky jest
test](#201754)

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

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

<!--BACKPORT [{"author":{"name":"Matthias
Wilhelm","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-28T10:19:07Z","message":"[Discover][UnifiedDataTable]
Fix flaky jest test\n\nPreventing a flaky jest test by adding waitFor
functionality","sha":"d3727a5342e54aaa79586921d0e1b12498c1c7be","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Discover","release_note:skip","v9.0.0","Team:DataDiscovery","backport:prev-minor","Feature:UnifiedDataTable"],"title":"[Discover][UnifiedDataTable]
Attempt to fix flaky jest
test","number":201754,"url":"https://github.com/elastic/kibana/pull/201754","mergeCommit":{"message":"[Discover][UnifiedDataTable]
Fix flaky jest test\n\nPreventing a flaky jest test by adding waitFor
functionality","sha":"d3727a5342e54aaa79586921d0e1b12498c1c7be"}},"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/201754","number":201754,"mergeCommit":{"message":"[Discover][UnifiedDataTable]
Fix flaky jest test\n\nPreventing a flaky jest test by adding waitFor
functionality","sha":"d3727a5342e54aaa79586921d0e1b12498c1c7be"}}]}]
BACKPORT-->

Co-authored-by: Matthias Wilhelm <[email protected]>
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:Discover Discover Application Feature:UnifiedDataTable release_note:skip Skip the PR/issue when compiling release notes Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. v8.18.0 v9.0.0
Projects
None yet
5 participants