Skip to content
Permalink
Browse files
[ci] Move CI to JDK11 (#3027)
  • Loading branch information
nicoloboschi committed Mar 2, 2022
1 parent bbc6c35 commit 1a56bd890674145c6a3414f806f0c5d178b958e3
Show file tree
Hide file tree
Showing 16 changed files with 43 additions and 167 deletions.
@@ -44,10 +44,11 @@ jobs:
- name: Tune Runner VM
uses: ./.github/actions/tune-runner-vm

- name: Set up JDK 1.8
uses: actions/setup-java@v1
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 1.8
distribution: 'temurin'
java-version: 11

- name: Run bookie test
run: ./gradlew bookkeeper-server:test --tests="org.apache.bookkeeper.bookie.*" ${GRADLE_ARGS}
@@ -44,10 +44,11 @@ jobs:
- name: Tune Runner VM
uses: ./.github/actions/tune-runner-vm

- name: Set up JDK 1.8
uses: actions/setup-java@v1
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 1.8
distribution: 'temurin'
java-version: 11
- name: Run client tests
run: ./gradlew bookkeeper-server:test --tests="org.apache.bookkeeper.client.*" ${GRADLE_ARGS}

@@ -44,10 +44,11 @@ jobs:
- name: Tune Runner VM
uses: ./.github/actions/tune-runner-vm

- name: Set up JDK 1.11
uses: actions/setup-java@v1
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 1.11
distribution: 'temurin'
java-version: 11
- name: Build with gradle
run: |
./gradlew test -x bookkeeper-server:test -x tests:integration:cluster:test -x tests:integration:smoke:test -x tests:integration:standalone:test -PexcludeTests="**/distributedlog/**, **/statelib/**, **/clients/**, **/*common/**, **/stream/**, **/stream/*bk*/**, **/*backward*/**" ${GRADLE_ARGS}
@@ -44,15 +44,16 @@ jobs:
- name: Tune Runner VM
uses: ./.github/actions/tune-runner-vm

- name: Set up JDK 1.8
uses: actions/setup-java@v1
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 1.8
distribution: 'temurin'
java-version: 11

- name: Build tar
run: ./gradlew stream:server:build -x test ${GRADLE_ARGS}
- name: run cluster integration test
run: ./gradlew :tests:integration:cluster:test ${GRADLE_ARGS}
run: ./gradlew :tests:integration:cluster:test ${GRADLE_ARGS} || (tail -n +1 tests/integration/cluster/build/reports/tests/test/classes/* && tail -n +1 tests/integration/cluster/build/container-logs/**/* && exit 1)
- name: run smoke test
run: ./gradlew tests:integration:smoke:test ${GRADLE_ARGS}
- name: run standalone test
@@ -45,10 +45,11 @@ jobs:
- name: Tune Runner VM
uses: ./.github/actions/tune-runner-vm

- name: Set up JDK 1.8
uses: actions/setup-java@v1
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 1.8
distribution: 'temurin'
java-version: 11
- name: Validate pull request
run: ./gradlew build -x signDistTar -x test ${GRADLE_ARGS}

@@ -45,10 +45,11 @@ jobs:
- name: Tune Runner VM
uses: ./.github/actions/tune-runner-vm

- name: Set up JDK 1.8
uses: actions/setup-java@v1
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 1.8
distribution: 'temurin'
java-version: 11
- name: Run remaining tests
run: ./gradlew bookkeeper-server:test -PexcludeTests="**/org/apache/bookkeeper/bookie/*, **/org/apache/bookkeeper/client/*, **/org/apache/bookkeeper/replication/*, **/org/apache/bookkeeper/tls/*" ${GRADLE_ARGS}

@@ -44,10 +44,11 @@ jobs:
- name: Tune Runner VM
uses: ./.github/actions/tune-runner-vm

- name: Set up JDK 1.8
uses: actions/setup-java@v1
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 1.8
distribution: 'temurin'
java-version: 11
- name: Run replication tests
run: ./gradlew bookkeeper-server:test --tests="org.apache.bookkeeper.replication.*" ${GRADLE_ARGS}

@@ -43,10 +43,11 @@ jobs:
- name: Tune Runner VM
uses: ./.github/actions/tune-runner-vm

- name: Set up JDK 1.8
uses: actions/setup-java@v1
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 1.8
distribution: 'temurin'
java-version: 11
- name: Run stream:distributedlog:core tests
run: ./gradlew stream:distributedlog:core:test ${GRADLE_ARGS}
- name: Run stream:distributedlog:common tests
@@ -44,10 +44,11 @@ jobs:
- name: Tune Runner VM
uses: ./.github/actions/tune-runner-vm

- name: Set up JDK 1.8
uses: actions/setup-java@v1
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: 1.8
distribution: 'temurin'
java-version: 11
- name: Run tls tests
run: ./gradlew bookkeeper-server:test --tests="org.apache.bookkeeper.tls.*" ${GRADLE_ARGS}

@@ -50,6 +50,7 @@
import org.junit.runner.RunWith;
import org.mockito.Mockito;
import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.classloader.annotations.PowerMockIgnore;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.modules.junit4.PowerMockRunner;
import org.slf4j.Logger;
@@ -60,6 +61,7 @@
*/
@RunWith(PowerMockRunner.class)
@PrepareForTest({JournalChannel.class, FileChannelProvider.class})
@PowerMockIgnore({"jdk.internal.loader.*", "javax.naming.*"})
public class BookieJournalTest {
private static final Logger LOG = LoggerFactory.getLogger(BookieJournalTest.class);

@@ -49,6 +49,7 @@
import org.junit.runner.RunWith;
import org.mockito.invocation.InvocationOnMock;
import org.mockito.stubbing.Answer;
import org.powermock.core.classloader.annotations.PowerMockIgnore;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.modules.junit4.PowerMockRunner;

@@ -57,6 +58,7 @@
*/
@RunWith(PowerMockRunner.class)
@PrepareForTest({BookieImpl.class})
@PowerMockIgnore({"jdk.internal.loader.*", "javax.naming.*"})
@Slf4j
public class BookieWriteToJournalTest {

This file was deleted.

This file was deleted.

This file was deleted.

@@ -28,5 +28,4 @@ cd ${BASE_DIR}
time /bin/bash -e tests/docker-images/statestore-image/image_builder.sh
time /bin/bash -e tests/docker-images/all-released-versions-image/image_builder.sh
time /bin/bash -e tests/docker-images/all-versions-image/image_builder.sh ${BK_VERSION}
time /bin/bash -e tests/docker-images/current-version-image/image_builder.sh ${BK_VERSION}

@@ -25,12 +25,12 @@ ENV BOOKIE_GRPC_PORT=4181
EXPOSE ${BOOKIE_PORT} ${BOOKIE_HTTP_PORT} ${BOOKIE_GRPC_PORT}
ENV BK_USER=bookkeeper
ENV BK_HOME=/opt/bookkeeper
ENV JAVA_HOME=/usr/lib/jvm/jre-1.8.0
ENV JAVA_HOME=/usr/lib/jvm/java-11


RUN set -x \
&& adduser "${BK_USER}" \
&& yum install -y java-1.8.0-openjdk-headless wget bash sudo \
&& yum install -y java-11-openjdk-devel wget bash python-pip python-devel sudo netcat gcc gcc-c++ \
&& wget -q https://bootstrap.pypa.io/pip/2.7/get-pip.py \
&& python get-pip.py \
&& pip install zk-shell \

0 comments on commit 1a56bd8

Please sign in to comment.