dotCMS / dotCMS/core

Fix flaky OSGI integration test GenericBundleActivatorIntegrationTest.test_osgi_inits_properly

Open
#33,116 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

dotCMS : Technical Debt Flakey Test Priority : 3 Average stale
Dominant language
Java
Stars
970
Forks
486
Avg merge
3d 33m
Merged PRs (30d)
170

Description

Description

The test GenericBundleActivatorIntegrationTest.test_osgi_inits_properly is failing intermittently with AssertionError. The test checks for OSGI bundles immediately after framework initialization, but bundle loading is asynchronous. Root cause is race condition between framework startup and bundle loading completion. Solution involves adding proper wait mechanism with timeout to ensure bundles are loaded before assertion.

Acceptance Criteria

  • [Define what needs to be accomplished]

Additional Notes

[Any additional context or notes]

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating GenericBundleActivatorIntegrationTest.test_osgi_inits_properly and run it repeatedly to reproduce the intermittent AssertionError. Read the framework initialization and bundle-loading flow around this test, then verify that the test waits with a bounded timeout before asserting. Done means the test reliably passes without racing asynchronous bundle loading.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.