Skip to content

Commit

Permalink
#99 span scale factor = 10 for GH action
Browse files Browse the repository at this point in the history
  • Loading branch information
dk1844 committed Aug 2, 2021
1 parent a4ba9f7 commit 4e1f7f2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ jobs:
if: ${{ ! contains( github.event.pull_request.labels.*.name, 'NoTestNeeded') }}
run: |
mvn scala-cross-build:change-version -Pscala-${{ matrix.scala }}
mvn clean install --no-transfer-progress -Pspark-${{ matrix.spark }}
mvn clean install --no-transfer-progress -Pspark-${{ matrix.spark }} -Dspan.scale.factor=10
4 changes: 3 additions & 1 deletion examples/atum-examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
<properties>
<atum.version>4.0.0-SNAPSHOT</atum.version>
<encoding>UTF-8</encoding>
<span.scale.factor>1</span.scale.factor>

<!-- Cross Compilation Properties -->
<default.scala.binary.version>2.11</default.scala.binary.version>
Expand All @@ -45,7 +46,7 @@
<scala.version>2.12.12</scala.version>
<scala.binary.version>2.12</scala.binary.version>

<!-- Build and plugins properties -->
<!-- Build and plugins versions -->
<scalatest.maven.plugin.version>2.0.2</scalatest.maven.plugin.version>
<maven.shade.plugin.version>2.3</maven.shade.plugin.version>

Expand Down Expand Up @@ -141,6 +142,7 @@
<groupId>org.scalatest</groupId>
<artifactId>scalatest-maven-plugin</artifactId>
<version>${scalatest.maven.plugin.version}</version>
<configuration>${span.scale.factor}</configuration>
<executions>
<execution>
<id>test</id>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ object SampleMeasurements3 extends Eventually {
spark.disableControlMeasuresTracking()
spark.close()

eventually(timeout(scaled(10.seconds)), interval(scaled(500.millis))) {
eventually(timeout(scaled(10.seconds)), interval(scaled(500.millis))) { // scaling will help on slow environments
if (!Files.exists(Paths.get("data/output/stage3_job_results/_INFO"))) {
throw new Exception("_INFO file not found at data/output/stage3_job_results")
}
Expand Down

0 comments on commit 4e1f7f2

Please sign in to comment.