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 Lockable Resources workaround #3066

Closed
basil opened this issue Mar 28, 2024 · 6 comments · Fixed by #3153
Closed

Remove Lockable Resources workaround #3066

basil opened this issue Mar 28, 2024 · 6 comments · Fixed by #3153
Assignees
Labels

Comments

@basil
Copy link
Member

basil commented Mar 28, 2024

#3031 temporarily excluded two tests pending the fix for jenkinsci/lockable-resources-plugin#634. When a new version of Lockable Resource is released with fixes for Data Tables 2.x, these temporary test exclusions should be removed.

@basil basil added the tests label Mar 28, 2024
@mPokornyETM
Copy link

will be fine, when somebody check the changes here
jenkinsci/lockable-resources-plugin#634

thx

@basil
Copy link
Member Author

basil commented Apr 26, 2024

Thanks @mPokornyETM! Any chance we could get a backport to 2.426.x? The test is now passing on the latest line, but still failing on the 2.426.x and earlier lines, because on those lines Data Tables is upgraded, but Lockable Resources is still pinned to the old version without the fix you just released.

Instructions here: https://gist.github.com/jglick/86a30894446ed38f918050c1180483e2

If the answer is "No", that is completely understandable and no problem at all. We will then have to leave this ticket open, with the workaround in place, for the next 6 months or so until this repository drops support for the 2.426.x line, at which point the workaround can be removed and this ticket can then be closed.

@mPokornyETM
Copy link

Interesting. I have no idea why it fails. I will check it, but I thnik, I does not have time for next few mounts. Therefore it make also no sense.
sry

@basil
Copy link
Member Author

basil commented Apr 29, 2024

I have no idea why it fails

I do—because on that LTS line, the latest available version of Data Tables is 2.x, which contains a breaking change, while the latest version of Lockable Resources is 1245.vb_05f8a_4e28db_, which does not contain the adaptation to that breaking change. The first version of Lockable Resources that contains the adaptation is 1255.vf48745da_35d0, but that version requires Jenkins 2.440.1 or later. So it is possible for a user running the 2.426.x or earlier lines to legitimately upgrade all their plugins to the latest supported versions and wind up with an incompatible configuration.

The solution to the problem, if you are interested, is as described in #3066 (comment): to backport jenkinsci/lockable-resources-plugin#642 to the 2.426.x line following the instructions in https://gist.github.com/jglick/86a30894446ed38f918050c1180483e2. That would not only fix the problem for end users, but it would also allow this ticket to be closed.

@basil
Copy link
Member Author

basil commented Apr 29, 2024

Thinking about this some more, I suppose another alternative would be to downgrade Data Tables on the 2.426.x line to 1.x, which would be equivalent to the user scenario of rejecting the upgrade due to its incompatibility with Lockable Resources. That could be a good compromise.

@basil
Copy link
Member Author

basil commented Apr 30, 2024

I have backported the changes to the 2.426.x line in jenkinsci/lockable-resources-plugin#653

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 a pull request may close this issue.

2 participants