Commit 3c3c567
# Backport
This will backport the following commits from `main` to `8.19`:
- [Improve rolling appender test logic
(#242095)](#242095)
<!--- Backport version: 9.6.6 -->
### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)
<!--BACKPORT [{"author":{"name":"Gerard
Soldevila","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-11-07T13:27:52Z","message":"Improve
rolling appender test logic (#242095)\n\n## Summary\n\nCloses
https://github.com/elastic/kibana/issues/232893\n\nThe previous
improvements were not enough,
[latest\nfailure](https://buildkite.com/elastic/kibana-on-merge/builds/81112/steps/canvas?jid=019a4a9c-77de-450f-a4e8-70d4efc34012)\nshows
that we can't guarantee how many times the rolling logic has
run:\n\n<img width=\"846\" height=\"272\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/9ccaac11-92bb-42cf-8b5a-60fd258c23d9\"\n/>\n\nThe
PR makes the test even more resilient by not assuming that the\nrolling
logid has run exactly twice, and instead it just makes\nassertions that
are valid for the 2 scenarios:\n* Assert there are multiple log files
(rollover has happened).\n* Assert that the rolled files are not
empty\n* Assert that when concatenating all log files in an ordered
fashion, no\nlog entries are
lost.","sha":"11a9589ea8068a734dcd0eb9845d462ab73330e2","branchLabelMapping":{"^v9.3.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Team:Core","release_note:skip","test-failure-flaky","backport:all-open","v9.3.0"],"title":"Improve
rolling appender test
logic","number":242095,"url":"https://github.com/elastic/kibana/pull/242095","mergeCommit":{"message":"Improve
rolling appender test logic (#242095)\n\n## Summary\n\nCloses
https://github.com/elastic/kibana/issues/232893\n\nThe previous
improvements were not enough,
[latest\nfailure](https://buildkite.com/elastic/kibana-on-merge/builds/81112/steps/canvas?jid=019a4a9c-77de-450f-a4e8-70d4efc34012)\nshows
that we can't guarantee how many times the rolling logic has
run:\n\n<img width=\"846\" height=\"272\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/9ccaac11-92bb-42cf-8b5a-60fd258c23d9\"\n/>\n\nThe
PR makes the test even more resilient by not assuming that the\nrolling
logid has run exactly twice, and instead it just makes\nassertions that
are valid for the 2 scenarios:\n* Assert there are multiple log files
(rollover has happened).\n* Assert that the rolled files are not
empty\n* Assert that when concatenating all log files in an ordered
fashion, no\nlog entries are
lost.","sha":"11a9589ea8068a734dcd0eb9845d462ab73330e2"}},"sourceBranch":"main","suggestedTargetBranches":[],"targetPullRequestStates":[{"branch":"main","label":"v9.3.0","branchLabelMappingKey":"^v9.3.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/242095","number":242095,"mergeCommit":{"message":"Improve
rolling appender test logic (#242095)\n\n## Summary\n\nCloses
https://github.com/elastic/kibana/issues/232893\n\nThe previous
improvements were not enough,
[latest\nfailure](https://buildkite.com/elastic/kibana-on-merge/builds/81112/steps/canvas?jid=019a4a9c-77de-450f-a4e8-70d4efc34012)\nshows
that we can't guarantee how many times the rolling logic has
run:\n\n<img width=\"846\" height=\"272\"
alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/9ccaac11-92bb-42cf-8b5a-60fd258c23d9\"\n/>\n\nThe
PR makes the test even more resilient by not assuming that the\nrolling
logid has run exactly twice, and instead it just makes\nassertions that
are valid for the 2 scenarios:\n* Assert there are multiple log files
(rollover has happened).\n* Assert that the rolled files are not
empty\n* Assert that when concatenating all log files in an ordered
fashion, no\nlog entries are
lost.","sha":"11a9589ea8068a734dcd0eb9845d462ab73330e2"}}]}] BACKPORT-->
Co-authored-by: Gerard Soldevila <[email protected]>
1 parent cc8d592 commit 3c3c567
File tree
1 file changed
+18
-10
lines changed- src/core/server/integration_tests/logging
1 file changed
+18
-10
lines changedLines changed: 18 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
307 | 307 | | |
308 | 308 | | |
309 | 309 | | |
| 310 | + | |
| 311 | + | |
310 | 312 | | |
311 | 313 | | |
312 | 314 | | |
313 | 315 | | |
314 | | - | |
315 | | - | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
316 | 326 | | |
317 | 327 | | |
318 | | - | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
326 | 334 | | |
327 | 335 | | |
328 | 336 | | |
0 commit comments