ktorio / ktorio/ktor

Flaky: JettyEngineHttp2SustainabilityTest.testBigFile timeout

Open
#5,474 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
14.5k
Forks
1.3k
Avg merge
2d 13h
Merged PRs (30d)
49

Description

## Root cause

The test `io.ktor.tests.server.jetty.http2.jakarta.JettyEngineHttp2SustainabilityTest.testBigFile()` intermittently times out on JVM after 1 minute.

**Error:** `kotlinx.coroutines.test.UncompletedCoroutinesError: After waiting for 1m, the test body did not run to completion`

This appears to be a sustainability/load test that occasionally cannot complete within the coroutine test timeout, likely due to CI resource contention or Jetty HTTP/2 flow control under load.

## Reproduction

Seen in TeamCity Build All Core:
- https://ktor.teamcity.com/buildConfiguration/Ktor_KtorCore_All/412044 (PR branch)

## Impact

Intermittent failure on CI that can block unrelated PRs.

Contributor guide

Open the contributing guide

Research direction

Start with io.ktor.tests.server.jetty.http2.jakarta.JettyEngineHttp2SustainabilityTest.testBigFile() and reproduce the timeout in the TeamCity Build All Core configuration or locally. Investigate the one-minute coroutine timeout and the Jetty HTTP/2 sustainability test under load; done means the test completes reliably without intermittently blocking CI.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.