Skip to content

Stabilize QuickAccessDialogTest UI-responsiveness check#4128

Merged
vogella merged 1 commit into
eclipse-platform:masterfrom
vogella:lv/stabilize-quickaccess-freeze-test
Jun 22, 2026
Merged

Stabilize QuickAccessDialogTest UI-responsiveness check#4128
vogella merged 1 commit into
eclipse-platform:masterfrom
vogella:lv/stabilize-quickaccess-freeze-test

Conversation

@vogella

@vogella vogella commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

testLongRunningComputerDoesntFreezeUI measured UI blocking through the DisplayHelper.waitForCondition tick, whose loop parks in Display.sleep() while idle. When the second dialog restored a previous pick on the worker thread the UI thread was idle rather than frozen, but that idle interval was counted as a block and intermittently crossed the 3s threshold on macOS, so the test failed without any real UI freeze.

This switches the measurement to a self-rescheduling Display.timerExec probe. The timer keeps firing as long as the UI thread can dispatch events, so idle waiting now registers as short gaps while a genuine freeze still produces a large gap and fails the assertion. Test-only change.

@github-actions

github-actions Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Test Results

   855 files  ±0     855 suites  ±0   58m 31s ⏱️ + 5m 25s
 8 083 tests ±0   7 840 ✅ ±0  243 💤 ±0  0 ❌ ±0 
20 151 runs  ±0  19 497 ✅ ±0  654 💤 ±0  0 ❌ ±0 

Results for commit 0439a3a. ± Comparison against base commit 55ec079.

♻️ This comment has been updated with latest results.

testLongRunningComputerDoesntFreezeUI measured UI blocking via the
DisplayHelper.waitForCondition tick, whose loop parks in Display.sleep()
when idle. While the second dialog restored a previous pick on the worker
thread the UI thread was idle, not frozen, but the idle interval was
counted as a block and intermittently exceeded the 3s threshold on macOS.

Probe responsiveness with a self-rescheduling Display.timerExec instead:
the timer keeps firing while the UI thread can dispatch events, so idle
waiting registers as short gaps while a genuine freeze still produces a
large one.
@vogella vogella force-pushed the lv/stabilize-quickaccess-freeze-test branch from 558ec00 to 0439a3a Compare June 22, 2026 09:09
@vogella vogella merged commit 47bc499 into eclipse-platform:master Jun 22, 2026
18 checks passed
@vogella vogella deleted the lv/stabilize-quickaccess-freeze-test branch June 22, 2026 10:14
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