Skip to content

Fix flaky ensureCleanUpAddonCleansUp test#3786

Open
vogella wants to merge 2 commits intoeclipse-platform:masterfrom
vogella:fix-flaky-cleanup-addon-test-v2
Open

Fix flaky ensureCleanUpAddonCleansUp test#3786
vogella wants to merge 2 commits intoeclipse-platform:masterfrom
vogella:fix-flaky-cleanup-addon-test-v2

Conversation

@vogella
Copy link
Contributor

@vogella vogella commented Mar 17, 2026

Summary

  • Adds spinEventLoop() between the two hidePart() calls to drain pending events before the second hide
  • This ensures a clean event queue when CleanupAddon's asyncExec is queued for visCount==0
  • Replaces the 30-second DisplayHelper.waitForCondition polling with a deterministic event drain
  • Removes now-unused DisplayHelper import

Depends on #3785 (revert of the synchronous cleanup change)

Test plan

  • Verify ensureCleanUpAddonCleansUp passes consistently (no longer flaky)
  • Verify closing the Welcome screen does not produce an empty area

Fixes #3581

🤖 Generated with Claude Code

trancexpress and others added 2 commits March 17, 2026 10:31
Add spinEventLoop() between the two hidePart() calls to drain pending
events before the second hide. This ensures a clean event queue when
CleanupAddon's asyncExec is queued for visCount==0, replacing the
30-second DisplayHelper.waitForCondition polling with a deterministic
event drain.

Fixes eclipse-platform#3581
@vogella
Copy link
Contributor Author

vogella commented Mar 17, 2026

Next try to stabilize the test, based on the revert from @trancexpress (will rebase once the revert is merged).

@github-actions
Copy link
Contributor

Test Results

   852 files  ±0     852 suites  ±0   54m 8s ⏱️ +12s
 7 848 tests ±0   7 605 ✅ ±0  243 💤 ±0  0 ❌ ±0 
20 070 runs  ±0  19 414 ✅ ±0  656 💤 ±0  0 ❌ ±0 

Results for commit dd7da4b. ± Comparison against base commit 4be6061.

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.

PartRenderingEngineTests.ensureCleanUpAddonCleansUp still fails randomly

2 participants