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

Improve test isolation and performance of BeginEndRuleTests #725 #726

Merged
merged 1 commit into from
Sep 30, 2023

Conversation

HeikoKlare
Copy link
Contributor

Several test cases in BeginEndRuleTests cannot successfully be executed standalone. When starting a test environment, i.e., a workspace, several jobs are running on startup. These jobs trigger the JobChangeAdapter registered in some test cases, which does not properly filter the events and leads to faulty test results. In addition, the test cases rely on sleep operations, which waste execution time and at the same time are prone to fail randomly.

This change rewrite the according test cases:

  • Corrects job event filtering for proper test isolation
  • Replaces sleep operations with join operation on jobs and barriers to improve performance and reduce the risk of random failures
  • Improves assertions and their messages

Fixes #725.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 28, 2023

Test Results

       42 files  +       42         42 suites  +42   55m 5s ⏱️ + 55m 5s
  3 778 tests +  3 778    3 775 ✔️ +  3 775    3 💤 +  3  0 ±0 
11 337 runs  +11 337  11 310 ✔️ +11 310  27 💤 +27  0 ±0 

Results for commit 4d65c67. ± Comparison against base commit 6b9f8a0.

♻️ This comment has been updated with latest results.

@HeikoKlare HeikoKlare marked this pull request as ready for review September 28, 2023 14:03
…latform#725

Several test cases in BeginEndRuleTests cannot successfully be executed
standalone. When starting a test environment, i.e., a workspace, several
jobs are running on startup. These jobs trigger the JobChangeAdapter
registered in some test cases, which does not properly filter the events
and leads to faulty test results. In addition, the test cases rely on
sleep operations, which waste execution time and at the same time are
prone to fail randomly.

This change rewrite the according test cases:
- Corrects job event filtering for proper test isolation
- Replaces sleep operations with join operation on jobs and barriers to
improve performance and reduce the risk of random failures
- Improves assertions and their messages

Fixes eclipse-platform#725.
@HeikoKlare HeikoKlare merged commit 823a56b into eclipse-platform:master Sep 30, 2023
14 checks passed
@HeikoKlare HeikoKlare deleted the issue-725 branch September 30, 2023 10:30
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.

BeginEndRuleTests cannot be run standalone
1 participant