Skip to content

fix(ci): repair Renovate preset and validate config in PRs (#520) - #523

Merged
c-vigo merged 8 commits into
devfrom
bugfix/520-fix-renovate-config
Apr 29, 2026
Merged

c-vigo merged 8 commits into
devfrom
bugfix/520-fix-renovate-config

Conversation

@c-vigo

@c-vigo c-vigo commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Resolves the Renovate configuration error that caused issue #520 (Mend stopped opening dependency PRs).

Changes

  • Preset (assets/workspace/.github/renovate-default.json): split Python packageRules so matchUpdateTypes and rangeStrategy are not in the same rule; rename baseBranches to baseBranchPatterns.
  • Root and workspace renovate.json: remove uv from enabledManagers. uv is not a registered Renovate manager id; pep621 covers pyproject.toml and uv.lock per Renovate docs.
  • CI: add .github/workflows/renovate-validate.yml running renovate-config-validator --strict when renovate JSON changes.
  • Changelog: Unreleased entries under Added / Fixed.

Verification

npx --yes --package renovate@latest -c "renovate-config-validator --strict renovate.json assets/workspace/.github/renovate-default.json"

Refs: #520

c-vigo added 4 commits April 28, 2026 16:23
Split Python packageRules so matchUpdateTypes and rangeStrategy are not
combined; migrate baseBranches to baseBranchPatterns; remove invalid uv
from enabledManagers (pep621 covers uv.lock); add renovate-validate workflow.

Refs: #520
The pinned SHA for actions/setup-node v4.1.0 was corrupted in the last 12 hex chars, causing "repository or version not found" at action resolution time. Replace with the real tag SHA.

Refs: #520
Align EXPECTED_VERSIONS with the latest upstream releases the image now installs (gh 2.92, just 1.50, cargo-binstall 1.18) so the version assertions pass on freshly built images.

Refs: #520

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Fixes the Renovate configuration regression that stopped dependency PRs (issue #520) by adjusting the shared preset and adding CI validation to prevent invalid Renovate JSON from merging.

Changes:

  • Repair Renovate preset rules (Python packageRules split; baseBranches → baseBranchPatterns) and remove invalid uv manager usage from Renovate configs.
  • Add a PR workflow to run renovate-config-validator --strict when Renovate JSON files change.
  • Update changelogs and bump expected tool versions in the image verification tests.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tests/test_image.py Updates expected tool versions used by image verification tests.
renovate.json Removes uv from enabledManagers in root Renovate config.
assets/workspace/renovate.json Removes uv from workspace template Renovate config.
assets/workspace/.github/renovate-default.json Fixes preset branch targeting and Python packageRules behavior.
CHANGELOG.md Adds Unreleased entries documenting the Renovate fix and CI validation.
assets/workspace/.devcontainer/CHANGELOG.md Mirrors Unreleased changelog entries for the workspace template.
.github/workflows/renovate-validate.yml Introduces PR-time Renovate config validation workflow.
.github/pr-draft-479-into-release-0.3.2.md Removes an obsolete PR draft file.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/renovate-validate.yml Resolved
Comment thread tests/test_image.py Resolved
c-vigo added 4 commits April 28, 2026 20:28
assets/workspace/renovate.json uses {{GITHUB_REPOSITORY}} in extends; strict
mode rejects it until init.

Refs: #520
Mirror .github/workflows/renovate-validate.yml in the justfile so contributors
can run renovate-config-validator --strict against tracked renovate*.json
files before pushing. Wire it into the aggregate `just test` target and
note it under the existing #520 changelog entry.

Refs: #520
@c-vigo
c-vigo enabled auto-merge April 29, 2026 06:24
@c-vigo
c-vigo merged commit 01e630d into dev Apr 29, 2026
14 checks passed
@c-vigo
c-vigo deleted the bugfix/520-fix-renovate-config branch April 29, 2026 06:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants