Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.10] Simplify test code, reenable skipped suite (elastic#163158) (e…
…lastic#165333) # Backport This will backport the following commits from `main` to `8.10`: - [Simplify test code, reenable skipped suite (elastic#163158)](elastic#163158) <!--- Backport version: 8.9.7 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Gerard Soldevila","email":"[email protected]"},"sourceCommit":{"committedDate":"2023-08-31T13:09:19Z","message":"Simplify test code, reenable skipped suite (elastic#163158)\n\nAttempt at fixing https://github.com/elastic/kibana/issues/149611\r\n\r\nI updated the test code as follows:\r\n* Removed the RxJS logic and simply factorised the reads to read only\r\nonce.\r\n* Got rid of the \"retry\" service. There's already a mechanism in place\r\nto make sure the logs are up-to-date.\r\n* Updated the `setCommonlyUsedTime` method to make sure it awaits for\r\nthe popup to be ready before clicking.\r\n* Skipped 4 tests that seem outdated, the logs don't have the related\r\nentries even after waiting for more than one minute and flushing (in\r\nfact, they all seem to systematically fail on `main` too):\r\n * lnsLegacyMetric\r\n * [Flights] Delays & Cancellations\r\n * [Flights] Destination Weather\r\n * [Flights] Delay Buckets\r\n\r\nAttached is the generated\r\n[kibana.log](https://github.com/elastic/kibana/files/12260144/kibana.log)\r\n(focussing only the `browser.ts` tests).\r\n\r\nSo for the skipped tests, this does not look like flakiness anymore, but\r\nrather outdated / incorrect checks. I propose we review and update them\r\non a separate issue / PR.\r\n\r\n50 runs results\r\n[here](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/3026).","sha":"a62d9a90f53c6ebec48d4982393c637cc73c26ac","branchLabelMapping":{"^v8.11.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","test-failure-flaky","backport:prev-minor","v8.11.0"],"number":163158,"url":"https://github.com/elastic/kibana/pull/163158","mergeCommit":{"message":"Simplify test code, reenable skipped suite (elastic#163158)\n\nAttempt at fixing https://github.com/elastic/kibana/issues/149611\r\n\r\nI updated the test code as follows:\r\n* Removed the RxJS logic and simply factorised the reads to read only\r\nonce.\r\n* Got rid of the \"retry\" service. There's already a mechanism in place\r\nto make sure the logs are up-to-date.\r\n* Updated the `setCommonlyUsedTime` method to make sure it awaits for\r\nthe popup to be ready before clicking.\r\n* Skipped 4 tests that seem outdated, the logs don't have the related\r\nentries even after waiting for more than one minute and flushing (in\r\nfact, they all seem to systematically fail on `main` too):\r\n * lnsLegacyMetric\r\n * [Flights] Delays & Cancellations\r\n * [Flights] Destination Weather\r\n * [Flights] Delay Buckets\r\n\r\nAttached is the generated\r\n[kibana.log](https://github.com/elastic/kibana/files/12260144/kibana.log)\r\n(focussing only the `browser.ts` tests).\r\n\r\nSo for the skipped tests, this does not look like flakiness anymore, but\r\nrather outdated / incorrect checks. I propose we review and update them\r\non a separate issue / PR.\r\n\r\n50 runs results\r\n[here](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/3026).","sha":"a62d9a90f53c6ebec48d4982393c637cc73c26ac"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v8.11.0","labelRegex":"^v8.11.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/163158","number":163158,"mergeCommit":{"message":"Simplify test code, reenable skipped suite (elastic#163158)\n\nAttempt at fixing https://github.com/elastic/kibana/issues/149611\r\n\r\nI updated the test code as follows:\r\n* Removed the RxJS logic and simply factorised the reads to read only\r\nonce.\r\n* Got rid of the \"retry\" service. There's already a mechanism in place\r\nto make sure the logs are up-to-date.\r\n* Updated the `setCommonlyUsedTime` method to make sure it awaits for\r\nthe popup to be ready before clicking.\r\n* Skipped 4 tests that seem outdated, the logs don't have the related\r\nentries even after waiting for more than one minute and flushing (in\r\nfact, they all seem to systematically fail on `main` too):\r\n * lnsLegacyMetric\r\n * [Flights] Delays & Cancellations\r\n * [Flights] Destination Weather\r\n * [Flights] Delay Buckets\r\n\r\nAttached is the generated\r\n[kibana.log](https://github.com/elastic/kibana/files/12260144/kibana.log)\r\n(focussing only the `browser.ts` tests).\r\n\r\nSo for the skipped tests, this does not look like flakiness anymore, but\r\nrather outdated / incorrect checks. I propose we review and update them\r\non a separate issue / PR.\r\n\r\n50 runs results\r\n[here](https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/3026).","sha":"a62d9a90f53c6ebec48d4982393c637cc73c26ac"}}]}] BACKPORT--> Co-authored-by: Gerard Soldevila <[email protected]>
- Loading branch information