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

Itermittent failure - archetype build (FT timeout) #4688

Closed
tomas-langer opened this issue Aug 8, 2022 · 1 comment
Closed

Itermittent failure - archetype build (FT timeout) #4688

tomas-langer opened this issue Aug 8, 2022 · 1 comment
Assignees

Comments

@tomas-langer
Copy link
Member

The file archetypes/helidon/src/main/archetype/se/custom/files/src/main/java/__pkg__/FtService.java.mustache defines timeout to be 100 milliseconds
The file archetypes/helidon/src/main/archetype/se/custom/files/src/test/java/__pkg__/FtServiceTest.java.mustache defines a test that

  • checks that a sleep of 50 ms passes
  • checks that a sleep of 150 ms times out
    The lambda is too small - on a slower environment, we can timeout the first request, and succeed the second one (which is happening in our pipelines sometimes).

We should have diffs of at least 5 seconds

  • set timeout to 5 seconds
  • check with 50 ms sleep (success)
  • check with 10 seconds sleep (timeout)

This should be a sufficient buffer for our pipeline tests.

Please make sure there isn't another test in Helidon examples or integration test with similar issues.

@tvallin
Copy link
Member

tvallin commented Sep 27, 2022

Fixed by #4690 in main branch and backport to 3.x here #4934

@tvallin tvallin closed this as completed Sep 27, 2022
@m0mus m0mus added this to Backlog Aug 12, 2024
@m0mus m0mus moved this to Closed in Backlog Aug 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

2 participants