Skip to content

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

Open
vogella wants to merge 1 commit into
eclipse-platform:masterfrom
vogella:lv/codemining-drop-settle-sleep
Open

Remove blind settle delay from code mining test fixtures#4213
vogella wants to merge 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

   855 files     855 suites   46m 29s ⏱️
 8 120 tests  7 877 ✅ 243 💤 0 ❌
20 262 runs  19 608 ✅ 654 💤 0 ❌

Results for commit 95b8d19.

♻️ 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
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 95b8d19 to 4d58955 Compare July 29, 2026 08:00
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