-
Notifications
You must be signed in to change notification settings - Fork 65
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
Stop throwing IllegalStateException #699
base: master
Are you sure you want to change the base?
Stop throwing IllegalStateException #699
Conversation
Test Results 663 files + 3 663 suites +3 1h 17m 11s ⏱️ -53s Results for commit daa4169. ± Comparison against base commit 2815608. This pull request removes 2 and adds 10 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
791406f
to
d536b88
Compare
The following methods can stop throwing IllegalStateExceptions Bundle.uninstall BundleContext.createFilter BundleContext.getBundle BundleContext.getProperty BundleContext.removeServiceListener BundleContext.removeBundleListener BundleContext.removeFrameworkListener BundleContext.ungetService ServiceObjects.ungetService ServiceRegistration.unregister
d536b88
to
daa4169
Compare
If I merge this it will cause a permanent hard failure in one of the Framework TCK tests. That is fixed in osgi/osgi#787 but we likely will not see a TCK release for some time. @laeubi is there any way to ignore that failure somehow? I do not plan to merge this until development of 2025-03 opens up. |
@tjwatson Not sure how you run the TCK tests but you can configure Maven surfire to ignore certain tests:
See https://maven.apache.org/surefire/maven-surefire-plugin/examples/inclusion-exclusion.html |
One thin I can think about would be using the SNAPSHOT of the OSGi repo once it is fixed there. |
Thanks, I can do that locally, I was wanting to ignore it for the PR validation runs. I will see if something like this can be done. |
The TCK is not using usual surefire but https://tycho.eclipseprojects.io/doc/latest/tycho-surefire-plugin/bnd-test-mojo.html |
If I understand that correctly, it appears I can use |
We "only" call the bnd-test here so if there is an option to skip one test you can do it here Lines 116 to 129 in 2815608
as far as I know last time I checked it was not that fine grained but might have changed (or can be improved) at bnd-lib. |
The following methods can stop throwing IllegalStateExceptions
Bundle.uninstall
BundleContext.createFilter
BundleContext.getBundle
BundleContext.getProperty
BundleContext.removeServiceListener
BundleContext.removeBundleListener
BundleContext.removeFrameworkListener
BundleContext.ungetService
ServiceObjects.ungetService
ServiceRegistration.unregister
Fixes #172