File tree Expand file tree Collapse file tree 7 files changed +19
-32
lines changed
exporters/prometheus/src/test/java/io/opentelemetry/exporter/prometheus
integration-tests/otlp/src/main/java/io/opentelemetry/integrationtest
perf-harness/src/test/java/io/opentelemetry/perf
sdk/trace/src/jmh/java/io/opentelemetry/sdk/trace Expand file tree Collapse file tree 7 files changed +19
-32
lines changed Original file line number Diff line number Diff line change 3
3
extends : [
4
4
'config:best-practices' ,
5
5
'helpers:pinGitHubActionDigestsToSemver' ,
6
- 'customManagers:githubActionsVersions'
7
6
] ,
7
+ ignorePaths : [ ] , // overwrite default ignore which includes **/test/**
8
+ // used to update docker image versions used in Java test files
8
9
packageRules : [
9
10
{
10
11
// this is to reduce the number of renovate PRs
95
96
] ,
96
97
depNameTemplate : 'java' ,
97
98
} ,
99
+ {
100
+ customType : 'regex' ,
101
+ datasourceTemplate : 'docker' ,
102
+ managerFilePatterns : [
103
+ '**/*.java'
104
+ ] ,
105
+ matchStrings : [
106
+ '"(?<depName>otel/opentelemetry-collector-contrib):(?<currentValue>[^@"]+)(?:@(?<currentDigest>sha256:[a-f0-9]+))?"' ,
107
+ ] ,
108
+ autoReplaceStringTemplate : '"{{depName}}:{{newValue}}{{#if newDigest}}@{{newDigest}}{{/if}}"' ,
109
+ versioningTemplate : 'docker' ,
110
+ } ,
98
111
] ,
99
112
}
Original file line number Diff line number Diff line change 8
8
pull_request :
9
9
workflow_dispatch :
10
10
11
- env :
12
- # renovate: datasource=github-releases depName=opentelemetry-collector packageName=open-telemetry/opentelemetry-collector-releases
13
- OTEL_COLLECTOR_VERSION : v0.132.4
14
-
15
11
concurrency :
16
12
group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
17
13
cancel-in-progress : true
Original file line number Diff line number Diff line change 59
59
@ SuppressWarnings ("NonFinalStaticField" )
60
60
class CollectorIntegrationTest {
61
61
62
- private static final String COLLECTOR_IMAGE =
63
- "otel/opentelemetry-collector-contrib" + collectorVersion ();
64
-
65
- private static String collectorVersion () {
66
- String otelCollectorVersion = System .getenv ("OTEL_COLLECTOR_VERSION" );
67
- if (otelCollectorVersion != null ) {
68
- // strip the leading 'v'
69
- return ":" + otelCollectorVersion .substring (1 );
70
- }
71
- // Default to latest if not set
72
- return ":latest" ;
73
- }
62
+ private static final String COLLECTOR_IMAGE = "otel/opentelemetry-collector-contrib:0.132.2" ;
74
63
75
64
private static final Integer COLLECTOR_HEALTH_CHECK_PORT = 13133 ;
76
65
Original file line number Diff line number Diff line change @@ -114,18 +114,7 @@ abstract class OtlpExporterIntegrationTest {
114
114
115
115
private static final AttributeKey <String > SERVICE_NAME = AttributeKey .stringKey ("service.name" );
116
116
117
- private static final String COLLECTOR_IMAGE =
118
- "otel/opentelemetry-collector-contrib" + collectorVersion ();
119
-
120
- private static String collectorVersion () {
121
- String otelCollectorVersion = System .getenv ("OTEL_COLLECTOR_VERSION" );
122
- if (otelCollectorVersion != null ) {
123
- // strip the leading 'v'
124
- return ":" + otelCollectorVersion .substring (1 );
125
- }
126
- // Default to latest if not set
127
- return ":latest" ;
128
- }
117
+ private static final String COLLECTOR_IMAGE = "otel/opentelemetry-collector-contrib:0.132.2" ;
129
118
130
119
private static final Integer COLLECTOR_OTLP_GRPC_PORT = 4317 ;
131
120
private static final Integer COLLECTOR_OTLP_HTTP_PORT = 4318 ;
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ public class OtlpPipelineStressTest {
68
68
69
69
@ Container
70
70
public static final GenericContainer <?> collectorContainer =
71
- new GenericContainer <>(DockerImageName .parse ("otel/opentelemetry-collector-contrib:latest " ))
71
+ new GenericContainer <>(DockerImageName .parse ("otel/opentelemetry-collector-contrib:0.132.2 " ))
72
72
.withImagePullPolicy (PullPolicy .alwaysPull ())
73
73
.withNetwork (network )
74
74
.withNetworkAliases ("otel-collector" )
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ private ExporterBenchmark() {}
36
36
@ State (Scope .Benchmark )
37
37
public abstract static class AbstractProcessorBenchmark {
38
38
private static final DockerImageName OTLP_COLLECTOR_IMAGE =
39
- DockerImageName .parse ("otel/opentelemetry-collector-contrib:latest " );
39
+ DockerImageName .parse ("otel/opentelemetry-collector-contrib:0.132.2 " );
40
40
protected static final int OTLP_PORT = 5678 ;
41
41
private static final int HEALTH_CHECK_PORT = 13133 ;
42
42
protected SdkSpanBuilder sdkSpanBuilder ;
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ private SpanPipelineBenchmark() {}
38
38
@ State (Scope .Benchmark )
39
39
public abstract static class AbstractProcessorBenchmark {
40
40
private static final DockerImageName OTLP_COLLECTOR_IMAGE =
41
- DockerImageName .parse ("otel/opentelemetry-collector-contrib:latest " );
41
+ DockerImageName .parse ("otel/opentelemetry-collector-contrib:0.132.2 " );
42
42
private static final int EXPOSED_PORT = 5678 ;
43
43
private static final int HEALTH_CHECK_PORT = 13133 ;
44
44
private Tracer tracer ;
You can’t perform that action at this time.
0 commit comments