-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Introduce Dependabot pull requests for npm. #8204
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
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the Core Committers: Use this line as a base for the props when committing in SVN: To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
|
I've created a spreadsheet with all npm dependencies in order to double check the groupings. Everything is grouping as expected. |
|
Also, ignore the Composer group in the |
|
Thanks for the thorough work looking into this! Definitely a good opportunity to think about how to automate the rest too, like
Note that you can add |
There are several
TIL! This would still be easy to forget. So worth keeping in mind when considering the contributor flow here. I think automation is the better option anyway. |
|
I've opened #8260 to address some of the changes to built files required as a result of updating dependencies. It does not change the script versions in the unit tests or |
# Conflicts: # .github/dependabot.yml
|
I'm currently leaning towards #8260 combined with monitoring devDependencies only in |
|
We should definitely try to automate this as much as possible, so a big +1 from me. #8260 does look like a good start here. We should also consider ways that we could eliminate some of these manual tasks (rather than automating). Do you have an example of a test file that expects a specific dependency version to be defined? |
Definitely agree the fewer tasks the better. Removing the
Yes, the |
Dependabot updates have proven useful for tracking and updating 3rd-party GitHub Actions.
Without these updates configured, someone needs to notice there is a new release for a dependency, create a PR, create a Trac ticket, etc.
Previously, we have avoided managing npm dependencies through Dependabot for fear of too much noise. However with 52
devDependenciesand 24 non-@wordpress/dependencies(which are managed through thegrunt sync-gutenberg-packagesscript), this is not sustainable or a good use of time when it can be mostly automated.To test this PR, I've gone and pushed this
dependabot.ymlfile to my desrosj/wordpress-develop fork, enabled Dependabot updates, and downgraded every dependency in order to trigger an update PR. You can find the alerts in the open PR list.I've organized all dependencies into groups of related functionality.
There are a few considerations though:
script-loader.php.For now, I think this is OK because someone can pick up the PR as a starting point and make the necessary final changes. In the future, we could add a GHA that detects when a built script file needs to be updated and automatically commit the difference for review. But once changes are made to a PR, Dependabot ignores it going forward. So that would need to be considered carefully.
Trac ticket: https://core.trac.wordpress.org/ticket/62221
This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.