Skip to content

Commit

Permalink
Verify quarkus smoke test
Browse files Browse the repository at this point in the history
  • Loading branch information
trask committed Nov 5, 2024
1 parent 2b5c4f5 commit 58705cd
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/pr-smoke-test-quarkus-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,34 @@ jobs:
# Quarkus 3.7+ requires Java 17+
skip-java-8: true
skip-java-11: true

verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

- name: Free disk space
run: .github/scripts/gha-free-disk-space.sh

- name: Set up JDK for running Gradle
uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0
with:
distribution: temurin
java-version-file: .java-version

- name: Set up Gradle cache
uses: gradle/actions/setup-gradle@d156388eb19639ec20ade50009f3d199ce1e2808 # v4.1.0
with:
cache-read-only: true

- name: Build Java 17 Docker image
run: ./gradlew :smoke-tests:images:quarkus:jibDockerBuild -Ptag=local -PtargetJDK=17 -Djib.httpTimeout=120000 -Djib.console=plain

- name: Build Java 21 Docker image
run: ./gradlew :smoke-tests:images:quarkus:jibDockerBuild -Ptag=local -PtargetJDK=21 -Djib.httpTimeout=120000 -Djib.console=plain

- name: Build Java 23 Docker image
run: ./gradlew :smoke-tests:images:quarkus:jibDockerBuild -Ptag=local -PtargetJDK=23 -Djib.httpTimeout=120000 -Djib.console=plain

- name: Verify
run: ./gradlew :smoke-tests:test -PsmokeTestSuite=quarkus
1 change: 1 addition & 0 deletions smoke-tests/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ tasks {
"tomee" to listOf("**/Tomee*.*"),
"websphere" to listOf("**/Websphere*.*"),
"wildfly" to listOf("**/Wildfly*.*"),
"quarkus" to listOf("**/Quarkus*.*"),
)

val smokeTestSuite: String? by project
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import static io.opentelemetry.smoketest.TestContainerManager.useWindowsContaine
class QuarkusSmokeTest extends SmokeTest {

protected String getTargetImage(String jdk) {
"ghcr.io/open-telemetry/opentelemetry-java-instrumentation/smoke-test-quarkus:jdk$jdk-20211213.1574595137"
"smoke-test-quarkus:jdk$jdk-local"
}

@Override
Expand Down Expand Up @@ -56,6 +56,6 @@ class QuarkusSmokeTest extends SmokeTest {
stopTarget()

where:
jdk << [11, 17] // Quarkus 2.0+ does not support Java 8
jdk << [17, 21, 23] // Quarkus 2.0+ does not support Java 8
}
}

0 comments on commit 58705cd

Please sign in to comment.