Skip to content

Conversation

vogella
Copy link
Contributor

@vogella vogella commented Oct 2, 2025

The test testSingleSelectionAndOneInitialSelectionWithInitialPattern was intermittently failing with ResourceException during project deletion in doTearDown() due to background jobs holding project locks.

Changes:

  • Add comprehensive UI event processing before/after cleanup
  • Wait for additional job families (FAMILY_MANUAL_REFRESH, FAMILY_AUTO_REFRESH)
  • Implement retry mechanism with proper NullProgressMonitor (5 retries, 1s delay)
  • Preserve existing exception chaining for debugging
  • Follow established Eclipse test patterns (ResourceHelper, ResourceActionTest)

This resolves intermittent test failures in CI/CD environments where decorator and resource refresh jobs interfere with project deletion.

Fixes: #294

The test testSingleSelectionAndOneInitialSelectionWithInitialPattern
was intermittently failing with ResourceException during project
deletion in doTearDown() due to background jobs holding project locks.

Changes:
- Add comprehensive UI event processing before/after cleanup
- Wait for additional job families (FAMILY_MANUAL_REFRESH, FAMILY_AUTO_REFRESH)
- Implement retry mechanism with proper NullProgressMonitor (5 retries, 1s delay)
- Preserve existing exception chaining for debugging
- Follow established Eclipse test patterns (ResourceHelper, ResourceActionTest)

This resolves intermittent test failures in CI/CD environments where
decorator and resource refresh jobs interfere with project deletion.

Fixes: ResourceException: Problems encountered while deleting resources
@vogella
Copy link
Contributor Author

vogella commented Oct 2, 2025

The improvement was created by Copilot cli, lets see if it can fix our long outstanding flacky test. I assume the retry should at least make this problem appear less often.

@vogella
Copy link
Contributor Author

vogella commented Oct 2, 2025

Alternative implementation to #3372 which seems less inversive.

Copy link
Contributor

github-actions bot commented Oct 2, 2025

Test Results

 2 997 files  +1 387   2 997 suites  +1 387   2h 19m 10s ⏱️ + 1h 34m 9s
 8 215 tests ±    0   7 965 ✅ ±    0  249 💤  -   1  1 ❌ +1 
23 565 runs  +9 522  22 770 ✅ +9 035  794 💤 +486  1 ❌ +1 

For more details on these failures, see this check.

Results for commit 5da56c9. ± Comparison against base commit 2b482fa.

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.

Some ResourceInitialSelectionTest tests fail intermittently
1 participant