Skip to content

Commit

Permalink
[ISSUE apache#8643] Add an integration testing pipeline to current CI…
Browse files Browse the repository at this point in the history
… workflow (apache#8644)

* Add a it pipeline to workflows

* Trigger

* Rename it job

* Remove branch trigger

* Remove the step of uploading report
  • Loading branch information
chi3316 authored Sep 5, 2024
1 parent 5d43e7d commit 3368c06
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Run Integration Tests
on:
pull_request:
types: [opened, reopened, synchronize]
push:
branches: [master, develop]

jobs:
it-test:
name: "maven-compile (${{ matrix.os }}, JDK-${{ matrix.jdk }})"
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
jdk: [8]
steps:
- name: Cache Maven Repos
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Checkout
uses: actions/checkout@v2

- name: Set up JDK ${{ matrix.jdk }}
uses: actions/setup-java@v2
with:
java-version: ${{ matrix.jdk }}
distribution: "adopt"
cache: "maven"

- name: Run integration tests with Maven
run: mvn clean verify -Pit-test -Pskip-unit-tests


15 changes: 15 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,21 @@
<sonar.host.url>https://builds.apache.org/analysis</sonar.host.url>
</properties>
</profile>
<profile>
<id>skip-unit-tests</id>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven-surefire-plugin.version}</version>
<configuration>
<skipTests>true</skipTests>
<skip>true</skip>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

<dependencyManagement>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import org.assertj.core.util.Lists;
import org.junit.Before;
import org.junit.Test;
import org.junit.Ignore;

import static org.assertj.core.api.AssertionsForClassTypes.assertThat;

Expand All @@ -53,6 +54,7 @@ public void setUp() {
}

@Test
@Ignore
public void testNotification() throws Exception {
long pollTime = 500;
CompletableFuture<Boolean> future1 = client.notification(brokerAddr, topic, group, messageQueue.getQueueId(), pollTime, System.currentTimeMillis(), 5000);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import org.junit.Before;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.Ignore;
import org.junit.runners.MethodSorters;

import static org.awaitility.Awaitility.await;
Expand Down Expand Up @@ -87,6 +88,7 @@ public void testTransactionCheckThenCommit() {
}

@Test
@Ignore
public void testSimpleConsumerSendAndRecvDelayMessage() throws Exception {
super.testSimpleConsumerSendAndRecvDelayMessage();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import org.junit.Before;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.Ignore;
import org.junit.runners.MethodSorters;

@FixMethodOrder(value = MethodSorters.NAME_ASCENDING)
Expand Down Expand Up @@ -75,6 +76,7 @@ public void testTransactionCheckThenCommit() {
}

@Test
@Ignore
public void testSimpleConsumerSendAndRecvDelayMessage() throws Exception {
super.testSimpleConsumerSendAndRecvDelayMessage();
}
Expand Down

0 comments on commit 3368c06

Please sign in to comment.