Skip to content

fix: correct Renovate preset path and migrate matchPackagePatterns#194

Merged
vredchenko merged 1 commit intomainfrom
fix/renovate-preset-and-package-rules
Apr 28, 2026
Merged

fix: correct Renovate preset path and migrate matchPackagePatterns#194
vredchenko merged 1 commit intomainfrom
fix/renovate-preset-and-package-rules

Conversation

@vredchenko
Copy link
Copy Markdown
Collaborator

Summary

Two related Renovate config cleanups.

1. Self-extending preset uses wrong separator (blocking)

This repo hosts the shared `renovate/default.json` preset, and its own `renovate.json` self-extends that preset. Renovate's reference syntax uses `:` for sub-preset names within a single file and `//` for nested file paths, so the correct reference is:

```
github>DiamondLightSource/smartem-devtools//renovate/default
```

The previous `:` form fails preset resolution ("Preset name not found within published preset config"), so Renovate cannot process this repo at all.

This is worth fixing here especially because this is the canonical example other DLS repos copy from. The same broken syntax was picked up in:

2. matchPackagePatterns -> matchPackageNames (cosmetic)

`matchPackagePatterns` was deprecated and Renovate auto-migrates it to `matchPackageNames` with the embedded `/regex/` syntax on every run. Auto-migration is silent and harmless, but pinning the replacement in source removes the migration step. Exact-name matches now use plain strings, prefix patterns keep regex form.

The `playwright-skill` and `Python deps` rules already used the modern form and are unchanged.

Test plan

  • `renovate-config-validator --strict` passes
  • After merge, confirm Renovate runs cleanly on this repo and the cascading fixes in dependent repos resolve cleanly

This repo hosts the shared renovate/default.json preset, and its own
renovate.json self-extends that preset using the wrong separator.
Renovate's syntax uses : for sub-preset names and // for nested file
paths, so the correct reference is

  github>DiamondLightSource/smartem-devtools//renovate/default

The previous : form fails preset resolution ("Preset name not found
within published preset config"), so Renovate could not process this
repo and stopped opening PRs.

Worth fixing here especially because this is the canonical example
that other DLS repos copy from (smartem-decisions, smartem-frontend
and fandanGO-cryoem-dls have all picked up the same broken syntax;
matching PRs are open in those repos: smartem-decisions#281,
smartem-frontend#81, fandanGO-cryoem-dls#17).

Also migrates matchPackagePatterns to matchPackageNames with the
embedded /regex/ form to remove silent auto-migration churn on every
Renovate run.
@vredchenko vredchenko merged commit 4d58ee7 into main Apr 28, 2026
7 checks passed
@vredchenko vredchenko deleted the fix/renovate-preset-and-package-rules branch April 28, 2026 14:53
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.

1 participant