Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to retry runTest on backend #4499

Merged
merged 8 commits into from
Nov 25, 2024
Merged

Add ability to retry runTest on backend #4499

merged 8 commits into from
Nov 25, 2024

Conversation

e5l
Copy link
Member

@e5l e5l commented Nov 21, 2024

No description provided.

@e5l e5l self-assigned this Nov 21, 2024
@e5l e5l requested a review from bjhham November 21, 2024 13:09
@e5l e5l marked this pull request as ready for review November 21, 2024 13:09
Copy link
Contributor

@bjhham bjhham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 👍

@e5l
Copy link
Member Author

e5l commented Nov 22, 2024

it looks like server is not restarted between repeats, let me check if I can fix it

@osipxd
Copy link
Member

osipxd commented Nov 22, 2024

This failure seems caused by the latest Tomcat update: #4470

@e5l
Copy link
Member Author

e5l commented Nov 22, 2024

Thanks, will check what has been changed

fun collectUnhandledException(error: Throwable) // TODO: better name?
fun runTest(block: suspend CoroutineScope.() -> Unit): TestResult
fun runTest(timeout: Duration, block: suspend CoroutineScope.() -> Unit): TestResult
fun runTest(timeout: Duration = 60.seconds, block: suspend CoroutineScope.() -> Unit): TestResult
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about such a big default timeout. Successful tests usually run faster.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you tell me if you have any value in mind?

Copy link
Member

@osipxd osipxd Nov 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to our Develocity statistics, 30 seconds should be enough for all tests. While most of the tests finish in less than 10 seconds, we have some tests taking ~20 seconds to finish.

TBH I thought about a smaller timeout? like 5 seconds, but statistics it won't be enough 😅
So this comment is optional to fix.

@e5l e5l merged commit d783338 into main Nov 25, 2024
14 checks passed
@e5l e5l deleted the e5l/linux-tests branch November 25, 2024 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants