-
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
[FTRs] Execution Context: fix no data flakiness #149406
Conversation
Pinging @elastic/kibana-core (Team:Core) |
💚 Build Succeeded
Metrics [docs]
To update your PR or re-run it, just comment with: cc @afharo |
💔 All backports failed
Manual backportTo create the backport manually run:
Questions ?Please refer to the Backport tool documentation |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
Resolves elastic#112102 (cherry picked from commit 09c1113) # Conflicts: # x-pack/test/functional_execution_context/tests/browser.ts
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
* main: (54 commits) [APM] Allow calling `createInternalESClient` without `context` (elastic#149320) [Synthetics] Errors list active state (elastic#149387) [FTRs] Execution Context: fix no data flakiness (elastic#149406) [Cloud Posture] - Deprecate csp rule remove migration object (elastic#148530) Bump elasticsearch-js to 8.6.0-canary.3 (elastic#148521) [Fleet] Use optimistic locking when updating `installed_es` on input package policy creation (elastic#148883) [ML] Remove job_type from job definitions in modules (elastic#149247) [ML] Consolidate `query_utils` into package `@kbn/ml-query-utils` (elastic#149224) [Synthetics] Better formatting for waterfall timeline tooltips (elastic#149142) [Cloud Posture] CIS AWS support - changes to findings tables (elastic#148945) [Lens] Enable previous time shift when using a date histogram (elastic#149126) [Synthetics] Object types panel and thresholds (elastic#149099) [Fleet] added back batch exec for update tags (elastic#148618) 148790 - Fix scroll style for setup guide flyout (elastic#149242) Fix a11y issue with dev tool tabs (elastic#149349) [APM] Fix mobile indices (elastic#149230) [Dashboard] Fix Phrase_filter query for scripted fields (elastic#148942) (elastic#148943) renderCustomActionsRow with named params instead of args (elastic#149304) [ML] Adding ML execution context to es requests (elastic#148746) [Custom Branding] Replace EuiLoadingElastic with EuiLoadingSpinner (elastic#149261) ...
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
Resolves elastic#112102 (cherry picked from commit 09c1113) # Conflicts: # x-pack/test/functional_execution_context/tests/browser.ts
…9417) # Backport This will backport the following commits from `main` to `7.17`: - [[FTRs] Execution Context: fix no data flakiness (#149406)](#149406) <!--- Backport version: 8.9.7 --> ### 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":"2023-01-24T14:03:37Z","message":"[FTRs] Execution Context: fix no data flakiness (#149406)\n\nResolves https://github.com/elastic/kibana/issues/112102","sha":"09c11131271bec1b794d5a472294e6e125116f4d","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","backport:all-open","v8.7.0"],"number":149406,"url":"https://github.com/elastic/kibana/pull/149406","mergeCommit":{"message":"[FTRs] Execution Context: fix no data flakiness (#149406)\n\nResolves https://github.com/elastic/kibana/issues/112102","sha":"09c11131271bec1b794d5a472294e6e125116f4d"}},"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/149406","number":149406,"mergeCommit":{"message":"[FTRs] Execution Context: fix no data flakiness (#149406)\n\nResolves https://github.com/elastic/kibana/issues/112102","sha":"09c11131271bec1b794d5a472294e6e125116f4d"}}]}] BACKPORT-->
Looks like this PR has backport PRs but they still haven't been merged. Please merge them ASAP to keep the branches relatively in sync. |
) # Backport This will backport the following commits from `main` to `8.6`: - [[FTRs] Execution Context: fix no data flakiness (#149406)](#149406) <!--- Backport version: 8.9.7 --> ### 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":"2023-01-24T14:03:37Z","message":"[FTRs] Execution Context: fix no data flakiness (#149406)\n\nResolves https://github.com/elastic/kibana/issues/112102","sha":"09c11131271bec1b794d5a472294e6e125116f4d","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","backport:all-open","v8.7.0"],"number":149406,"url":"https://github.com/elastic/kibana/pull/149406","mergeCommit":{"message":"[FTRs] Execution Context: fix no data flakiness (#149406)\n\nResolves https://github.com/elastic/kibana/issues/112102","sha":"09c11131271bec1b794d5a472294e6e125116f4d"}},"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/149406","number":149406,"mergeCommit":{"message":"[FTRs] Execution Context: fix no data flakiness (#149406)\n\nResolves https://github.com/elastic/kibana/issues/112102","sha":"09c11131271bec1b794d5a472294e6e125116f4d"}},{"url":"https://github.com/elastic/kibana/pull/149417","number":149417,"branch":"7.17","state":"OPEN"}]}] BACKPORT-->
Summary
Resolves #112102 (hopefully)
Another race condition in the tests was that no data was found when loading discover, so the charts were not requested. This PR extends the datepicker to the last 7 days (instead of the last 15 days).
On top of that, it makes sure that each assertion is an individual test, so we have better insight into which assertion failed.
Flaky Test runner (x100): https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/1781
Checklist
For maintainers