-
-
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
Remove WebSocket support for Jetty 9 #7101
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.
Seems a bit aggressive to me so long as current versions of JenkinsRule
are still based on Jetty 9. org.csanchez.jenkins.plugins.kubernetes.pipeline.WebSocketTest
seems likely to break.
True, this should wait for jenkinsci/jenkins-test-harness#453. |
I concur, and that in turn needs to wait for the test harness to require Java 11, which in turn needs to wait for the test harness to require a baseline of 2.357 or later. Since that baseline just came out in LTS form this month, I think it is a bit aggressive to start requiring it from the plugin POM and test infrastructure, but in a few more months (when more plugins have moved their baseline to 2.361.1 or later) the time could be right. |
Since jenkinsci/jenkins-test-harness#453 has long since been widely adopted, I believe this is now safe from a toolchain perspective. |
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.
Are all the plugins in BOM using a sufficiently new test harness with jenkinsci/jenkins-test-harness#453? If not, this might have to wait until jenkinsci/plugin-compat-tester#489.
I suspect it suffices for all plugins which test WebSocket agents to use the new harness. Can check an incremental build. |
Indeed, |
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!
/label ready-for-merge This PR is now ready for merge. We will merge it after ~24 hours if there is no negative feedback. |
Cleans up after #6801. Retaining support temporarily for Jetty 9 seems like a sensible conservative decision but I do not think we wish to maintain this code indefinitely.
Proposed changelog entries
Proposed upgrade guidelines
If you are using WebSocket agents and were manually embedding Jenkins in a Jetty 9 servlet container, you should either upgrade the container to Jetty 10, or simply use the built-in container (
java -jar jenkins.war
).Maintainer checklist
Before the changes are marked as
ready-for-merge
:Proposed changelog entries
are accurate, human-readable, and in the imperative moodupgrade-guide-needed
label is set and there is aProposed upgrade guidelines
section in the PR title. (example)lts-candidate
to be considered (see query).