Skip to content

Conversation

@HeikoKlare
Copy link
Contributor

The MarkerTest implementations currently assume that resource change listeners are notifies synchronously about changes due to modified markers. This assumption is not correct and leads to several race conditions in the tests which can make them fail sporadically.

This change adapts the MarkerTests to properly handle asynchronous execution of resource change listeners:

  • Wait until a timeout for the number of expected resource changes being processed by the used resource change listener
  • Make the data structures inside the resource listeners thread safe

Fixes #106

…platform#106

The MarkerTest implementations currently assume that resource change
listeners are notifies synchronously about changes due to modified
markers. This assumption is not correct and leads to several race
conditions in the tests which can make them fail sporadically.

This change adapts the MarkerTests to properly handle asynchronous
execution of resource change listeners:
- Wait until a timeout for the number of expected resource changes being
processed by the used resource change listener
- Make the data structures inside the resource listeners thread safe

Fixes eclipse-platform#106
@github-actions
Copy link
Contributor

github-actions bot commented Jan 2, 2026

Test Results

 1 953 files  + 26   1 953 suites  +26   1h 25m 45s ⏱️ - 2m 42s
 4 744 tests ±  0   4 720 ✅ ±  0   24 💤 ±0  0 ❌ ±0 
14 232 runs  +414  14 050 ✅ +413  182 💤 +1  0 ❌ ±0 

Results for commit 75e20f1. ± Comparison against base commit 6c2df07.

@HeikoKlare HeikoKlare merged commit ffa1e47 into eclipse-platform:master Jan 2, 2026
18 checks passed
@HeikoKlare HeikoKlare deleted the issue-106 branch January 2, 2026 17:13
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.

random failing org.eclipse.core.tests.resources.MarkerTest testMarkerDeltasMerge

1 participant