Skip to content

another attempt for more ca problems reproduction#3700

Open
cdietrich wants to merge 11 commits into
mainfrom
cd-flaky-flaky-flaky
Open

another attempt for more ca problems reproduction#3700
cdietrich wants to merge 11 commits into
mainfrom
cd-flaky-flaky-flaky

Conversation

@cdietrich
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 6, 2026

Test Results

  8 076 files  ±0    8 076 suites  ±0   3h 47m 25s ⏱️ + 16m 39s
 43 241 tests ±0   42 655 ✅ ±0    586 💤 ±0  0 ❌ ±0 
212 460 runs  ±0  209 529 ✅ ±0  2 931 💤 ±0  0 ❌ ±0 

Results for commit 464e510. ± Comparison against base commit 043223e.

♻️ This comment has been updated with latest results.

@cdietrich
Copy link
Copy Markdown
Contributor Author

@LorenzoBettini wdyt about this holzhammer change

@cdietrich cdietrich requested a review from LorenzoBettini May 12, 2026 04:48
Copy link
Copy Markdown
Contributor

@LorenzoBettini LorenzoBettini left a comment

Choose a reason for hiding this comment

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

I seem to understand that this does not fix the problem for good. The last but one commit still has a failure, hasn't it?

Feel free to merge, but I think this just increases chances to avoid flakiness due to delays...

It might still be good to extract some methods into our testing library or maybe add some of the wait conditions in waitForBuild itself.

@cdietrich
Copy link
Copy Markdown
Contributor Author

@LorenzoBettini well i had 20 green runs on ci and the one failing was not in the content assist test
which failure are you referring too

and no i dont have time to refactor. i need to use that time to sleep :(

@LorenzoBettini
Copy link
Copy Markdown
Contributor

OK, please feel free to merge. And thanks for all the work. :)

As I said, all the operations about waiting and so on don't make sense to me. I mean, I don't understand them; I only think they delay the execution, reducing the likelihood of flakiness.

Retrying the search in the JDT index, after specifying that we want the index to be ready, also doesn't make sense: if we need to retry the query, it means there's a bug in JDT.

I think Eclipse, JDT, PDE just don't provide reliable synchronization mechanisms for testing purposes and do tons of things asynchronously. Unfortunately, in our IDE tests, we "stress" all these mechanisms a lot ;)

cc @szarnekow

@cdietrich
Copy link
Copy Markdown
Contributor Author

so the alternative would be to delete all flaky tests

@LorenzoBettini
Copy link
Copy Markdown
Contributor

so the alternative would be to delete all flaky tests

No: what I suggested in the ticket was to re-enable the surefire rerun option ONLY in test projects that exhibit flakiness.

But, as I said, let's keep this and merge it, since it contains interesting code and experiments that might be used in the future in the testing library.

In the future, we could also think of a more involved waitForBuildAndAssert(Runnable r) that

  • calls the original waitForBuild
  • calls the runnable in a try catch catching a possible AssertionError
  • in case, retry after some delay and for a limited number of times.

Including some additional utilities like waitForBuildAndAssertNoErrors, which calls waitForBuildAndAssert(Runnable r) passing a lambda that checks there are no errors in the workspace.

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