Skip to content

Flush workspace notifications in SmartImportTests single-operation test - #4451

Merged
vogella merged 1 commit into
eclipse-platform:masterfrom
vogella:lv/smartimport-single-operation-flake
Oct 7, 2026
Merged

vogella merged 1 commit into
eclipse-platform:masterfrom
vogella:lv/smartimport-single-operation-flake

Conversation

@vogella

@vogella vogella commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

SmartImportTests.testProjectsAreCreatedInASingleWorkspaceOperation occasionally fails with expected:<1> but was:<0>, for example on the CI of #4226. When another thread has a workspace operation open as the import ends, the workspace defers the POST_CHANGE broadcast to its notification job, so the event can still be pending when SmartImportJob.run returns. The test now calls checkpoint(false) before counting, which delivers the pending delta while still failing if the import creates its projects in several operations.

@github-actions

github-actions Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

Test Results

   864 files  ±0     864 suites  ±0   50m 17s ⏱️ -48s
 8 395 tests ±0   8 153 ✅ ±0  242 💤 ±0  0 ❌ ±0 
21 054 runs  ±0  20 377 ✅ ±0  677 💤 ±0  0 ❌ ±0 

Results for commit 81d7c38. ± Comparison against base commit 175c863.

♻️ This comment has been updated with latest results.

The POST_CHANGE event of the import can still be pending in the workspace
notification job when SmartImportJob.run returns, so the test occasionally
counted 0 events. A checkpoint delivers it before the assertion.

Assisted-by: multiple AI agents and layers of automated tooling 🤖
@vogella
vogella force-pushed the lv/smartimport-single-operation-flake branch from 587fa66 to 81d7c38 Compare October 7, 2026 10:41
@vogella
vogella merged commit 0d11bad into eclipse-platform:master Oct 7, 2026
18 checks passed
@vogella
vogella deleted the lv/smartimport-single-operation-flake branch October 7, 2026 12:09
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