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

[JENKINS-66930] remove unsafe classes copied from Apache Ant which have been deprecated in Oct 2019 #5834

Merged

Conversation

olamy
Copy link
Member

@olamy olamy commented Oct 18, 2021

Signed-off-by: Olivier Lamy [email protected]

See JENKINS-66930.

Proposed changelog entries

  • Remove deprecated, unsafe classes previously copied from Apache Ant. Docker Slaves plugin is incompatible with this change.

Proposed upgrade guidelines

In case your plugin use those classes, just migrate to the org.apache.ant package

Submitter checklist

  • (If applicable) Jira issue is well described
  • Changelog entries and upgrade guidelines are appropriate for the audience affected by the change (users or developer, depending on the change). Examples
    • Fill-in the Proposed changelog entries section only if there are breaking changes or other changes which may require extra steps from users during the upgrade
  • Appropriate autotests or explanation to why this change has no tests
  • For dependency updates: links to external changelogs and, if possible, full diffs

Desired reviewers

@mention

Maintainer checklist

Before the changes are marked as ready-for-merge:

  • There are at least 2 approvals for the pull request and no outstanding requests for change
  • Conversations in the pull request are over OR it is explicit that a reviewer does not block the change
  • Changelog entries in the PR title and/or Proposed changelog entries are correct
  • Proper changelog labels are set so that the changelog can be generated automatically
  • If the change needs additional upgrade steps from users, upgrade-guide-needed label is set and there is a Proposed upgrade guidelines section in the PR title. (example)
  • If it would make sense to backport the change to LTS, a Jira issue must exist, be a Bug or Improvement, and be labeled as lts-candidate to be considered (see query).

…ve been deprecated in Oct 2019

Signed-off-by: Olivier Lamy <[email protected]>
@olamy olamy added internal removed This PR removes a feature or a public API labels Oct 18, 2021
@StefanSpieker
Copy link
Contributor

StefanSpieker commented Oct 19, 2021

I tried to remove that before, as you can see here: #4272 There are still two plugins which use it:
jenkinsci/copy-to-slave-plugin#11
jenkinsci/fstrigger-plugin#4

The fstrigger got merged and is already published. We should put this to the upgrade guide. I don't know how often the copy to slave plugin is used.

@daniel-beck
Copy link
Member

jenkinsci/copy-to-slave-plugin#11

Ignore, distribution is suspended (and has been for a long time) so we can pretend it doesn't exist.

@daniel-beck
Copy link
Member

jenkinsci/docker-slaves-plugin@71ed3c8 remains unreleased.

It's now safe to remove them .

Based on what data is this asserted? Please show your work.

Copy link
Member

@oleg-nenashev oleg-nenashev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am -1 for the change in the current state. hudson.org.apache.tools.tar.TarInputStream is used in https://github.com/jenkinsci/copy-to-slave-plugin/blob/c0ea34f47941b1647fd05ea31eb69779ce53fab3/src/main/java/com/michelin/cio/hudson/plugins/copytoslave/MyFilePath.java. Even if the class is deprecated, I believe we need to check and cleanup usages in actively used plugins.

@timja
Copy link
Member

timja commented Oct 19, 2021

Shall we archive the github repo?

@timja timja requested a review from oleg-nenashev October 19, 2021 08:26
Copy link
Member

@basil basil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hudson.org.apache.tools.tar.TarOutputStream is still used in the currently released version of Docker Slaves. I don't feel strongly that this plugin should remain supported, but if we do decide to drop support for it I think this should be mentioned in the release notes and a deprecation notice added to the plugin in the update center.

@olamy
Copy link
Member Author

olamy commented Oct 20, 2021

I know we only need someone to release docker slave plugin.
if we can find someone.... @darxriggs maybe?
but this plugin is not very active anymore https://github.com/jenkinsci/docker-slaves-plugin/commits/master

@darxriggs
Copy link
Contributor

I am not the maintainer of the docker-slaves-plugin. Nevertheless, I would also like to see my cleanups of it being released.

@olamy
Copy link
Member Author

olamy commented Oct 20, 2021

let's hope someone release the docker-slave-plugin.....
maybe we should archive it if no one maintain it.

@olamy
Copy link
Member Author

olamy commented Oct 20, 2021

@daniel-beck
Copy link
Member

answer from maintainer

Nicolas stepped down 2 years ago. At the moment we still consider @ydubreuil to be its (only) maintainer, but he hasn't been around in a while.

@olamy olamy added the on-hold This pull request depends on another event/release, and it cannot be merged right now label Oct 20, 2021
@olamy
Copy link
Member Author

olamy commented Oct 20, 2021

adding on-hold to wait for release of the plugin....

@daniel-beck
Copy link
Member

daniel-beck commented Oct 20, 2021

I don't think we need to wait, we just need to document that there's no compatible release for docker-slaves.

@timja timja added upgrade-guide-needed This changes might be breaking in rare circumstances, an entry in the LTS upgrade guide is needed and removed on-hold This pull request depends on another event/release, and it cannot be merged right now labels Oct 20, 2021
Copy link
Member

@jtnord jtnord left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with @daniel-beck the code in docker-slaves-plugin has been merged and waiting for release for over 2 years, if that is not long enough what is the expected minimum amount of time?

@timja
Copy link
Member

timja commented Oct 20, 2021

added to changelog, feel free to re-word

@timja timja added the ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback label Oct 20, 2021
@timja
Copy link
Member

timja commented Oct 20, 2021

This PR is now ready for merge, after ~24 hours, we will merge it if there's no negative feedback.

Thanks!

@timja timja merged commit 9cf9188 into jenkinsci:master Oct 21, 2021
@olamy olamy deleted the JENKINS-66930-remove-tar-apache-copy-classes branch October 22, 2021 01:15
daniel-beck added a commit that referenced this pull request Dec 5, 2022
…which have been deprecated in Oct 2019 (#5834)"

This reverts commit 9cf9188.
@daniel-beck
Copy link
Member

daniel-beck added a commit that referenced this pull request

Misclick, I have no intention of reverting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback removed This PR removes a feature or a public API upgrade-guide-needed This changes might be breaking in rare circumstances, an entry in the LTS upgrade guide is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants