Skip to content

Commit

Permalink
Split Presto on Spark tests into multiple jobs on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
arhimondr committed Jun 24, 2021
1 parent f550783 commit 87d759c
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Expand Up @@ -297,7 +297,9 @@ jobs:
- ":presto-elasticsearch"
- ":presto-orc"
- ":presto-thrift-connector"
- ":presto-spark-base"
- ":presto-spark-base -P presto-spark-tests-smoke"
- ":presto-spark-base -P presto-spark-tests-all-queries"
- ":presto-spark-base -P presto-spark-tests-spill-queries"
timeout-minutes: 80
steps:
- uses: actions/checkout@v2
Expand Down
62 changes: 62 additions & 0 deletions presto-spark-base/pom.xml
Expand Up @@ -255,4 +255,66 @@
</plugins>
</build>

<profiles>
<profile>
<id>presto-spark-tests-smoke</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<includes>
<include>**/tests/*.java</include>
</includes>
<excludes>
<exclude>**/TestPrestoSparkAggregations.java</exclude>
<exclude>**/TestPrestoSparkJoinQueries.java</exclude>
<exclude>**/TestPrestoSparkOrderByQueries.java</exclude>
<exclude>**/TestPrestoSparkWindowQueries.java</exclude>
<exclude>**/TestPrestoSparkSpilledAggregations.java</exclude>
<exclude>**/TestPrestoSparkSpilledJoinQueries.java</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>presto-spark-tests-all-queries</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<includes>
<include>**/TestPrestoSparkAggregations.java</include>
<include>**/TestPrestoSparkJoinQueries.java</include>
<include>**/TestPrestoSparkOrderByQueries.java</include>
<include>**/TestPrestoSparkWindowQueries.java</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>presto-spark-tests-spill-queries</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<includes>
<include>**/TestPrestoSparkSpilledAggregations.java</include>
<include>**/TestPrestoSparkSpilledJoinQueries.java</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>
Expand Up @@ -16,7 +16,7 @@
import com.facebook.presto.testing.QueryRunner;
import com.facebook.presto.tests.AbstractTestQueries;

public class TestPrestoSparkAbstractTestQueries
public class TestPrestoQueries
extends AbstractTestQueries
{
@Override
Expand Down
Expand Up @@ -18,7 +18,7 @@

import static com.facebook.presto.spark.PrestoSparkQueryRunner.createHivePrestoSparkQueryRunner;

public class TestPrestoSparkAbstractTestOrderByQueries
public class TestPrestoSparkOrderByQueries
extends AbstractTestOrderByQueries
{
@Override
Expand Down
Expand Up @@ -18,7 +18,7 @@

import static com.facebook.presto.spark.PrestoSparkQueryRunner.createHivePrestoSparkQueryRunner;

public class TestPrestoSparkAbstractTestWindowQueries
public class TestPrestoSparkWindowQueries
extends AbstractTestWindowQueries
{
@Override
Expand Down

0 comments on commit 87d759c

Please sign in to comment.