Skip to content

Remove blind settle delay from code mining test fixtures - #4213

Merged
vogella merged 1 commit into
eclipse-platform:masterfrom
vogella:lv/codemining-drop-settle-sleep
Jul 30, 2026
Merged

Remove blind settle delay from code mining test fixtures#4213
vogella merged 1 commit into
eclipse-platform:masterfrom
vogella:lv/codemining-drop-settle-sleep

Conversation

@vogella

@vogella vogella commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

CodeMiningTest.setUp() and CodeMiningLineHeaderAnnotationTest.setUp() both ended with DisplayHelper.sleep(display, 1000), placed directly after a waitForCondition() that had already established that the text widget is visible. DisplayHelper.sleep() is waitForCondition() with the condition hardcoded to false, so it always burns the full second. In CodeMiningTest the provider is installed on an empty document and skips blank lines, so no code minings are produced during setup and there is nothing to settle for.

On a recent full CI run CodeMiningTest was 22.6s over 19 tests with a median of 1.04s against a minimum of 0.19s, and CodeMiningLineHeaderAnnotationTest was 4.0s over 4 tests with minimum and median both 1.01s. Locally the passing tests drop from 22.6s to 5.8s, with each affected test falling by almost exactly the removed second.

@github-actions

github-actions Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Test Results

   861 files  ±0     861 suites  ±0   54m 7s ⏱️ + 3m 57s
 8 130 tests ±0   7 887 ✅ ±0  243 💤 ±0  0 ❌ ±0 
20 292 runs  ±0  19 638 ✅ ±0  654 💤 ±0  0 ❌ ±0 

Results for commit d099cba. ± Comparison against base commit 036c95f.

♻️ This comment has been updated with latest results.

@vogella
vogella force-pushed the lv/codemining-drop-settle-sleep branch 2 times, most recently from fef4baf to 95b8d19 Compare July 28, 2026 15:28
@vogella
vogella marked this pull request as ready for review July 28, 2026 15:28
@vogella
vogella force-pushed the lv/codemining-drop-settle-sleep branch from 95b8d19 to 4d58955 Compare July 29, 2026 08:00
CodeMiningTest.setUp() and CodeMiningLineHeaderAnnotationTest.setUp()
both ended with DisplayHelper.sleep(display, 1000), placed directly
after a waitForCondition() that had already established that the text
widget is visible. DisplayHelper.sleep() is waitForCondition() with the
condition hardcoded to false, so it always burns the full second.

CodeMiningTest installs its provider on an empty document, and the
provider skips blank lines, so no code minings are produced during
setUp and there is nothing to settle for.

Measured on a full CI run, CodeMiningTest is 22.6s over 19 tests with a
median of 1.04s against a minimum of 0.19s, and
CodeMiningLineHeaderAnnotationTest is 4.0s over 4 tests with minimum
and median both 1.01s.
@vogella
vogella force-pushed the lv/codemining-drop-settle-sleep branch from 4d58955 to d099cba Compare July 30, 2026 11:18
@vogella

vogella commented Jul 30, 2026

Copy link
Copy Markdown
Contributor Author

Three test runs now, no flakyness so I merge this test runtime improvement.

@vogella
vogella merged commit 13b7e48 into eclipse-platform:master Jul 30, 2026
18 checks passed
@vogella
vogella deleted the lv/codemining-drop-settle-sleep branch July 30, 2026 14:59
@iloveeclipse

Copy link
Copy Markdown
Member

@vogella : please check #4217

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