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: master
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   54m 38s ⏱️ + 3m 32s
  679 tests  - 1    657 ✅  - 2  20 💤 ±0  0 ❌ ±0  2 🔥 +1 
2 037 runs   - 3  1 974 ✅  - 5  60 💤 ±0  0 ❌ ±0  3 🔥 +2 

For more details on these errors, see this check.

Results for commit 7a69cf7. ± Comparison against base commit 02d733c.

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.

Depending on how many artifacts are updated, this might be a
long-running operation and should therefore be run without blocking the
application.
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