Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » RCP Testing Tool » RCPTT rerunning Worker jobs
RCPTT rerunning Worker jobs [message #1858864] Thu, 27 April 2023 00:29 Go to next message
Justin Madru is currently offline Justin MadruFriend
Messages: 3
Registered: April 2023
Junior Member
I have some RCPTT tests for an eclipse plugin being developed. We noticed that when running with Eclipse 2022-12 and newer the scheduled jobs created by the plugin would rerun multiple times. This doesn't happen on older Eclipses or outside of the RCPTT test run.

For example, I'm seeing the run() method for a job called again after it has finished. The same Worker object being rescheduled many times. I put debug prints in the code and see this printed from the same instance (EclipseJobManager is the plugin being tested):

at com..common.eclipse.internal.application.EclipseJobManager$1.run(EclipseJobManager.java:33)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)


I found https://www.eclipse.org/eclipse/news/4.26/platform_isv.php which mentions checking for blocking calls on implementers of IJobChangeListener. The plugin that's being tested doesn't have any IJobChangeListener implementations.

Could this be a bug in RCPTT's implementation of IJobChangeListener? The issue is most notably being reproduced when RCPTT is waiting for the IDE to become idle. Or is this a bug in the plugin being tested?
Re: RCPTT rerunning Worker jobs [message #1858878 is a reply to message #1858864] Thu, 27 April 2023 20:36 Go to previous messageGo to next message
Justin Madru is currently offline Justin MadruFriend
Messages: 3
Registered: April 2023
Junior Member
This looks like a bug in RCPTT which is being worked on in https://bugs.eclipse.org/bugs/show_bug.cgi?id=581339. There's a pull request which potentially fixes the issue https://github.com/eclipse/org.eclipse.rcptt/pull/18.
Re: RCPTT rerunning Worker jobs [message #1858880 is a reply to message #1858878] Fri, 28 April 2023 06:17 Go to previous message
Justin Madru is currently offline Justin MadruFriend
Messages: 3
Registered: April 2023
Junior Member
I've confirmed that the fix solves the issue with jobs rerunning. The tests have passed. The only downside is RCPTT takes about 30% longer to run tests, so there could still be more issues that RCPTT needs to fix.
Previous Topic:RCPTT and "PartRenderingEngine's limbo" Shell
Next Topic:Exec-process on mac
Goto Forum:
  


Current Time: Mon Apr 22 20:33:34 GMT 2024

Powered by FUDForum. Page generated in 0.03981 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top