Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run smoke tests on different java versions #948

Merged
merged 2 commits into from
Aug 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .github/workflows/build-play-smoke-dist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches: 'master'

jobs:
test:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -20,10 +20,11 @@ jobs:
- name: Cache gradle dependencies
uses: burrunan/gradle-cache-action@v1
with:
job-id: jdk11

- name: Login to GitHub Package Registry
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login docker.pkg.github.com -u ${{ github.repository }} --password-stdin
job-id: play-smoke

- name: Build Docker Image
run: cd smoke-tests/play && ./gradlew jib
run: |
./gradlew jib -PtargetJDK=8 -Djib.httpTimeout=120000 -Djib.console=plain
./gradlew jib -PtargetJDK=11 -Djib.httpTimeout=120000 -Djib.console=plain
./gradlew jib -PtargetJDK=14 -Djib.httpTimeout=120000 -Djib.console=plain
working-directory: smoke-tests/play
13 changes: 7 additions & 6 deletions .github/workflows/build-springboot-smoke-dist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
branches: 'master'

jobs:
test:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -20,10 +20,11 @@ jobs:
- name: Cache gradle dependencies
uses: burrunan/gradle-cache-action@v1
with:
job-id: jdk11

- name: Login to GitHub Package Registry
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login docker.pkg.github.com -u ${{ github.repository }} --password-stdin
job-id: springboot-smoke

- name: Build Docker Image
run: cd smoke-tests/springboot && ./gradlew jib
run: |
./gradlew jib -PtargetJDK=8 -Djib.httpTimeout=120000 -Djib.console=plain
./gradlew jib -PtargetJDK=11 -Djib.httpTimeout=120000 -Djib.console=plain
./gradlew jib -PtargetJDK=14 -Djib.httpTimeout=120000 -Djib.console=plain
working-directory: smoke-tests/springboot
8 changes: 5 additions & 3 deletions smoke-tests/play/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id "org.gradle.playframework" version "0.9"
id 'com.google.cloud.tools.jib' version '2.4.0'
id 'com.google.cloud.tools.jib' version '2.5.0'
}

ext {
Expand Down Expand Up @@ -35,8 +35,10 @@ dependencies {
implementation "com.typesafe.play:filters-helpers_$scalaVersion:$playVersion"
}

def targetJDK = project.hasProperty("targetJDK") ? project.targetJDK : 11

jib {
from.image = "bellsoft/liberica-openjdk-alpine:11"
to.image = "docker.pkg.github.com/open-telemetry/opentelemetry-java-instrumentation/smoke-play"
from.image = "bellsoft/liberica-openjdk-alpine:$targetJDK"
to.image = "docker.pkg.github.com/open-telemetry/opentelemetry-java-instrumentation/smoke-play-jdk$targetJDK"
container.mainClass = "play.core.server.ProdServerStart"
}
2 changes: 1 addition & 1 deletion smoke-tests/play/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.6-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

This file was deleted.

14 changes: 10 additions & 4 deletions smoke-tests/springboot/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,28 @@ plugins {
id 'org.springframework.boot' version '2.3.2.RELEASE'
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
id 'java'
id 'com.google.cloud.tools.jib' version '2.4.0'
id 'com.google.cloud.tools.jib' version '2.5.0'
}

group = 'io.opentelemetry'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '8'

repositories {
jcenter()
}

dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'io.opentelemetry:opentelemetry-extension-auto-annotations:0.7.0'
}

compileJava {
options.release = 8
}

def targetJDK = project.hasProperty("targetJDK") ? project.targetJDK : 11

jib {
from.image = "bellsoft/liberica-openjdk-alpine:11"
to.image = "docker.pkg.github.com/open-telemetry/opentelemetry-java-instrumentation/smoke-springboot"
from.image = "bellsoft/liberica-openjdk-alpine:$targetJDK"
to.image = "docker.pkg.github.com/open-telemetry/opentelemetry-java-instrumentation/smoke-springboot-jdk$targetJDK"
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.6-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

This file was deleted.

This file was deleted.

This file was deleted.

Loading