Skip to content

Commit

Permalink
[improve][ci] Move pulsar-metadata unit tests from OTHER to new METAD…
Browse files Browse the repository at this point in the history
…ATA group (apache#21511)
  • Loading branch information
lhotari authored Nov 3, 2023
1 parent b5925ed commit 99e6aeb
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pulsar-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@ jobs:
group: PULSAR_IO_KAFKA_CONNECT
- name: Pulsar Client
group: CLIENT
- name: Pulsar Metadata
group: METADATA

steps:
- name: checkout
Expand Down
4 changes: 4 additions & 0 deletions build/run_unit_group.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ function test_group_client() {
mvn_test -pl pulsar-client
}

function test_group_metadata() {
mvn_test -pl pulsar-metadata
}

# prints summaries of failed tests to console
# by using the targer/surefire-reports files
# works only when testForkCount > 1 since that is when surefire will create reports for individual test classes
Expand Down
16 changes: 16 additions & 0 deletions pulsar-metadata/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -199,4 +199,20 @@
</plugin>
</plugins>
</build>
<profiles>
<profile>
<id>skipTestsForUnitGroupOther</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit 99e6aeb

Please sign in to comment.