Skip to content

Commit

Permalink
feat: renovate otel grouping and pip-compile fixes (#2138)
Browse files Browse the repository at this point in the history
* feat: use a json5 file for renovate to allow comments

* Group python OTel deps, update language labels.

language label update was taken from renovate's own config migration.

* add k8s ignore paths from original config

Co-authored-by: Nim Jayawardena <nimjay@google.com>

* add nodejs and dotnet tagging, per nim's comment

---------

Co-authored-by: Nim Jayawardena <nimjay@google.com>
  • Loading branch information
muncus and NimJay authored Sep 29, 2023
1 parent 58580e8 commit 3a6a0e8
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 71 deletions.
71 changes: 0 additions & 71 deletions .github/renovate.json

This file was deleted.

70 changes: 70 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{
"extends": [
"config:recommended"
],
"pip-compile": {
"enabled": true,
"fileMatch": ["(^|/)requirements\\.in$"]
},
// pip-compile handles requirements.txt updates.
"pip_requirements": {
"enabled": false
},
"constraints": {
"python": "~=3.11.0"
},
"prConcurrentLimit":10,
"stabilityDays":7,
"vulnerabilityAlerts":{
"labels":[
"type:security"
],
"stabilityDays":0
},
"labels": ["dependencies"],
"kubernetes": {
"fileMatch": ["\\.yaml$"],
"ignorePaths": [
"release/**",
"kustomize/base/**"
]
},
// Dependency Dashboard should be excluded from SLO calculation.
"dependencyDashboardLabels": [
"type: process",
],
"packageRules": [
// Label PRs based on the languages they contain
// category ids are listed at https://docs.renovatebot.com/modules/manager/
{"matchCategories": ["python"], "addLabels": ["lang: python"]},
{"matchCategories": ["java"], "addLabels": ["lang: java"]},
{"matchCategories": ["golang"], "addLabels": ["lang: go"]},
{"matchCategories": ["js"], "addLabels": ["lang: nodejs"]},
{"matchCategories": ["dotnet"], "addLabels": ["lang: dotnet"]},
{"matchCategories": ["docker"], "pinDigests": true},
{
"matchUpdateTypes": ["minor", "patch", "digest"],
"automerge": true
},
{
"matchDepTypes": ["devDependencies"],
"automerge": true
},
// OpenTelemetry has tight version coupling.
// For go, js, and dotnet, there are 'monorepo:opentelemetry-$LANG' presets already included.
{
"description": "python otel instrumentation libraries are currently pre-release",
"groupName": "opentelemetry",
"matchPackagePrefixes": ["opentelemetry-instrumentation"],
"ignoreUnstable": false,
"matchDatasources": ["pypi"]
},
{
"description": "group all OTel deps, as they have tight version coupling",
"groupName": "opentelemetry",
"matchPackagePrefixes": ["opentelemetry-"],
"matchDatasources": ["pypi"]
}
],
"platformAutomerge":true
}

0 comments on commit 3a6a0e8

Please sign in to comment.