unskip add panel flyout tests#267973
Conversation
|
/ci |
|
/ci |
|
/ci |
|
/ci |
|
/ci |
|
/ci |
|
/ci |
|
Pinging @elastic/kibana-presentation (Team:Presentation) |
ThomThomson
left a comment
There was a problem hiding this comment.
Presentation team test only changes LGTM!
💛 Build succeeded, but was flaky
Failed CI Steps
Test Failures
Metrics [docs]
History
|
|
The flakiness is still there :( |
Yes, I can confirm. cc @nreese |
|
I've created #268197 UPDATE: my PR above has different failures on the same suite: so there's more than 1 source of flakiness UPDATE2: I've updated #268197 to cover the 2nd case. |
Another instance of async action registration, these time in aiops. I have opened #268218 to resolve While these flaky tests are annoying, they are exposing real race conditions in the product. I am running flaky test runner on the next fix to help limit impact on other teams. |
Closes #259443 and #259576
Problem
#267325 broke tests
dashboard_panel_listing.spec.tsanddashboard_panel_listing_obs_group.spec.ts. At the time #267325 merged, there was a bug in CI where CI did not run dashboard tests when code changes were not in dependency chain yet code changes affected registries and had a direct impact on dashboard runtime behavior.The reason the tests broke is that #267325 changed the order in which "Add panel" actions are registered. Before #267325, ml actions where registered async - so they got registered last. After #267325, ml actions where registered sync, so they go registered before some other actions.
Registration order mattered because there was a bug in
dashboard_panel_listing.spec.tsanddashboard_panel_listing_obs_group.spec.tstests. The logic to extractgroupsused a map withorderas the key. When there was a collision onorder, only the last value would be preserved. Changing the registration order changed which value survived the order collision.Code snippet showing how values where put into a map and a collision on
orderwould lose values.Image showing how 2 groups have the same order, thus altering test results after action registration race condition resolved. Notice values for

data-group-sort-order.Solution
PR resolves tests by replacing
getPanelGroupOrderwithgetAddPanelFlyoutGroupsand fixingordercollision bug.