Skip to content

Dispose leftover shells in WorkbenchContextExtension cleanup#3894

Merged
vogella merged 1 commit intoeclipse-platform:masterfrom
vogella:fix/cleanup-shells-in-tests
Apr 16, 2026
Merged

Dispose leftover shells in WorkbenchContextExtension cleanup#3894
vogella merged 1 commit intoeclipse-platform:masterfrom
vogella:fix/cleanup-shells-in-tests

Conversation

@vogella
Copy link
Copy Markdown
Contributor

@vogella vogella commented Apr 16, 2026

Summary

  • Fixes shell accumulation in WorkbenchContextExtension test cleanup
  • wb.close() removes GUI for application windows but does not dispose shells created as side effects (e.g., PartRenderingEngine's limbo shell)
  • These leftover shells accumulate across test methods, causing many unexpected windows to open when running tests
  • Added explicit disposal of all remaining shells after wb.close() to ensure a clean state between test methods

See #3893

Test plan

  • Ran PartOnTopManagerTest (6 tests) — all pass
  • Ran all 10 test classes using WorkbenchContextExtension (182 tests) — no regressions (pre-existing failures in MWindowTest and PartRenderingEngineTests are unchanged)
  • Verified with trace logging that each test leaves behind a PartRenderingEngine's limbo shell that the new cleanup correctly disposes

The dispose() method calls wb.close() which removes GUI for
application windows, but does not dispose shells created as side
effects (e.g. PartRenderingEngine's limbo shell). These accumulate
across test methods, causing many unexpected windows to open.

Explicitly dispose all remaining shells after wb.close() to ensure
a clean state between test methods.

See eclipse-platform#3893
@github-actions
Copy link
Copy Markdown
Contributor

Test Results

   852 files  ±0     852 suites  ±0   1h 2m 4s ⏱️ + 9m 46s
 7 894 tests ±0   7 651 ✅ ±0  243 💤 ±0  0 ❌ ±0 
20 184 runs  ±0  19 529 ✅ ±0  655 💤 ±0  0 ❌ ±0 

Results for commit 51fc6b4. ± Comparison against base commit e6c1136.

@vogella vogella merged commit 391dafc into eclipse-platform:master Apr 16, 2026
18 checks passed
@vogella vogella deleted the fix/cleanup-shells-in-tests branch April 16, 2026 15:08
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.

1 participant