Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refresh targets in the background #1531

Merged
merged 1 commit into from
Dec 20, 2024
Merged

Conversation

laeubi
Copy link
Contributor

@laeubi laeubi commented Dec 20, 2024

A target refresh operation is currently run in the UI thread as it probably in the past where considered a fast operation. At least with P2 Updatesites this is no longer the case and we can'T really make any valid assumptions on how other implementation might perform.

This now schedule the work into a background job and also cleanup the code to reflect current code base. In addition to that, if a job is already running, the user is asked to cancel it before perform other actions.

Fix #1523

Copy link

Test Results

   285 files  +   83     285 suites  +83   50m 57s ⏱️ + 12m 15s
 3 586 tests ±    0   3 510 ✅ ±    0   76 💤 ± 0  0 ❌ ±0 
10 950 runs  +3 602  10 719 ✅ +3 524  231 💤 +78  0 ❌ ±0 

Results for commit b6fcf23. ± Comparison against base commit 0d51f20.

A target refresh operation is currently run in the UI thread as it
probably in the past where considered a fast operation. At least with P2
Updatesites this is no longer the case and we can'T really make any
valid assumptions on how other implementation might perform.

This now schedule the work into a background job and also cleanup the
code to reflect current code base. In addition to that, if a job is
already running, the user is asked to cancel it before perform other
actions.

Fix eclipse-pde#1523
@vogella
Copy link
Contributor

vogella commented Dec 20, 2024

During activator such a cancelation would also be nice, still possible to trigger activation multiple times white it is activating:

image

@vogella
Copy link
Contributor

vogella commented Dec 20, 2024

Otherwise, this is great. Works fine for me.

@vogella
Copy link
Contributor

vogella commented Dec 20, 2024

Would also be great to have the same for "Reload Target Platform" (similar to Activate).

@laeubi
Copy link
Contributor Author

laeubi commented Dec 20, 2024

@vogella please create a dedicated issue with reproducer, I'm sure there are lingering other things around but we can only hunt them down one-by-one :-)

@laeubi
Copy link
Contributor Author

laeubi commented Dec 20, 2024

Warnings are due to changing the Build to Java 21, I reset the quality gate now.

@laeubi laeubi merged commit 1535dde into eclipse-pde:master Dec 20, 2024
13 of 17 checks passed
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.

Target Editor UI freeze / taking very long when refresh a target file
2 participants