From 4e1f7f23988390c2f470c7dcaa23d2cddd04199a Mon Sep 17 00:00:00 2001 From: Daniel Kavan Date: Mon, 2 Aug 2021 13:07:52 +0200 Subject: [PATCH] #99 span scale factor = 10 for GH action --- .github/workflows/build.yml | 2 +- examples/atum-examples/pom.xml | 4 +++- .../scala/za/co/absa/atum/examples/SampleMeasurements3.scala | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 90efb1f2..fa33254f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/examples/atum-examples/pom.xml b/examples/atum-examples/pom.xml index d51bc4bf..c1cd1bac 100644 --- a/examples/atum-examples/pom.xml +++ b/examples/atum-examples/pom.xml @@ -27,6 +27,7 @@ 4.0.0-SNAPSHOT UTF-8 + 1 2.11 @@ -45,7 +46,7 @@ 2.12.12 2.12 - + 2.0.2 2.3 @@ -141,6 +142,7 @@ org.scalatest scalatest-maven-plugin ${scalatest.maven.plugin.version} + ${span.scale.factor} test diff --git a/examples/atum-examples/src/main/scala/za/co/absa/atum/examples/SampleMeasurements3.scala b/examples/atum-examples/src/main/scala/za/co/absa/atum/examples/SampleMeasurements3.scala index 33fcd8bb..5aefa34f 100644 --- a/examples/atum-examples/src/main/scala/za/co/absa/atum/examples/SampleMeasurements3.scala +++ b/examples/atum-examples/src/main/scala/za/co/absa/atum/examples/SampleMeasurements3.scala @@ -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") }