chore: enable Cypress examples updates with Renovate#1690
chore: enable Cypress examples updates with Renovate#1690MikeMcC399 wants to merge 1 commit intocypress-io:masterfrom
Conversation
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
| "matchPackageNames": ["cypress"], | ||
| "matchFileNames": ["examples/**"], | ||
| "enabled": true | ||
| }, |
There was a problem hiding this comment.
packageRules cannot override ignorePaths file exclusion
High Severity
The config:recommended preset includes :ignoreModulesAndTests, which sets ignorePaths to include "**/examples/**". This causes Renovate to skip discovering and parsing package files in examples/ directories entirely during the file discovery phase—before packageRules are ever evaluated. The new packageRules entry with "enabled": true and "matchFileNames": ["examples/**"] will never match anything because no packages from those paths exist in Renovate's processing pipeline. The config needs to override ignorePaths (which is non-mergeable) or use "ignorePresets": [":ignoreModulesAndTests"] to actually allow Renovate to discover those package files.


Situation
When a new version of Cypress is released, it is being updated in the examples sub-directories by manually running scripts/update-cypress-latest.sh on Ubuntu and then manually submitting a PR with the changes.
Renovate is already established in this repo, however the settings in renovate.json include extend from config:recommended, which includes :ignoreModulesAndTests with
ignorePathsfor"**/examples/**".Change
Modify the renovate.json to update the npm module
cypressin the examples sub-directories.Verification
Note
Low Risk
Low risk config-only change that only affects which Renovate PRs are created for
cypressunderexamples/**. Potential impact is limited to increased dependency update PR volume for those example projects.Overview
Allows Renovate to update the
cypressnpm dependency insideexamples/**by adding a targetedpackageRulesoverride, despite the inheritedconfig:recommendedignore settings.All other Renovate behavior (e.g., disabling
dependenciesupdates generally, grouping eslint updates, scheduling) remains unchanged.Written by Cursor Bugbot for commit 4cfe914. This will update automatically on new commits. Configure here.