checkPlugin: update all plugin dependencies during autofix#7404
Merged
Conversation
Run pnpm update on plugins during autofix to bump all dependencies to their latest compatible versions, reducing dependabot noise and keeping plugins current. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Review Summary by QodoAdd pnpm update step to checkPlugin autofix mode
WalkthroughsDescription• Add pnpm update step during autofix mode • Updates all plugin dependencies to latest compatible versions • Reduces dependabot PR noise across plugin repositories • Executes before pnpm install and linting steps Diagramflowchart LR
autoFix["autoFix mode enabled"]
update["pnpm update<br/>dependencies"]
install["pnpm install"]
lint["ESLint & linting"]
autoFix -- "if true" --> update
update --> install
install --> lint
File Changes1. bin/plugins/checkPlugin.ts
|
Code Review by Qodo
1. Update failure aborts autofix
|
Comment on lines
+406
to
+410
| // Update all dependencies to their latest compatible versions. | ||
| if (autoFix) { | ||
| logger.info('Updating dependencies...'); | ||
| execSync('pnpm update', {cwd: `${pluginPath}/`, stdio: 'inherit'}); | ||
| } |
There was a problem hiding this comment.
1. Update failure aborts autofix 🐞 Bug ☼ Reliability
In autofix mode, checkPlugin.ts runs pnpm update via execSync() without a try/catch, so any non-zero exit (registry/network/resolution failure) terminates the script before install/lint/diff/commit steps can run.
Agent Prompt
### Issue description
`pnpm update` is executed with `execSync()` in autofix mode without error handling; if it fails, the script exits early and skips later autofix steps (install, lint, showing diff, and optional commit/push).
### Issue Context
There is already precedent in this script for tolerating failures and continuing (the lint section wraps `execSync()` in a try/catch).
### Fix Focus Areas
- bin/plugins/checkPlugin.ts[406-410]
- bin/plugins/checkPlugin.ts[425-432]
### Suggested change
Wrap the `pnpm update` `execSync()` call in a try/catch. On failure, log a warning/error and continue to the existing `pnpm install` + linting flow (or explicitly rethrow with a clearer message if you intend update failures to be fatal).
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pnpm updatestep to checkPlugin.ts when running in autofix modepnpm installand lintingTest plan
pnpm run checkPlugin ep_some_plugin autofixand verify dependencies are updated🤖 Generated with Claude Code