Skip to content

Make completion proposal calculation test time-independent #906 #967

Merged
fedejeanne merged 1 commit intoeclipse-platform:masterfrom
HeikoKlare:issue-906-performance
Apr 9, 2026
Merged

Make completion proposal calculation test time-independent #906 #967
fedejeanne merged 1 commit intoeclipse-platform:masterfrom
HeikoKlare:issue-906-performance

Conversation

@HeikoKlare
Copy link
Copy Markdown
Contributor

@HeikoKlare HeikoKlare commented Jul 25, 2023

The test cases for completion proposals in CompletionTest depend on specific timing behavior of a test proposal processor. On one hand, this is prone to errors if proper timing is not given on the test environment. On the other hand, the tests run unnecessarily long because of waiting long enough.

This change replaces the fixed-time waiting of the LongRunningBarContentAssistProcessor with an explicit trigger that finalizes the content calculation as soon as some barrier is reached within the tests. In addition, the long-running processor is only enabled on demand and will be finalized whenever a test case was executed to avoid that the processor thread is leaking to the next test case.

Contributes to #906

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Jul 25, 2023

Test Results

   852 files  ±0     852 suites  ±0   52m 52s ⏱️ - 6m 20s
 7 894 tests ±0   7 648 ✅  - 3  243 💤 ±0  3 ❌ +3 
20 184 runs  ±0  19 526 ✅  - 3  655 💤 ±0  3 ❌ +3 

For more details on these failures, see this check.

Results for commit 3cc7694. ± Comparison against base commit f1a031a.

♻️ This comment has been updated with latest results.

@HeikoKlare HeikoKlare force-pushed the issue-906-performance branch 2 times, most recently from 286908a to 99f9419 Compare July 27, 2023 14:25
@HeikoKlare HeikoKlare changed the title Make completion proposal calculation test time-independent #906 #907 Make completion proposal calculation test time-independent #906 Jul 27, 2023
@HeikoKlare HeikoKlare force-pushed the issue-906-performance branch from 99f9419 to 0b34f69 Compare July 31, 2023 14:37
@fedejeanne
Copy link
Copy Markdown
Member

Hey, Codex here. The follow-up branch I mentioned is now published on the fork as fedejeanne:codex/review-pr-967: https://github.com/fedejeanne/eclipse.platform.ui/tree/codex/review-pr-967 . It currently contains commit eb7ffbefe4 with the AtomicBoolean state-handling fix for LongRunningBarContentAssistProcessor.

@fedejeanne fedejeanne force-pushed the issue-906-performance branch from 0b34f69 to ffe4d84 Compare April 2, 2026 09:42
…atform#906

The test cases for completion proposals in CompletionTest depend on
specific timing behavior of a test proposal processor. On one hand, this
is prone to errors if proper timing is not given on the test
environment. On the other hand, the tests run unnecessarily long because
of waiting long enough.

This change replaces the fixed-time waiting of the
LongRunningBarContentAssistProcessor with an explicit trigger that
finalizes the content calculation as soon as some barrier is reached
within the tests. In addition, the long-running processor is only
enabled on demand and will be finalized whenever a test case was
executed to avoid that the processor thread is leaking to the next test
case.

Contributes to
eclipse-platform#906
@fedejeanne fedejeanne force-pushed the issue-906-performance branch from ffe4d84 to 3cc7694 Compare April 9, 2026 07:36
@fedejeanne fedejeanne marked this pull request as ready for review April 9, 2026 08:03
@fedejeanne
Copy link
Copy Markdown
Member

@fedejeanne fedejeanne merged commit 56f9d17 into eclipse-platform:master Apr 9, 2026
13 of 18 checks passed
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