Skip to content

Commit dda9d76

Browse files
committed
test: pin micrometer compatibility ref
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
1 parent 5b5bd33 commit dda9d76

2 files changed

Lines changed: 25 additions & 5 deletions

File tree

.github/renovate.json5

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,21 @@
3838
groupName: "protobuf",
3939
separateMajorMinor: false,
4040
},
41+
{
42+
"description": "Flint autofix: align extractVersion for protoc",
43+
"extractVersion": "^(?<version>.+)\\.0\\.0$",
44+
"matchDepNames": [
45+
"protoc"
46+
]
47+
}
48+
],
49+
customManagers: [
50+
{
51+
customType: "regex",
52+
managerFilePatterns: ["/^\\.github\\/workflows\\/micrometer-compatibility\\.yml$/"],
53+
matchStrings: [
54+
"# renovate: datasource=(?<datasource>\\S+) depName=(?<depName>\\S+) packageName=(?<packageName>\\S+) currentValue=(?<currentValue>\\S+)\\n\\s*DEFAULT_MICROMETER_REF:\\s*(?<currentDigest>[a-f0-9]{40})",
55+
],
56+
},
4157
],
42-
customManagers: [],
43-
}
58+
}

.github/workflows/micrometer-compatibility.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,15 @@ on:
1212
micrometer-ref:
1313
description: Micrometer branch, tag, or commit to test
1414
required: false
15-
default: feat/prometheus-client-opt-in
15+
default: 1af1b3185058941eea57dc467bfe0df5a4786fe4
1616

1717
permissions: {}
1818

19+
env:
20+
DEFAULT_MICROMETER_REPOSITORY: zeitlinger/micrometer
21+
# renovate: datasource=git-refs depName=zeitlinger/micrometer packageName=https://github.com/zeitlinger/micrometer currentValue=feat/prometheus-client-opt-in
22+
DEFAULT_MICROMETER_REF: 1af1b3185058941eea57dc467bfe0df5a4786fe4
23+
1924
jobs:
2025
micrometer-compatibility:
2126
runs-on: ubuntu-24.04
@@ -34,6 +39,6 @@ jobs:
3439
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
3540
- name: Run Micrometer compatibility tests
3641
env:
37-
MICROMETER_REPOSITORY: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.micrometer-repository || 'zeitlinger/micrometer' }}
38-
MICROMETER_REF: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.micrometer-ref || 'feat/prometheus-client-opt-in' }}
42+
MICROMETER_REPOSITORY: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.micrometer-repository || env.DEFAULT_MICROMETER_REPOSITORY }}
43+
MICROMETER_REF: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.micrometer-ref || env.DEFAULT_MICROMETER_REF }}
3944
run: mise run micrometer:test

0 commit comments

Comments
 (0)