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

Perform Maven target dependency update in non-UI thread #1901

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ptziegler
Copy link
Contributor

Depending on how many artifacts are updated, this might be a long-running operation and should therefore be run without blocking the application.

Copy link

github-actions bot commented Nov 28, 2024

Test Results

  321 files  ±0    321 suites  ±0   52m 18s ⏱️ -13s
  682 tests  - 1    661 ✅ ±0  20 💤 ±0  0 ❌  - 1  1 🔥 ±0 
2 046 runs   - 3  1 985 ✅  - 2  60 💤 ±0  0 ❌  - 1  1 🔥 ±0 

For more details on these errors, see this check.

Results for commit d49118a. ± Comparison against base commit 19c8f09.

This pull request removes 1 test.
org.eclipse.m2e.pde.ui.MavenTargetDependencyEditorTest ‑ testUpdateMavenArtifactVersion

♻️ This comment has been updated with latest results.

@ptziegler ptziegler force-pushed the non-blocking-maven-update branch 3 times, most recently from f49b773 to 1a4d43c Compare November 28, 2024 18:43
@@ -316,7 +312,7 @@ public void testUpdateMavenArtifactVersion() throws Exception {

table.select(12);
robot.button("Update").click();
readAndDispatch();
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test is executed too fast. Because the update is now done in a separate thread, we get the "The wizard can't be closed because of an active operation" popup when trying to close it.

@ptziegler ptziegler force-pushed the non-blocking-maven-update branch 2 times, most recently from fdb0de1 to 7a69cf7 Compare November 28, 2024 19:12
Depending on how many artifacts are updated, this might be a
long-running operation and should therefore be run without blocking the
application.
@akurtakov akurtakov force-pushed the non-blocking-maven-update branch from 7a69cf7 to d49118a Compare February 21, 2025 06:33
@laeubi
Copy link
Member

laeubi commented Feb 21, 2025

@ptziegler can you check with latest release? I Think that I should have fixed this in PDE so it performs updates in a separate thread. If not let me know I think this is better handled in the PDE editor than directly in the target location implementation.

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.

2 participants