Skip to content

Commit

Permalink
ci: update renovate to update angular packages when available (#46437)
Browse files Browse the repository at this point in the history
We recently aggressively limited Renovate to only two days and set the
hourly limit to one. This resulted in e.g. Angular not being updated
for quite a while now, as well as missing out on e.g. dev-infra updates
which should happen as often as possible.

This commit reworks the config to (1) avoid legacy syntax and (2) to
update Angular-cross repo depsas often as possible. Also groups Bazel
dependencies better and attempts to fix the non-working Babel dep
grouping.

PR Close #46437
  • Loading branch information
devversion authored and AndrewKushnir committed Jun 21, 2022
1 parent 74451fd commit 516c836
Showing 1 changed file with 39 additions and 52 deletions.
91 changes: 39 additions & 52 deletions renovate.json
@@ -1,17 +1,20 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"baseBranches": ["main"],
"enabledManagers": ["npm", "bazel", "github-actions"],
"stopUpdatingLabel": "action: merge",
"pinVersions": false,
"semanticCommits": true,
"semanticPrefix": "build",
"pinDigests": true,
"semanticCommits": "enabled",
"semanticCommitScope": "",
"semanticCommitType": "build",
"separateMajorMinor": false,
"prHourlyLimit": 1,
"stopUpdatingLabel": "action: merge",
"labels": ["target: patch", "comp: build & ci", "action: review"],
"prHourlyLimit": 3,
"timezone": "America/Tijuana",
"lockFileMaintenance": {
"enabled": true
},
"schedule": ["after 10pm every monday", "before 4am every tuesday"],
"baseBranches": ["main"],
"labels": ["target: patch", "comp: build & ci", "action: review"],
"ignoreDeps": [
"@angular/animations-12",
"@angular/common-12",
Expand All @@ -37,67 +40,51 @@
"selenium-webdriver",
"watchr"
],
"packageFiles": [
"WORKSPACE",
"integration/bazel/WORKSPACE",
"package.json",
"packages/**/package.json",
"aio/package.json",
".github/workflows/**/*.yml"
],
"packageRules": [
{
"packagePatterns": [
"^@angular/.*",
"^@angular-devkit/.*",
"^@schematics/.*",
"angular/dev-infra"
],
"groupName": "angular",
"pinVersions": false
"matchPackagePatterns": ["*"],
"matchUpdateTypes": ["minor", "patch"],
"groupName": "all non-major dependencies",
"schedule": ["after 10pm every monday", "before 4am every tuesday"]
},

{
"packagePatterns": ["^@babel/.*"],
"groupName": "babel",
"pinVersions": false
"matchPackagePatterns": ["^@bazel/.*", "^build_bazel.*"],
"groupName": "bazel setup",
"schedule": ["at any time"]
},

{
"packagePatterns": ["^@bazel/.*", "^build_bazel.*"],
"groupName": "bazel",
"pinVersions": false
"matchPackagePrefixes": ["@angular/", "angular/", "@angular-devkit", "@schematics/"],
"followTag": "next",
"groupName": "cross-repo Angular dependencies",
"schedule": ["at any time"]
},

{
"packageNames": ["typescript", "rxjs", "tslib"],
"separateMinorPatch": true
"matchPackagePrefixes": ["@babel/"],
"groupName": "babel dependencies"
},

{
"packageNames": ["typescript", "rxjs", "tslib"],
"updateTypes": ["minor", "major"],
"enabled": false
"matchPackageNames": ["typescript", "tslib"],
"groupName": "typescript dependencies"
},

{
"matchCurrentVersion": "0.0.0-PLACEHOLDER",
"enabled": false
"matchPaths": [".github/workflows/scorecard.yml"],
"groupName": "scorecard action dependencies",
"groupSlug": "scorecard-action"
},

{
"excludePackagePatterns": [
"^@angular/.*",
"^@angular-devkit/.*",
"^@schematics/.*",
"angular/dev-infra"
],
"matchPackagePatterns": ["*"],
"matchUpdateTypes": ["minor", "patch"],
"matchCurrentVersion": ">=1",
"groupName": "all non-major dependencies",
"groupSlug": "all-minor-patch",
"schedule": ["after 1am on Thursday"]
"matchPaths": ["integration/!(bazel_workspace_tests)/**"],
"enabled": false
},

{
"matchPaths": [".github/workflows/scorecard.yml"],
"matchPackagePatterns": ["*"],
"groupName": "scorecard action dependencies",
"groupSlug": "scorecard-action"
"matchCurrentVersion": "0.0.0-PLACEHOLDER",
"enabled": false
}
]
}

0 comments on commit 516c836

Please sign in to comment.