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

Retry example integration tests that didn't finish after 5 minutes #3125

Merged
merged 3 commits into from
Apr 23, 2024

Conversation

lefou
Copy link
Member

@lefou lefou commented Apr 19, 2024

The idea is, that our example integration tests should finish after a short period of time. But sometimes then hang in CI, so we simply abort and retry them automatically, instaed of manually.

The hardcoded timeout of 5 minutes is just a guess. I want to see the CI results. Maybe, we can make it configurable per test suite.

The idea is, that our example integration tests should finish after a short period of time. But sometimes then hang in CI, so we simply abort and retry them automatically, instaed of manually.

The hardcoded timeout of 5 minutes is just a guess. I want to see the CI results. Maybe, we can make it configurable per test suite.
@lolgab
Copy link
Member

lolgab commented Apr 20, 2024

The problem with this approach is that the Future is not cancelled, so the other runs will run concurrently with the first.

@lefou
Copy link
Member Author

lefou commented Apr 20, 2024

The problem with this approach is that the Future is not cancelled, so the other runs will run concurrently with the first.

How about using a Java future, which is cancellable?

@lolgab
Copy link
Member

lolgab commented Apr 20, 2024

I'm not very familiar with it, but if it's cancelable it is better, yes. Otherwise you need to run a Thread and handle it manually.

@lefou lefou merged commit d10e3c8 into main Apr 23, 2024
38 checks passed
@lefou lefou deleted the itest-timeout branch April 23, 2024 15:39
@lefou lefou added this to the 0.11.8 milestone Apr 23, 2024
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.

2 participants