Skip to content

Rewrite "New Wizard" Swing tests to no longer require the SWTBot runner#1350

Merged
ptziegler merged 1 commit intomasterfrom
rewrite-swtbot-swing-test
Jan 25, 2026
Merged

Rewrite "New Wizard" Swing tests to no longer require the SWTBot runner#1350
ptziegler merged 1 commit intomasterfrom
rewrite-swtbot-swing-test

Conversation

@ptziegler
Copy link
Contributor

Newer Eclipse versions no longer launch a workspace when running a test outside the UI thread. Because this is a requirement for all of our SWTBot tests, we can no longer run them locally.

The tests were originally written like that because they open a modal dialog and would thus lead to a deadlock if the test is also executed within the UI thread. But thanks to the changes to the UiContext, we have a way to make this work regardless.

@github-actions
Copy link

github-actions bot commented Jan 22, 2026

Test Results

 2 728 files  + 8   2 728 suites  +8   11h 10m 33s ⏱️ + 16m 10s
 7 018 tests +14   6 960 ✅ +14   58 💤 ±0  0 ❌ ±0 
28 072 runs  +56  27 830 ✅ +56  242 💤 ±0  0 ❌ ±0 

Results for commit 6722685. ± Comparison against base commit 7ac46a4.

♻️ This comment has been updated with latest results.

@ptziegler ptziegler force-pushed the rewrite-swtbot-swing-test branch 7 times, most recently from 98999ef to a98c751 Compare January 24, 2026 14:15
@ptziegler
Copy link
Contributor Author

The error seems to be similar to #1344, expect that it can it appears on all platforms and can be reproduced locally. JDT seems to be doing some very weird stuff, because the created compilation unit is not using the source string we passed as an argument. Perhaps some there is a cache that went stale?

@ptziegler ptziegler force-pushed the rewrite-swtbot-swing-test branch 2 times, most recently from 8ceaf81 to 8686f28 Compare January 24, 2026 20:24
@ptziegler ptziegler added this to the 1.23.0 milestone Jan 24, 2026
@ptziegler ptziegler force-pushed the rewrite-swtbot-swing-test branch 3 times, most recently from f16acc9 to cfc49d8 Compare January 24, 2026 22:12
Newer Eclipse versions no longer launch a workspace when running a test
outside the UI thread. Because this is a requirement for all of our
SWTBot tests, we can no longer run them locally.

The tests were originally written like that because they open a modal
dialog and would thus lead to a deadlock if the test is also executed
within the UI thread. But thanks to the changes to the `UiContext`, we
have a way to make this work regardless.
@ptziegler ptziegler force-pushed the rewrite-swtbot-swing-test branch from cfc49d8 to 6722685 Compare January 24, 2026 23:05
@ptziegler ptziegler merged commit d2c7a71 into master Jan 25, 2026
8 checks passed
@ptziegler ptziegler deleted the rewrite-swtbot-swing-test branch January 25, 2026 08:43
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