-
Notifications
You must be signed in to change notification settings - Fork 4
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
[JENKINS-73714] Fix filtering of icons in jar file #283
[JENKINS-73714] Fix filtering of icons in jar file #283
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #283 +/- ##
=============================================
+ Coverage 50.00% 71.15% +21.15%
- Complexity 17 19 +2
=============================================
Files 3 2 -1
Lines 76 52 -24
Branches 5 3 -2
=============================================
- Hits 38 37 -1
+ Misses 31 9 -22
+ Partials 7 6 -1 ☔ View full report in Codecov by Sentry. |
FontAwesomeIcons#getAvailableIcons()
causes ClosedFileSystemException
FontAwesomeIcons#getAvailableIcons()
causes ClosedFileSystemException
Thanks! Maybe it makes sense to write a UI test so we can remove the non-jar code and see such bugs during development. |
I’ll try to look into it and may create a PR if I find a solution. But just to be sure: The non-JAR path is only relevant during development but will not be used in „production“ usage. There is no situation where the plugins are being unpacked in a Jenkins deployment? |
I'm not sure if it is worth the effort. This requires a lot of changes in the plugin structure. Do you have a UI test in your consumer plugin?
I don't know. |
I gave it a go yesterday and did not really come up with something that actually works. Using Adding tests to my consumer plugin seems way more reasonable. |
Yes, all integration tests run with the classes folder as classpath.
Yes, this is exactly what I mean: we need a UI test (with ATH) to test this setup. This requires a new plugin structure, see https://github.com/jenkinsci/git-forensics-plugin/blob/main/ui-tests/src/test/java/io/jenkins/plugins/forensics/git/SmokeTests.java or https://github.com/jenkinsci/warnings-ng-plugin/blob/main/ui-tests/src/test/java/io/jenkins/plugins/analysis/warnings/SmokeTests.java for some examples. |
See https://issues.jenkins.io/browse/JENKINS-73714 for more details.
During the refactoring in 1b41824 the collection of the icons was broken in case they are read from the JAR file due to the
FileSystem
being closed too early.Testing done
I did not find a way to reproduce the issue with a regular test without manually manipulating the classpath. However the manual tests showed that these changes fix the issue at hand.
Submitter checklist