Skip to content

Conversation

@janfaracik
Copy link
Member

@janfaracik janfaracik commented Oct 17, 2025

This PR adds support for the new experimental Run UI, in Jenkins 2.232 onwards. This is currently behind a feature flag, and this plugin supports both legacy and new views.

Screenshot 2025-10-21 at 19 48 28 Screenshot 2025-10-21 at 19 49 11 Screenshot 2025-10-21 at 19 49 58

The interface isn't perfect, but it gives us a good base to build on.

Note: there is a problem with tab ordering, but thats an issue in core - not this plugin.

Testing done

  • Plugin works in old UI as expected
  • Plugin displays as a tab in new UI
  • Card shows in new UI

Submitter checklist

  • Make sure you are opening from a topic/feature/bugfix branch (right side) and not your main branch!
  • Ensure that the pull request title represents the desired changelog entry
  • Please describe what you did
  • Link to relevant issues in GitHub or Jira
  • Link to relevant pull requests, esp. upstream and downstream changes
  • Ensure you have provided tests that demonstrate the feature works or the issue is fixed

@janfaracik janfaracik force-pushed the adjust-for-new-run-ui branch from 2605695 to 138145d Compare October 17, 2025 10:25
@janfaracik
Copy link
Member Author

Test fix in jenkinsci/jenkins#11219

@janfaracik janfaracik marked this pull request as ready for review October 21, 2025 18:49
@janfaracik janfaracik requested a review from a team as a code owner October 21, 2025 18:49
${it.skipCount}
</div>
<j:if test="${it.passCount gt prev.passCount}">
<a href="history"
Copy link
Member

Choose a reason for hiding this comment

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

This page hasn't been adapted, it still has a sidepanel:

image

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated.

${it.passCount}
</div>

<j:if test="${it.failCount gt prev.failCount}">
Copy link
Member

Choose a reason for hiding this comment

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

I'm a bit confused on why the history link only shows up conditionally? Fail count could be unrelated tests changing.

There's currently no way to get to the root test history page of the test report as far as I can tell.

Copy link
Member Author

Choose a reason for hiding this comment

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

Its odd - I've updated it so history always shows.

<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:l="/lib/layout" xmlns:p="/prism" xmlns:t="/lib/hudson" xmlns:test="/lib/hudson/test">
<l:layout title="${it.displayName} - ${it.run}">
<st:include page="sidepanel.jelly" />
Copy link
Member

Choose a reason for hiding this comment

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

not sure where its coming from maybe l:run-subpage but I'm getting the wrong link for Tests in the sidepanel when the experimental flag is disabled.

http://localhost:8089/jenkins/job/junit-attachments-test/view/change-requests/job/PR-2/2/testReport/

If you click on Tests you go to a 404 with testReport nested:
http://localhost:8089/jenkins/job/junit-attachments-test/view/change-requests/job/PR-2/2/testReport/testReport

same if you click from any other sub page to Tests.

Copy link
Member

Choose a reason for hiding this comment

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

I was able to reproduce it on weekly.ci as well: https://weekly.ci.jenkins.io/job/pipeline/21/testReport/

Likely caused by a refactor for the new build UI as its fine on ci.jenkins.io:
https://ci.jenkins.io/job/Core/job/jenkins/job/master/7882/testReport/

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed now - also spotted the same issue in Pipeline Graph View, opened a PR for it

Copy link
Member

@timja timja left a comment

Choose a reason for hiding this comment

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

Looking really good, added some feedback from testing, not far off I think!

Copy link
Member

@timja timja left a comment

Choose a reason for hiding this comment

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

LGTM.

just the i18n issue and I'd like to understand what's going on with sidepanel linking:
https://github.com/jenkinsci/junit-plugin/pull/755/files?w=1#r2449728574

@timja timja merged commit feaf21e into jenkinsci:master Oct 25, 2025
17 checks passed
@janfaracik janfaracik deleted the adjust-for-new-run-ui branch October 25, 2025 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants