Skip to content

[9.2] Fixes flaky serverless reporting tests (#244993)#245258

Merged
kibanamachine merged 1 commit into
elastic:9.2from
kibanamachine:backport/9.2/pr-244993
Dec 4, 2025
Merged

[9.2] Fixes flaky serverless reporting tests (#244993)#245258
kibanamachine merged 1 commit into
elastic:9.2from
kibanamachine:backport/9.2/pr-244993

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.2:

Questions ?

Please refer to the Backport tool documentation

Fixes elastic#237285

## Summary

The serverless version of these tests were failing with `Response
aborted while reading the body` errors, which means the report is
short-circuiting before completing. I noticed a previous change
elastic#185878 to increase the time the
test waits for a report to `10m` however, the queue timeout for
reporting was still set to the default `4m` so this increases the queue
timeout for reporting to `10m` in these tests to give it more time to
complete.

This should also address the following tests (all failed due to
`Response aborted while reading the body`):
- elastic#244269
- elastic#238317
- elastic#238182
- elastic#236220

Flaky test runner runs:
There were some failures but seem unrelated...

```

2025-12-02 22:03:51 UTC | ERROR UNHANDLED ERROR
-- | --
2025-12-02 22:03:51 UTC | ERROR ResponseError: index_not_found_exception
2025-12-02 22:03:51 UTC | Root causes:
2025-12-02 22:03:51 UTC | index_not_found_exception: no such index [.kibana-event-log-ds]
2025-12-02 22:03:51 UTC | at SniffingTransport._request (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1764712453512576396/elastic/kibana-flaky-test-suite-runner/kibana/node_modules/@elastic/elasticsearch/node_modules/@elastic/transport/src/Transport.ts:591:17)
2025-12-02 22:03:51 UTC | at processTicksAndRejections (node:internal/process/task_queues:105:5)
2025-12-02 22:03:51 UTC | at /opt/buildkite-agent/builds/bk-agent-prod-gcp-1764712453512576396/elastic/kibana-flaky-test-suite-runner/kibana/node_modules/@elastic/elasticsearch/node_modules/@elastic/transport/src/Transport.ts:697:22
2025-12-02 22:03:51 UTC | at SniffingTransport.request (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1764712453512576396/elastic/kibana-flaky-test-suite-runner/kibana/node_modules/@elastic/elasticsearch/node_modules/@elastic/transport/src/Transport.ts:694:14)
2025-12-02 22:03:51 UTC | at Indices.putSettings (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1764712453512576396/elastic/kibana-flaky-test-suite-runner/kibana/node_modules/@elastic/src/api/api/indices.ts:3529:12)
2025-12-02 22:03:51 UTC | at putFastRefreshSettings (es.ts:54:5)
2025-12-02 22:03:51 UTC | at es.ts:142:5
2025-12-02 22:03:51 UTC | at lifecycle_phase.ts:77:11
2025-12-02 22:03:51 UTC | at async Promise.all (index 2)
2025-12-02 22:03:51 UTC | at LifecyclePhase.trigger (lifecycle_phase.ts:74:5)
2025-12-02 22:03:51 UTC | at functional_test_runner.ts:115:9
2025-12-02 22:03:51 UTC | at FunctionalTestRunner.runHarness (functional_test_runner.ts:267:14)
2025-12-02 22:03:51 UTC | at FunctionalTestRunner.run (functional_test_runner.ts:49:12)
2025-12-02 22:03:51 UTC | at runFtr (run_ftr.ts:24:24)
2025-12-02 22:03:51 UTC | at run_tests.ts:180:11
2025-12-02 22:03:51 UTC | at withProcRunner (with_proc_runner.ts:30:5)
2025-12-02 22:03:51 UTC | at run_tests.ts:105:7
2025-12-02 22:03:51 UTC | at tooling_log.ts:95:18
2025-12-02 22:03:51 UTC | at runTests (run_tests.ts:67:5)
2025-12-02 22:03:51 UTC | at description (cli.ts:25:7)
2025-12-02 22:03:51 UTC | at run.ts:69:10
2025-12-02 22:03:51 UTC | at withProcRunner (with_proc_runner.ts:30:5)
2025-12-02 22:03:51 UTC | at run (run.ts:67:5)
```

-
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9963

Co-authored-by: Dzmitry Lemechko <dzmitry.lemechko@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
(cherry picked from commit 58886b6)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Dec 4, 2025
@kibanamachine kibanamachine enabled auto-merge (squash) December 4, 2025 15:23
@kibanamachine kibanamachine merged commit 9b7dc5e into elastic:9.2 Dec 4, 2025
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants