Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[8.7] [Kibana migrator test kit] Flush logger after running migrations (
#152818) (#152890) # Backport This will backport the following commits from `main` to `8.7`: - [[Kibana migrator test kit] Flush logger after running migrations (#152818)](#152818) <!--- 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-03-07T17:57:17Z","message":"[Kibana migrator test kit] Flush logger after running migrations (#152818)\n\nThis PR addresses flakiness of:\r\n\r\n- https://github.com/elastic/kibana/issues/152472\r\n- https://github.com/elastic/kibana/issues/152448\r\n\r\nThese tests fail because we have a race condition. We are checking\r\ncertain conditions in the log files, and sometimes we do it before the\r\nlogs are actually written.\r\n\r\nWith the Kibana migrator test kit, we can actually flush + wait for all\r\nthe logging appenders. This way, we are sure that the logs are complete\r\nwhen we inspect them in the tests.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"163dae7154c11d92ff148bc6ac45cbea54680769","branchLabelMapping":{"^v8.8.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","Team:Core","release_note:skip","test-failure-flaky","Feature:Migrations","backport:prev-minor","v8.7.0","v8.8.0"],"number":152818,"url":"https://github.com/elastic/kibana/pull/152818","mergeCommit":{"message":"[Kibana migrator test kit] Flush logger after running migrations (#152818)\n\nThis PR addresses flakiness of:\r\n\r\n- https://github.com/elastic/kibana/issues/152472\r\n- https://github.com/elastic/kibana/issues/152448\r\n\r\nThese tests fail because we have a race condition. We are checking\r\ncertain conditions in the log files, and sometimes we do it before the\r\nlogs are actually written.\r\n\r\nWith the Kibana migrator test kit, we can actually flush + wait for all\r\nthe logging appenders. This way, we are sure that the logs are complete\r\nwhen we inspect them in the tests.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"163dae7154c11d92ff148bc6ac45cbea54680769"}},"sourceBranch":"main","suggestedTargetBranches":["8.7"],"targetPullRequestStates":[{"branch":"8.7","label":"v8.7.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.8.0","labelRegex":"^v8.8.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/152818","number":152818,"mergeCommit":{"message":"[Kibana migrator test kit] Flush logger after running migrations (#152818)\n\nThis PR addresses flakiness of:\r\n\r\n- https://github.com/elastic/kibana/issues/152472\r\n- https://github.com/elastic/kibana/issues/152448\r\n\r\nThese tests fail because we have a race condition. We are checking\r\ncertain conditions in the log files, and sometimes we do it before the\r\nlogs are actually written.\r\n\r\nWith the Kibana migrator test kit, we can actually flush + wait for all\r\nthe logging appenders. This way, we are sure that the logs are complete\r\nwhen we inspect them in the tests.\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine <[email protected]>","sha":"163dae7154c11d92ff148bc6ac45cbea54680769"}}]}] BACKPORT-->
- Loading branch information