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-68926] update handlebars #6965

Merged
merged 5 commits into from Aug 5, 2022

Conversation

scherler
Copy link
Contributor

@scherler scherler commented Aug 4, 2022

Signed-off-by: Thorsten Scherler scherler@gmail.com

See JENKINS-68926.

See the handlebars changelog for details of changes since handlebars 4.0.

Proposed changelog entries

  • Update handlebars from 3.0.8 to 4.7.7

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.
  • New deprecations are annotated with @Deprecated(since = "TODO") or @Deprecated(forRemoval = true, since = "TODO") if applicable.
  • New or substantially changed JavaScript is not defined inline and does not call eval to ease future introduction of Content-Security-Policy directives (see documentation on jenkins.io).
  • 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 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).

Signed-off-by: Thorsten Scherler <scherler@gmail.com>
@MarkEWaite MarkEWaite changed the title chore: [feature/jenkins-68926] update hablebars chore: [feature/jenkins-68926] update handlebars Aug 4, 2022
@MarkEWaite MarkEWaite changed the title chore: [feature/jenkins-68926] update handlebars [JENKINS-68926] update handlebars Aug 4, 2022
@daniel-beck
Copy link
Member

Now that's a name I haven't heard in a long time

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.

We already did the due diligence to ensure that no plugins are using this code in #6753 (comment) 👍

According to JENKINS-68926 apparently at one point there were errors like

Handlebars: Access has been denied to resolve the property "installWizard_welcomePanel_title" because it is not an "own property" of its parent.

However, I confirmed those errors no longer occur on trunk as of this PR. Note that we recently ripped out a number of legacy tests in #6908, so it is very possible that the "Access has been denied" errors were only being printed from an (unrealistic!) test scenario that no longer exists.

I tested this interactively in the UI and verified that the setup wizard and "Available Plugins" page worked as expected and no errors were printed to the browser console logs or backend log.

From my perspective this is ready to land.

@basil basil requested a review from NotMyFault August 4, 2022 21:15
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.

Optional suggestion for your consideration: Local testing shows that the dependency tree in yarn.lock can be simplified after these changes by running yarn dedupe. If you can do that as part of this PR that would be appreciated. If that is asking too much, I will do it in a follow-up PR.

@basil basil added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code, used by dependency tooling labels Aug 4, 2022
@basil
Copy link
Member

basil commented Aug 4, 2022

I also took the liberty of pushing commit b184a98 to allow Renovate to update this package automatically in the future.

Copy link
Member

@daniel-beck daniel-beck left a comment

Choose a reason for hiding this comment

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

Tested setup wizard and plugin manager available tab, both worked fine (well, nothing broke that I would consider caused by this change).

@basil
Copy link
Member

basil commented Aug 4, 2022

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 Aug 4, 2022
@NotMyFault NotMyFault added the skip-changelog Should not be shown in the changelog label Aug 4, 2022
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.

Nice one!

I'm taking a wild guess and assume the prior error was down to an other ancient dependency, but nice to see it gone.

I went ahead and pinned handlebars on here, otherwise Renovate picks it up afterwards.

Signed-off-by: Thorsten Scherler <scherler@gmail.com>
@basil basil merged commit 9653128 into jenkinsci:master Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code, used by dependency tooling ready-for-merge The PR is ready to go, and it will be merged soon if there is no negative feedback skip-changelog Should not be shown in the changelog squash-merge-me Unclean or useless commit history, should be merged only with squash-merge
Projects
None yet
4 participants