Skip to content

Backporting for Jenkins 2.492.3 release candidate#10412

Closed
gounthar wants to merge 41 commits into
jenkinsci:stable-2.492from
gounthar:stable-2.492.3-backport-1
Closed

Backporting for Jenkins 2.492.3 release candidate#10412
gounthar wants to merge 41 commits into
jenkinsci:stable-2.492from
gounthar:stable-2.492.3-backport-1

Conversation

@gounthar

@gounthar gounthar commented Mar 18, 2025

Copy link
Copy Markdown
Contributor

Thanks a lot to @krisstern and @MarkEWaite for their guidance and patience.

See:

Fixed
-----

JENKINS-75224           Minor                   2025-02-03 21:19
        Remove support for ?jsonp parameter from Flavor.JSON in Stapler
        improvement
        https://issues.jenkins.io/browse/JENKINS-75224

JENKINS-75278           Minor                   2025-02-13 11:10
        User pages for users with '\' in the user name fail after upgrading to 2.479.1
        bug
        https://issues.jenkins.io/browse/JENKINS-75278           

JENKINS-75321           Minor                   2025-02-21 13:28
        "No builds" displayed for a brief time when loading build history
        bug
        https://issues.jenkins.io/browse/JENKINS-75321

Testing done

mvn clean install

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

Maintainer checklist

  • There are at least two (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 is not blocking the change.
  • Changelog entries in the pull request title and/or Proposed changelog entries are accurate, human-readable, and in the imperative mood.
  • Proper changelog labels are set so that the changelog can be generated automatically.
  • If the change needs additional upgrade steps from users, the upgrade-guide-needed label is set and there is a Proposed upgrade guidelines section in the pull request title (see 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).

basil and others added 30 commits March 17, 2025 19:18
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
(cherry picked from commit 986f631)
Update stapler.version to v1948

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
(cherry picked from commit 14288b1)
…t of build history widget

(cherry picked from commit 5d65d11)
…fter upgrading to 2.479.1 (jenkinsci#10344)

Signed-off-by: Olivier Lamy <olamy@apache.org>
(cherry picked from commit 9f91315)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
(cherry picked from commit 986f631)
…0217)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
(cherry picked from commit 6558a65)
Update stapler.version to v1948

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
(cherry picked from commit 14288b1)
…t of build history widget

(cherry picked from commit 5d65d11)
…fter upgrading to 2.479.1 (jenkinsci#10344)

Signed-off-by: Olivier Lamy <olamy@apache.org>
(cherry picked from commit 9f91315)
@github-actions github-actions Bot added the into-lts This PR is filed against an LTS branch label Mar 18, 2025
@gounthar gounthar changed the title Stable 2.492.3 backport 1 Backporting for Jenkins 2.492.3 release candidate Mar 18, 2025
@gounthar gounthar marked this pull request as ready for review March 18, 2025 17:01
Comment thread war/pom.xml
<groupId>org.eclipse.jetty.ee9</groupId>
<artifactId>jetty-ee9-maven-plugin</artifactId>
<version>12.0.16</version>
<version>12.0.17</version>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@krisstern krisstern requested review from basil and timja March 18, 2025 18:05
@gounthar

gounthar commented Mar 18, 2025

Copy link
Copy Markdown
Contributor Author

It looks like one test (hudson.cli.EnablePluginCommandTest.enableNoPluginsWithRestartIsNoOp) failed.

I sincerely apologize if this issue causes us to miss the release candidate deadline.

@daniel-beck

Copy link
Copy Markdown
Member

Why are there 40 commits in this PR?

@gounthar

Copy link
Copy Markdown
Contributor Author

I haven't squashed the commits yet because I was attempting to "document" my journey while getting everything to compile.
If the result looks more like a spaghetti bowl than a Hanoi tower, we still have alternatives. Mark has a branch that builds with only a few commits, and Kris also has a successful branch.

@MarkEWaite

MarkEWaite commented Mar 18, 2025

Copy link
Copy Markdown
Contributor

Why are there 40 commits in this PR?

Many of the small commits are spotbugs fixes. However, as far as I can tell, they aren't required.

Here are the commits that need to be cherry picked for the desired 3 backports:

JENKINS-75224 - Remove support for ?jsonp parameter from Flavor.JSON in Stapler

Unfortunately, the sequence of cherry pick commits that @gounthar used is missing

JENKINS-75321 - "No builds" displayed for a brief time when loading build history

JENKINS-75278 - User pages for users with '\' in the user name fail after upgrading to 2.479.1

As far as I can tell, if we want JENKINS-75278, then we need to include JENKINS-75224 and its 6 cherry picked commits as predecessors to JENKINS-75278. If we were to decide that we do not want JENKINS-75224, then the cherry-picked commits for JENKINS-75224 will still be needed as part of JENKINS-75278. Updating the Jetty version needs those extra commits to be cherry-picked.

@basil

basil commented Mar 18, 2025

Copy link
Copy Markdown
Member

Can someone explain to me the reason why we want JENKINS-75224 backported? Is it wanted in itself for some particular reason, or only as an apparent prerequisite for JENKINS-75278? While I included jenkinsci/stapler#649 in JENKINS-75278 for completeness, strictly speaking the Stapler portion of those changes is only test code and not necessary to backport JENKINS-75278 to production. Unless there is a particular reason to backport JENKINS-75224 in and of itself, I see no reason to make any Stapler changes as part of the backport of JENKINS-75278.

@MarkEWaite

Copy link
Copy Markdown
Contributor

Can someone explain to me the reason why we want JENKINS-75224 backported?

@gounthar and I included it because it was labeled as an lts-candidate. However, considering the number of other changes that need to be cherry picked in order to include it, I think it may be best to not include it.

I have investigated further and what I said earlier was wrong. I said:

As far as I can tell, if we want JENKINS-75278, then we need to include JENKINS-75224 and its 6 cherry picked commits as predecessors to JENKINS-75278. If we were to decide that we do not want JENKINS-75224, then the cherry-picked commits for JENKINS-75224 will still be needed as part of JENKINS-75278. Updating the Jetty version needs those extra commits to be cherry-picked.

If we don't include JENKINS-75224 in the backport, then the cherry picked commits are much simpler:

Those commits apply cleanly to stable-2.492 with only 1 conflict that is easily resolved. The result is in https://github.com/MarkEWaite/jenkins/tree/stable-2.492.3-backport-1-c

@daniel-beck

daniel-beck commented Mar 19, 2025

Copy link
Copy Markdown
Member

Remove support for ?jsonp parameter from Flavor.JSON in Stapler

As author and backport requester, this change is definitely not worth this mess. It would have been nice to have and that's it.

@MarkEWaite

Copy link
Copy Markdown
Contributor

I've proposed an alternative backports pull request:

Automated tests are still running on my local computer. I'll also do some interactive testing while ci.jenkins.io is evaluating the pull request.

@gounthar

Copy link
Copy Markdown
Contributor Author

Thank you so much, Mark, and I apologize to everyone for the mess with the pull request. It's full of spaghetti cherry picks!

@MarkEWaite

Copy link
Copy Markdown
Contributor

Thanks @gounthar . I think we should close this pull request and instead we should use:

Thanks very much for being the 2.492.3 release lead.

@gounthar gounthar closed this Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

into-lts This PR is filed against an LTS branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants