-
Notifications
You must be signed in to change notification settings - Fork 91
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
Flaky tests: IT dev-test #1633
Comments
@scottkurz @cherylking Some other tests seem to fail, too. For example, in the current main build, there's this:
Sadly, it seems to be hard to execute the profile https://github.com/OpenLiberty/ci.maven/blob/main/.github/workflows/maven.yml#L59-L69 So, what's the next best way to proceed here? |
So, looking again at the tests, I see:
Now there's a catch here. I found
Same for |
…efire/failsafe 3.0.0
[#1633] set forkCount/resuseForks instead of forkMode; surefire/failsafe 3.0.0
It still managed to fail in the latest build of the https://github.com/OpenLiberty/ci.maven/actions/runs/4908575363/jobs/8764429807#step:8:9314
|
Yes, it's hard to verify for me. I cannot see the test, and the local arc runner takes ages. |
I just looked at: https://github.com/OpenLiberty/ci.maven/actions/runs/5252160439/jobs/9487879161?pr=1692
That strikes me as probably different than: #1633 (comment) I wonder how many different problems we might be dealing with. |
@cherylking so, the ITs are failing for some reason. My approach would be:
That is:
That should help. Do you want me to create an example PR with just one project moved over to its own module? |
@bmarwell Thank you for bringing this up. I'm not trying to suggest the current approach is the best conceivable one, but what's the main goal or improvement you're targeting here? Is it the ability to run the tests in parallel, for a shorter overall execution time? Are you saying the logs are easy to read and debug from?
I think that would help me understand the idea better. |
Actually, all of that. Easier to maintain is probably the most interesting part for you both, which comes with readability. Parallel execution would only be one of the additional benefits. |
Here's a starter: IF that worked (and it doesn't work with |
Hi!
Not sure it is related to maybe #1626 (PR not merged yet), but this test will sometimes fail:
DevTest.configIncludesChangeTest()
:Line 107 is:
replaceString("<feature>servlet-4.0</feature>", "<!-- replace -->", srcServerXMLIncludes);
Assuming we are looking at the wrong line now.
Looking at the test, it depends on timeouts:
boolean foundUpdate = verifyLogMessageExists("<feature>servlet-4.0</feature>", 60000, targetServerXMLIncludes);
… which is 60 seconds. Maybe you might want to use Awaitility here? It would give you a much nicer exception message "for free"..
It would read to:
(10 ms chosen randomly).
This would help to identify the actual problem.
The text was updated successfully, but these errors were encountered: