Skip to content

Commit

Permalink
HPCC4J-594 Add support for skipping tests
Browse files Browse the repository at this point in the history
- Updated version of surefire plugin to support excludes file
- Added logic to generate an excludes file to GH actions

Signed-off-by: James McMullan [email protected]
  • Loading branch information
jpmcmu committed May 21, 2024
1 parent f088b3d commit f1d83d3
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 112 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/baremetal-regression-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,5 +176,11 @@ jobs:
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Exclude Tests
env:
EXCLUDES: ${{ vars.EXCLUDED_TESTS }}
run: |
echo $EXCLUDES > excluded-tests.txt
- name: Build with Maven
run: mvn -B --activate-profiles jenkins-on-demand -Dmaven.gpg.skip=true -Dmaven.javadoc.skip=true -Dmaven.test.failure.ignore=false -Dhpccconn=http://eclwatch.default:8010 -Dwssqlconn=http://sql2ecl.default:8510 -DHPCC30117=open install
run: mvn -B --activate-profiles jenkins-on-demand -Dmaven.gpg.skip=true -Dmaven.javadoc.skip=true -Dmaven.test.failure.ignore=false -Dhpccconn=http://eclwatch.default:8010 -Dwssqlconn=http://sql2ecl.default:8510 install
8 changes: 7 additions & 1 deletion .github/workflows/k8s-regression-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,5 +143,11 @@ jobs:
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2

- name: Exclude Tests
env:
EXCLUDES: ${{ vars.EXCLUDED_TESTS }}
run: |
echo $EXCLUDES > excluded-tests.txt
- name: Build with Maven
run: mvn -B --activate-profiles jenkins-on-demand -Dmaven.gpg.skip=true -Dmaven.javadoc.skip=true -Dmaven.test.failure.ignore=false -Dhpccconn=https://eclwatch.default:8010 -Dwssqlconn=https://sql2ecl.default:8510 -DHPCC30117=open install
run: mvn -B --activate-profiles jenkins-on-demand -Dmaven.gpg.skip=true -Dmaven.javadoc.skip=true -Dmaven.test.failure.ignore=false -Dhpccconn=https://eclwatch.default:8010 -Dwssqlconn=https://sql2ecl.default:8510 install
3 changes: 3 additions & 0 deletions commons-hpcc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>${maven.surefire.version}</version>
<configuration>
<excludesFile>../excluded-tests.txt</excludesFile>
</configuration>
</plugin>
</plugins>
</build>
Expand Down
1 change: 1 addition & 0 deletions dfsclient/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
<value>org.hpccsystems.ws.client.TestResultNotifier</value>
</property>
</properties>
<excludesFile>../excluded-tests.txt</excludesFile>
</configuration>
</plugin>
<plugin>
Expand Down
Empty file added excluded-tests.txt
Empty file.
6 changes: 5 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<maven.deploy.version>2.8.2</maven.deploy.version>
<maven.install.version>2.5.2</maven.install.version>
<maven.jar.version>3.0.2</maven.jar.version>
<maven.surefire.version>2.22.1</maven.surefire.version>
<maven.surefire.version>3.2.5</maven.surefire.version>
<antlr.version>4.10.1</antlr.version>
<javax.mail.version>1.4</javax.mail.version>
<jsch.version>0.1.54</jsch.version>
Expand Down Expand Up @@ -213,6 +213,7 @@
<configuration>
<argLine>${argLine}</argLine>
<groups>${groups}</groups>
<excludesFile>excluded-tests.txt</excludesFile>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -433,6 +434,7 @@
<configuration>
<argLine>${argLine}</argLine>
<groups>${groups}</groups>
<excludesFile>excluded-tests.txt</excludesFile>
</configuration>
</plugin>
</plugins>
Expand Down Expand Up @@ -485,6 +487,7 @@
<configuration>
<argLine>${argLine}</argLine>
<groups>${groups}</groups>
<excludesFile>excluded-tests.txt</excludesFile>
</configuration>
</plugin>
</plugins>
Expand Down Expand Up @@ -560,6 +563,7 @@
<configuration>
<argLine>${argLine}</argLine>
<groups>${groups}</groups>
<excludesFile>excluded-tests.txt</excludesFile>
</configuration>
</plugin>
</plugins>
Expand Down
1 change: 1 addition & 0 deletions wsclient/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
<value>org.hpccsystems.ws.client.TestResultNotifier</value>
</property>
</properties>
<excludesFile>../excluded-tests.txt</excludesFile>
</configuration>
</plugin>
</plugins>
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@

import org.hpccsystems.ws.client.wrappers.ArrayOfEspExceptionWrapper;
import org.hpccsystems.ws.client.wrappers.wsdfu.DFUDataColumnWrapper;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.experimental.categories.Category;

@Ignore
@Category(org.hpccsystems.commons.annotations.IntegrationTests.class)
public class RampsDevRegressionTest extends EclParseRegressionTest
{
Expand Down

0 comments on commit f1d83d3

Please sign in to comment.