-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
Inline icon-set lib #5072
Inline icon-set lib #5072
Conversation
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.
LGTM.
What could be the impact on plugins that import the icon-set
library, such as https://github.com/jenkinsci/parameterized-trigger-plugin or jenkinsci/authorize-project-plugin
Search link: https://github.com/search?l=Maven+POM&q=org%3Ajenkinsci+icon-set&type=Code
To clarify, what happens with plugins that import icon-set
and use the org.jenkins.ui.icon
package?
I think it will work fine but needs testing, alternatively we just remove it from those libs as I can't see it still being needed, / we do both. |
Sounds good to me. I don't have a good understanding of classpaths or the workings of the JVM so I wasn't sure. |
https://github.com/jenkinsci/parameterized-trigger-plugin/blob/02ee6ea56ed988b824f341945d40ba5ab162f77f/pom.xml#L123-L126 is an exclusion. Most of the other references also seem to be bogus or obsolete, just POM wrangling. https://github.com/jenkinsci/node-sharing-plugin/blob/adf77d8f191e0dd321fb0d493c308868d545047d/pom.xml#L125-L129 is an actual dependency—which is useless, AFAIK, since the |
Well…should be listed in release notes that the plugin and library are obsolete so if your plugin has any reference to either, it can be removed now (and probably could have been removed before). |
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.
…nline-icon-set-lib
resolved, icon-shim plugin 2.0.2 had breaking changes (and nothing resembling a useful changelog in that repo 😂 ), this is the lovely commit jenkinsci/icon-shim-plugin@1d35827 It was never released in Jenkins core, I've downgraded to what core was previously using and it fixes the issue. Weirdly I couldn't get this test to run locally I get issues with the user not being created properly. |
This PR is now ready for merge, after ~24 hours, we will merge it if there's no negative feedback. Thanks! |
@timja does this not need a corresponding change in https://github.com/jenkinsci/icon-shim-plugin to remove the classes and bump the plugin baseline to a version of jenkins with this changes? anyone with a plugin first classloader or other funky things may end up getting one version of these classes, whereas a different plugin (or core) can get another one, leading to some funky errors? |
Hmm, we did a quick search and found very few uses of it so it seemed low risk: How would updating icon-shim help as people would still be using the old version wouldn't they? |
I think the idea was to delete https://github.com/jenkinsci/icon-shim-plugin/blob/6df80f4fcf8a4eb17e4c955e7e941beee519a6da/plugin/pom.xml#L44-L48, cut a “tombstone” plugin release with that change, then archive the repo. |
on it |
Not sure about details because I am not very familiar with this. If doing anything, be careful with test in real |
See JENKINS-XXXXX.
Iconography is soon to be revamped, see #5065 for some of the changes coming.
It would be a lot easier if iconset lib is in core for this...
Any objections?
Proposed changelog entries
Proposed upgrade guidelines
N/A
Submitter checklist
Proposed changelog entries
section only if there are breaking changes or other changes which may require extra steps from users during the upgradeDesired reviewers
@mention
Maintainer checklist
Before the changes are marked as
ready-for-merge
:Proposed changelog entries
are correctupgrade-guide-needed
label is set and there is aProposed upgrade guidelines
section in the PR title. (example)lts-candidate
to be considered (see query).