Skip to content

chore: enable Cypress examples updates with Renovate#1690

Closed
MikeMcC399 wants to merge 1 commit intocypress-io:masterfrom
MikeMcC399:renovate-add-cypress
Closed

chore: enable Cypress examples updates with Renovate#1690
MikeMcC399 wants to merge 1 commit intocypress-io:masterfrom
MikeMcC399:renovate-add-cypress

Conversation

@MikeMcC399
Copy link
Copy Markdown
Collaborator

@MikeMcC399 MikeMcC399 commented Mar 19, 2026

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 ignorePaths for "**/examples/**".

Change

Modify the renovate.json to update the npm module cypress in the examples sub-directories.

Verification

npx --yes --package renovate -- renovate-config-validator

Note

Low Risk
Low risk config-only change that only affects which Renovate PRs are created for cypress under examples/**. Potential impact is limited to increased dependency update PR volume for those example projects.

Overview
Allows Renovate to update the cypress npm dependency inside examples/** by adding a targeted packageRules override, despite the inherited config:recommended ignore settings.

All other Renovate behavior (e.g., disabling dependencies updates generally, grouping eslint updates, scheduling) remains unchanged.

Written by Cursor Bugbot for commit 4cfe914. This will update automatically on new commits. Configure here.

@cypress-app-bot
Copy link
Copy Markdown

@MikeMcC399 MikeMcC399 added type: enhancement New feature or request renovate labels Mar 19, 2026
@MikeMcC399 MikeMcC399 self-assigned this Mar 19, 2026
@MikeMcC399 MikeMcC399 marked this pull request as ready for review March 19, 2026 08:17
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

"matchPackageNames": ["cypress"],
"matchFileNames": ["examples/**"],
"enabled": true
},
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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.

Fix in Cursor Fix in Web

@MikeMcC399 MikeMcC399 marked this pull request as draft March 19, 2026 08:40
@MikeMcC399 MikeMcC399 closed this Mar 19, 2026
@MikeMcC399 MikeMcC399 deleted the renovate-add-cypress branch March 19, 2026 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

renovate type: enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants