Skip to content

Commit

Permalink
Test against multiple OTel version - Issue #1963 (#2154)
Browse files Browse the repository at this point in the history
* Test against multiple OTel version - Issue #1963
Signed-off-by: Krishna Kondaka <[email protected]>
Co-authored-by: Krishna Kondaka <[email protected]>
  • Loading branch information
kkondaka authored Jan 23, 2023
1 parent 5f492a5 commit fb9e13b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
strategy:
matrix:
java: [11, 17]
otelVersion: ['0.9.0-alpha', '0.16.0-alpha']
fail-fast: false

runs-on: ubuntu-latest
Expand All @@ -26,4 +27,4 @@ jobs:
- name: Checkout Data-Prepper
uses: actions/checkout@v2
- name: Run raw-span end-to-end tests with Gradle
run: ./gradlew -PendToEndJavaVersion=${{ matrix.java }} :e2e-test:trace:rawSpanEndToEndTest
run: ./gradlew -PopenTelemetryVersion=${{ matrix.otelVersion }} -PendToEndJavaVersion=${{ matrix.java }} :e2e-test:trace:rawSpanEndToEndTest
3 changes: 2 additions & 1 deletion e2e-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ subprojects {
ext {
dataPrepperJarFilepath = "${project.buildDir.name}/bin/data-prepper/"
targetJavaVersion = project.hasProperty('endToEndJavaVersion') ? project.getProperty('endToEndJavaVersion') : '11'
targetOpenTelemetryVersion = project.hasProperty('openTelemetryVersion') ? project.getProperty('openTelemetryVersion') : "${versionMap.opentelemetryProto}"
dataPrepperBaseImage = "eclipse-temurin:${targetJavaVersion}-jre-alpine"
}
}
}
2 changes: 1 addition & 1 deletion e2e-test/trace/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ dependencies {
integrationTestImplementation project(':data-prepper-plugins:opensearch')
integrationTestImplementation project(':data-prepper-plugins:otel-trace-group-processor')
integrationTestImplementation 'org.awaitility:awaitility:4.2.0'
integrationTestImplementation "io.opentelemetry.proto:opentelemetry-proto:${versionMap.opentelemetryProto}"
integrationTestImplementation "io.opentelemetry.proto:opentelemetry-proto:${targetOpenTelemetryVersion}"
integrationTestImplementation "com.google.protobuf:protobuf-java-util:${versionMap.protobufJavaUtil}"
integrationTestImplementation "com.linecorp.armeria:armeria:${versionMap.armeria}"
integrationTestImplementation "com.linecorp.armeria:armeria-grpc:${versionMap.armeriaGrpc}"
Expand Down

0 comments on commit fb9e13b

Please sign in to comment.