Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable region tests #839

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

laeubi
Copy link
Member

@laeubi laeubi commented Feb 11, 2025

No description provided.

Copy link

github-actions bot commented Feb 11, 2025

Test Results

  717 files  + 48    717 suites  +48   1h 16m 46s ⏱️ -7s
2 377 tests +154  2 214 ✅ + 38   47 💤 ±0  2 ❌ +2  114 🔥 +114 
7 674 runs  +861  6 883 ✅ +213  143 💤 ±0  6 ❌ +6  642 🔥 +642 

For more details on these failures and errors, see this check.

Results for commit a3be34a. ± Comparison against base commit b3a6122.

♻️ This comment has been updated with latest results.

@laeubi
Copy link
Member Author

laeubi commented Feb 11, 2025

@tjwatson the RegionPerformanceTests seem to fail mostly because of

A bundle is already installed with the name "PackageProvider1" and version "1.0.0"
org.osgi.framework.BundleException: A bundle is already installed with the name "PackageProvider1" and version "1.0.0"
	at org.eclipse.osgi.container.ModuleContainer.install(ModuleContainer.java:480)
	at org.eclipse.osgi.storage.Storage.install(Storage.java:755)
	at org.eclipse.osgi.internal.framework.BundleContextImpl.installBundle(BundleContextImpl.java:183)
	at org.eclipse.osgi.internal.framework.BundleContextImpl.installBundle(BundleContextImpl.java:176)
	at org.eclipse.equinox.region.tests.BundleInstaller.installBundle(BundleInstaller.java:55)
	at org.eclipse.equinox.region.tests.BundleInstaller.installBundle(BundleInstaller.java:48)
	at org.eclipse.equinox.region.tests.system.RegionPerformanceTests.setUp(RegionPerformanceTests.java:42)
	at junit.framework.TestCase.runBare(TestCase.java:140)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:130)
	at junit.framework.TestSuite.runTest(TestSuite.java:241)
	at junit.framework.TestSuite.run(TestSuite.java:236)

so it seems it either misses cleanup or should check if a bundle is already there.

The aspect4j seems to be required for the embedded virgo tests, if I locally remove that a large part of the test are affected so it seems one would need a replacement for that mocking (maybe https://sling.apache.org/documentation/development/osgi-mock.html).

@laeubi laeubi force-pushed the enable_region_tests branch from 91296fe to a3be34a Compare February 11, 2025 06:10
@laeubi
Copy link
Member Author

laeubi commented Feb 16, 2025

A maybe better way would be to finally add OSGi Test support to PDE...

then we don't need the mocking here... on the other hand I wonder why we need to mock OSGi at all? Can't the test just run with a connect framework or similar?

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