-
-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
Omit WEB-INF/lib/jquery-detached-1.2.jar from jenkins.war #4120
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.
I can not think in more concrete tests to be run... But I believe if this breaks seriously the UI the ath tests should catch that... And anyway only the boostrap plugins use jquery not in general so aproving
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.
Looks fine. Should not we also make it a detached plugin just to be on the safe side? Id has 200k_ installations so should be fine
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.
Due to https://github.com/jenkinsci/jenkins/pull/4120/files#diff-82c9d27714c878724d651c3c4a016ddbR138, that should not have a negative impact. (= we remove the 1.2 indirect dependency to keep only the direct 1.2.1)
Not tested manually.
As sse-gateway-plugin uses jQuery but did not declare it itself (rely on core I suppose), it could be interesting to also test it, WDYT? Jesse was totally right, only used in test and sample, nothing to worry about here.
Will merge it tomorrow if no negative feedback |
I have no idea how one would test functionality of that plugin. Anyway jQuery seems to be used only from a sample and from a load tester, not from the plugin itself. |
jQuery is used by core so it cannot be a plugin. |
@Wadeck are you fine with the responses? |
@oleg-nenashev Yeah I modified my comment just after Jesse's reply :) |
· working around jenkinsci/branch-api-plugin#167 · jenkinsci/jenkins#4120 is in 2.190.x · so is jenkinsci/jenkins#4099
This file is a nuisance since it is a plugin JAR and so can confuse PCT runs:
workflow-cps
depends on 1.2.1 and will not be loaded when the tested plugin has this JAR in the test classpath. (#3215 would also fix the symptom, since the improperly bundled version would at least be newer.)As far as I know this happens only in PCT when
target/test-classes/test-dependencies/jquery-detached.hpi
is 1.2.Tested
java -jar
style and all the JS I could think of worked as expected: