Skip to content
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 support for multiple WAR files #377

Merged
merged 2 commits into from
May 3, 2024
Merged

Conversation

basil
Copy link
Member

@basil basil commented May 3, 2024

Winstone contains 100 or so lines of code for a --webappsDir switch to run a directory full of WAR files, each with their own request logger which logs requests to a different file. There are no references to this in the jenkinsci, jenkins-infra, and cloudbees GitHub organizations. There is no test coverage for the feature. The single reference in Jira is JENKINS-5307, from 2010. While I am aware of people running Jenkins as a WAR file in Tomcat alongside other WAR files, I am not aware of anyone using Winstone to run multiple WAR files. I think it is quite likely there are zero people using this feature.

This all is changing in Jetty 12, which now does request logging at a per-Server level, not a per-webapp level. Thus the current code would require significant changes to support the existing functionality. Since it has no test coverage, and since we think there are zero people using it, this PR removes the feature. That way, we won't have to port it to Jetty 12, and we also won't have to manually test the result.

Proposed changelog and upgrade guide entries

The --webappsDir argument to run Winstone with a directory full of WAR files has been removed without replacement.

Testing done

mvn clean verify

@basil basil added the removed label May 3, 2024
@basil basil requested review from MarkEWaite and timja May 3, 2024 20:35
@basil
Copy link
Member Author

basil commented May 3, 2024

If we feel that removal without first deprecating this option is too aggressive, then I can file a separate PR to first deprecate it and then remove it in a few months. However, based on the research I provided in the PR description, I think it is highly likely there are zero people using this feature and that it can be treated as dead code and removed without a prior deprecation period.

@MarkEWaite
Copy link
Contributor

If we feel that removal without first deprecating this option is too aggressive, then I can file a separate PR to first deprecate it and then remove it in a few months. However, based on the research I provided in the PR description, I think it is highly likely there are zero people using this feature and that it can be treated as dead code and removed without a prior deprecation period.

I think it should be removed without deprecation.

@basil basil merged commit 5a65223 into jenkinsci:master May 3, 2024
15 checks passed
@basil basil deleted the multi-webapp branch May 3, 2024 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants