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-68103] Fix build progress bar not taking the user to console output #6479

Merged
merged 1 commit into from
Apr 15, 2022

Conversation

janfaracik
Copy link
Contributor

@janfaracik janfaracik commented Apr 14, 2022

See JENKINS-68103

Essentially the hitbox for the link above the progress bar was too tall, meaning that it was very hard to click the progress bar.

Testing done

I changed the number of executors on the built-in node from 2 to 3, then I created a Freestyle job with a shell command of sleep 86400 and checked the "Execute concurrent builds if necessary" option. On Jenkins 2.339, I could see the animated progress bar for all three, and clicking on the progress bar took me to the console as expected. On Jenkins 2.440, I could see the animated progress bar for all three, but hovering over each one made an arrow drop down and made it impossible to click on the progress bar, and clicking on each one took me to the build page rather than the console output. With this PR, the behavior is back to the way it was in 2.339.

Proposed changelog entries

  • Clicking the build progress bar again takes the user to the console output (regression in 2.340).

Proposed upgrade guidelines

N/A

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) and are in the imperative mood. 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
  • New public classes, fields, and methods are annotated with @Restricted or have @since TODO Javadoc, as appropriate.
  • For dependency updates: links to external changelogs and, if possible, full diffs

Desired reviewers

@basil

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 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, 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).

@NotMyFault NotMyFault added the regression-fix Pull request that fixes a regression in one of the previous Jenkins releases label Apr 14, 2022
@NotMyFault NotMyFault requested review from basil and NotMyFault April 14, 2022 14:26
Copy link
Member

@NotMyFault NotMyFault left a comment

Choose a reason for hiding this comment

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

Clicking does work fine now, but hovering over it makes it invisible, if it's the first build, unless that is a different regression I'm currently not aware of:

87c442a649f30fa1993f38a254fe57c2.mp4

Edit: The bar going invisible is introduced in this change, on the current weekly it just blinks:

b0fb3ba462b2bbdcf448f105489da2f6.mp4

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.

Many thanks for taking care of this regression. I know that users will appreciate being able to get to the console log in one click. That will save users a lot of time and frustration, especially if they already had to navigate through several clicks from e.g. the GitHub UI.

The main question we have with regard to PRs like this is what testing was done. The PR description is lacking in this regard. As a courtesy, I have taken the liberty to update the PR description with the following text:

I changed the number of executors on the built-in node from 2 to 3, then I created a Freestyle job with a shell command of sleep 86400 and checked the "Execute concurrent builds if necessary" option. On Jenkins 2.339, I could see the animated progress bar for all three, and clicking on the progress bar took me to the console as expected. On Jenkins 2.440, I could see the animated progress bar for all three, but hovering over each one made an arrow drop down and made it impossible to click on the progress bar, and clicking on each one took me to the build page rather than the console output. With this PR, the behavior is back to the way it was in 2.339.

Please study the Testing Done given above and use this as a model for future PR submissions.


This PR is now ready for merge. We will merge it after approximately 24 hours if there is no negative feedback. Please see the merge process documentation for more information about the merge process. Thanks!

@basil basil added ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback squash-merge-me Unclean or useless commit history, should be merged only with squash-merge labels Apr 14, 2022
@NotMyFault
Copy link
Member

I've updated my comment accordingly, I'm not against merging this but it basically introduces a new issue, fwiw.

@basil
Copy link
Member

basil commented Apr 14, 2022

BTW Alex the animated progress bar becoming invisible when you hover over it is behavior that goes back to at least 2.277 in my testing, so I don't think it is a regression; rather I think it is the expected behavior at this point.

@NotMyFault NotMyFault self-requested a review April 14, 2022 17:59
Copy link
Member

@NotMyFault NotMyFault left a comment

Choose a reason for hiding this comment

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

Approving in this case then.

@basil basil merged commit bbd2e82 into jenkinsci:master Apr 15, 2022
@janfaracik janfaracik deleted the fix-progress-bar-click branch June 9, 2022 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback regression-fix Pull request that fixes a regression in one of the previous Jenkins releases squash-merge-me Unclean or useless commit history, should be merged only with squash-merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants