-
Notifications
You must be signed in to change notification settings - Fork 285
Require Jenkins 2.479.3 or newer and Jakarta EE 9 #516
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
base: master
Are you sure you want to change the base?
Conversation
|
|
||
| @Override | ||
| public ContextMenu doContextMenu(StaplerRequest request, StaplerResponse response) throws Exception { | ||
| public ContextMenu doContextMenu(StaplerRequest2 request, StaplerResponse2 response) throws Exception { |
Check warning
Code scanning / Jenkins Security Scan
Stapler: Missing POST/RequirePOST annotation Warning
|
|
||
| @Override | ||
| public ContextMenu doChildrenContextMenu(StaplerRequest request, StaplerResponse response) throws Exception { | ||
| public ContextMenu doChildrenContextMenu(StaplerRequest2 request, StaplerResponse2 response) throws Exception { |
Check warning
Code scanning / Jenkins Security Scan
Stapler: Missing POST/RequirePOST annotation Warning
|
|
||
| @Override | ||
| public ContextMenu doChildrenContextMenu(StaplerRequest request, StaplerResponse response) throws Exception { | ||
| public ContextMenu doChildrenContextMenu(StaplerRequest2 request, StaplerResponse2 response) throws Exception { |
Check warning
Code scanning / Jenkins Security Scan
Stapler: Missing permission check Warning
|
|
||
| @Override | ||
| public ContextMenu doContextMenu(StaplerRequest request, StaplerResponse response) throws Exception { | ||
| public ContextMenu doContextMenu(StaplerRequest2 request, StaplerResponse2 response) throws Exception { |
Check warning
Code scanning / Jenkins Security Scan
Stapler: Missing POST/RequirePOST annotation Warning
|
|
||
| @Override | ||
| public ContextMenu doContextMenu(StaplerRequest request, StaplerResponse response) throws Exception { | ||
| public ContextMenu doContextMenu(StaplerRequest2 request, StaplerResponse2 response) throws Exception { |
Check warning
Code scanning / Jenkins Security Scan
Stapler: Missing permission check Warning
| * @see #isDebugMode() | ||
| */ | ||
| public void doTriggerDebugEvent(StaplerRequest request, StaplerResponse response) throws IOException { | ||
| public void doTriggerDebugEvent(StaplerRequest2 request, StaplerResponse2 response) throws IOException { |
Check warning
Code scanning / Jenkins Security Scan
Stapler: Missing POST/RequirePOST annotation Warning
| * @see #isDebugMode() | ||
| */ | ||
| public void doTriggerDebugEvent(StaplerRequest request, StaplerResponse response) throws IOException { | ||
| public void doTriggerDebugEvent(StaplerRequest2 request, StaplerResponse2 response) throws IOException { |
Check warning
Code scanning / Jenkins Security Scan
Stapler: Missing permission check Warning
|
@strangelookingnerd I have rebased here and add one patch #518 |
I've seen this error someplace before, has to do with a bad mock I think. |
|
The tests that are timing out seems to all have the same symptoms, perhaps something has changed that is making the ssh mock server not working? |
|
@rsandell @panicking I have pushed some workarounds for the failing tests in 65ccdc6. I could not verify all of them locally, let's see what CI has to say about it. |
|
The maven proxy had a hickup, rebuilding... |
...a/com/sonyericsson/hudson/plugins/gerrit/trigger/GerritProjectListUpdaterFunctionalTest.java
Show resolved
Hide resolved
src/test/java/com/sonyericsson/hudson/plugins/gerrit/trigger/LockedDownGerritEventTest.java
Show resolved
Hide resolved
...est/java/com/sonyericsson/hudson/plugins/gerrit/trigger/hudsontrigger/GerritTriggerTest.java
Show resolved
Hide resolved
|
I am getting that bouncy castle download error on another plugin build as well. |
|
bc download error fixed, test timeouts still happening though. |
I'll try and look into those as well. |
| */ | ||
| public synchronized Entry[] getEntries() { | ||
| return list.toArray(new Entry[list.size()]); | ||
| return list.toArray(new Entry[0]); |
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.
Why? Has something changed in the toArray calls to nmake the empty array arg be more efficient suddenly?
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.
There are two styles to convert a collection to an array:
* A pre-sized array, for example, c.toArray(new String[c.size()]) * An empty array, for example, c.toArray(new String[0])In older Java versions, using a pre-sized array was recommended, as the reflection call necessary to create an array of proper size was quite slow.
However, since late updates of OpenJDK 6, this call was intrinsified, making the performance of the empty array version the same, and sometimes even better, compared to the pre-sized version. Also, passing a pre-sized array is dangerous for a concurrent or synchronized collection as a data race is possible between the size and toArray calls. This may result in extra nulls at the end of the array if the collection was concurrently shrunk during the operation.
https://www.jetbrains.com/help/inspectopedia/ToArrayCallWithZeroLengthArrayArgument.html
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.
That dated me pretty bad 🤣
New version also needed for new language level.
|
I've fixed all tests and checkstyle warnings. |
…r-plugin into migrate
Maybe it'll help
|
Ugh, it's one of those "works on my machine but not on CI" test problems 🤯 . |
Require Jenkins 2.479.3 or newer and Jakarta EE 9
Jenkins 2.479.3 provides Jakarta EE 9, Eclipse Jetty 12, Spring Security 6, and Java 17.
Testing done
mvn clean verifySubmitter checklist