[#2332] Added stability flags workaround and fixed manual trigger bypass for dependency updates.#2424
Conversation
WalkthroughAdded a Renovate Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
2 similar comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2424 +/- ##
==========================================
- Coverage 79.64% 79.14% -0.51%
==========================================
Files 126 120 -6
Lines 6761 6642 -119
Branches 44 0 -44
==========================================
- Hits 5385 5257 -128
- Misses 1376 1385 +9 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…endency update runs.
…s schedules and limits on manual runs.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Code coverage (threshold: 90%) Per-class coverage |
This comment has been minimized.
This comment has been minimized.
2 similar comments
This comment has been minimized.
This comment has been minimized.
|
Code coverage (threshold: 90%) Per-class coverage |
Closes #2332
Summary
This PR addresses two Renovate improvements:
Stability flags workaround: Renovate has a known bug (renovatebot/renovate#24993) where it incorrectly rewrites version constraints that include stability flags (e.g.,
^2@alphabecomes^2.0.0-alpha4@alpha). A newpackageRulesentry inrenovate.jsonsetsrangeStrategy: "update-lockfile"for any Composer package whose constraint ends with a stability flag. Renovate will still keepcomposer.lockup to date but will not modify the constraint incomposer.json.Manual trigger bypass: The
update-dependencies.ymlworkflow now usesRENOVATE_FORCEto bypass schedules, PR hourly limits, and branch concurrent limits when manually triggered. The previous approach of mutating the localrenovate.jsonwithjqdid not work because Renovate reads the repo-level config from the remote repository, not the locally modified file.RENOVATE_FORCEis Renovate's highest-priority config layer and correctly overrides repo-level settings.Changes
Stability flags (
renovate.json)packageRulesentry matching Composer packages with stability flags (/@(dev|alpha|beta|RC|stable)$/) and settingrangeStrategy: "update-lockfile".drupal/config_update(^2@alpha),drupal/coder(^9@alpha),phpcompatibility/php-compatibility(^10.0@alpha).Manual trigger bypass (
.github/workflows/update-dependencies.yml)jq-based schedule stripping step (it had no effect on the repo-level config Renovate reads).RENOVATE_FORCEenv var on manual dispatch that sets{"schedule":[],"prHourlyLimit":0,"branchConcurrentLimit":0}, bypassing all three restrictions at the highest config priority level.preserve_schedulesinput still works — when set totrue,RENOVATE_FORCEis not applied.Snapshots