-
Notifications
You must be signed in to change notification settings - Fork 67
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
Stop throwing IllegalStateException #699
Conversation
Test Results 663 files + 3 663 suites +3 1h 17m 26s ⏱️ + 1m 51s Results for commit b5b811c. ± Comparison against base commit 6d5e55c. This pull request removes 2 and adds 10 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
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. |
daa4169
to
5ccd965
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
5ccd965
to
b5b811c
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
Fixes #172