-
-
Notifications
You must be signed in to change notification settings - Fork 301
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
Show blacklisted req/caps on resolve failure #5906
Show blacklisted req/caps on resolve failure #5906
Conversation
1st draft of an attempt to improve and enrich the Resolution failure output with information about blacklisted items which were not considered for resolution. The goal is to make it easier to spot resolution failure because of a too broad blacklist. This is based on a real use case where the blacklist was the reason, but the current tooling gave no indication about this. TODO discussion and cleanup needed Signed-off-by: Christoph Rueger <[email protected]>
This looks wonderful! You really check the blacklists! Slight concern that sometimes a resource really should be in the blacklist even though it provides the resource. E.g. the aggregates cmpn, enterprise, should really be in the blacklist although they provide many packages. Then again, these aggregates nowadays have an unresolved requirement, which I think became a standard namespace in OSGi? Blacklists are really a bit from before we had the unresolved requirements. If you can take a look at the warning and verify you can't get NPE's, I am ok to go |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for reviewing @pkriens
I will do some more code cleanup.
Question about this:
- Naming things:
BndResolutionException
instead ofResolutionExceptionWithDetails
Signed-off-by: Christoph Rueger <[email protected]>
Signed-off-by: Christoph Rueger <[email protected]>
Sorry I must admit that I do not understand that part. Is there anything I should do here?
Done. |
Looks good to me, can I merge? |
Yes |
What is it
1st draft of an attempt to improve and enrich the Resolution failure output with information about blacklisted items which were not considered for resolution. The goal is to make it easier to spot resolution failure because of a too broad blacklist. This is based on a real use case (see bndtools/bndtools.workspace.min#11 (comment) ) where the blacklist was the reason for failed resolving, but the current tooling gave no indication about this.
Although it was an OSI-layer 8 problem, it would have made the chase easier, if there was some kind of pointer to the
-runblacklist
Example output
TODO discussion and cleanup needed.
This is only a base for discussion.
We could build up on this to make the output more precise or use the information also in other places for more subtle UI-indicators. E.g. @pkriens suggested on slack: