synchronously register embeddables and actions to fix race condition causing flaky add panel test#268218
Conversation
|
/ci |
|
/ci |
| 'annotation-and-navigationGroup', | ||
| 'mlGroup', | ||
| 'logs-aiopsGroup', | ||
| 'mlGroup', |
|
/ci |
Flaky Test Runner Stats🟠 Some tests failed. - kibana-flaky-test-suite-runner#12168[❌] src/platform/plugins/shared/dashboard/test/scout/ui/parallel.playwright.config.ts (--arch stateful --domain classic): 0/50 tests passed. |
|
/ci |
|
/ci |
|
/ci |
| loadTestFile(require.resolve('./dashboard_settings')); | ||
| loadTestFile(require.resolve('./data_shared_attributes')); | ||
| loadTestFile(require.resolve('./dashboard_back_button')); | ||
| loadTestFile(require.resolve('./dashboard_panel_listing')); |
There was a problem hiding this comment.
removed dashboard_panel_listing because it tests the same features covered by src/platform/plugins/shared/dashboard/test/scout/ui/parallel_tests/dashboard_add_panel_flyout.spec.ts
|
/ci |
Flaky Test Runner Stats🎉 All tests passed! - kibana-flaky-test-suite-runner#12180[✅] src/platform/plugins/shared/dashboard/test/scout/ui/parallel.playwright.config.ts (--arch stateful --domain classic): 25/25 tests passed. |
|
Pinging @elastic/kibana-presentation (Team:Presentation) |
baileycash-elastic
left a comment
There was a problem hiding this comment.
actionable obs changes lgtm, tested locally
|
Pinging @elastic/obs-presentation-team (Team:obs-presentation) |
iblancof
left a comment
There was a problem hiding this comment.
obs-exploration code changesLGTM
|
I had already created a very similar PR for ML's AIOps plugin earlier this week which has now been merged. |
Thanks for the heads up. I have removed all aiops changes |
| alerting: 22371 | ||
| alertingVTwo: 76778 | ||
| apm: 27979 | ||
| apm: 28027 |
There was a problem hiding this comment.
Increase expected because plugin was async importing ./embeddable/register_embeddables during setup method. This PR replaced the async import with a sync import to better reflect the actual page load metrics
rmyz
left a comment
There was a problem hiding this comment.
obs-presentation changes LGTM
ThomThomson
left a comment
There was a problem hiding this comment.
Presentation team Changes LGTM! Code only review
| constructor() {} | ||
|
|
||
| public setup(core: CoreSetup<LinksStartDependencies>, plugins: LinksSetupDependencies) { | ||
| core.getStartServices().then(([_, deps]) => { |
There was a problem hiding this comment.
Great to see this removed. No reason to get start contracts when they aren't used.
dmlemeshko
left a comment
There was a problem hiding this comment.
kbn/scout changes LGTM
|
Approved, but you would need to have to update the RSPack |
Asked in slack about how to determine RSPack limits and received the answer "However, I would probably not require those updates, because that’s currently out of band, it’s an alternative, so we can’t keep prompting devs to update it" With this prompt, I will leave RSPack limits unchanged |
💛 Build succeeded, but was flaky
Failed CI Steps
Test Failures
Metrics [docs]Module Count
Async chunks
Page load bundle
Unknown metric groupsAPI count
async chunk count
ESLint disabled line counts
References to deprecated APIs
Total ESLint disabled count
Unreferenced deprecated APIs
History
|
…causing flaky add panel test (#268218) Closes #268101 Flaky test runner https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/12180 The reason for flaky tests is that plugins are registering actions asynchronously. This introduces a race condition where `ADD_PANEL_TRIGGER` actions may not be registered before Dashboard's "add panel" menu is rendered. PR resolves the race condition by registering embeddables and actions synchronously. PR tries to prevent issue like this from being re-introduced by throwing on embeddable registration after start method is run. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
…causing flaky add panel test (elastic#268218) Closes elastic#268101 Flaky test runner https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/12180 The reason for flaky tests is that plugins are registering actions asynchronously. This introduces a race condition where `ADD_PANEL_TRIGGER` actions may not be registered before Dashboard's "add panel" menu is rendered. PR resolves the race condition by registering embeddables and actions synchronously. PR tries to prevent issue like this from being re-introduced by throwing on embeddable registration after start method is run. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>

Closes #268101
Flaky test runner https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/12180
The reason for flaky tests is that plugins are registering actions asynchronously. This introduces a race condition where
ADD_PANEL_TRIGGERactions may not be registered before Dashboard's "add panel" menu is rendered.PR resolves the race condition by registering embeddables and actions synchronously.
PR tries to prevent issue like this from being re-introduced by throwing on embeddable registration after start method is run.