This is an automated email from the ASF dual-hosted git repository.

progers pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/druid.git


The following commit(s) were added to refs/heads/master by this push:
     new 6cb842e76e update snapshots if cache restore failed otherwise run test 
normally (not all test mvn dependencies are downloaded during build phase due 
to skipTests) (#13740)
6cb842e76e is described below

commit 6cb842e76e2605ed6c4c53279b1a49d67c471d97
Author: Tejaswini Bandlamudi <[email protected]>
AuthorDate: Thu Feb 2 21:39:56 2023 +0530

    update snapshots if cache restore failed otherwise run test normally (not 
all test mvn dependencies are downloaded during build phase due to skipTests) 
(#13740)
---
 .github/workflows/reusable-standard-its.yml            |  2 +-
 .github/workflows/reusable-unit-tests.yml              |  2 +-
 .../workflows/unit-and-integration-tests-unified.yml   | 18 +++++++++---------
 3 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/.github/workflows/reusable-standard-its.yml 
b/.github/workflows/reusable-standard-its.yml
index 4e9ffa5843..c4a05c3666 100644
--- a/.github/workflows/reusable-standard-its.yml
+++ b/.github/workflows/reusable-standard-its.yml
@@ -78,7 +78,7 @@ jobs:
       - name: Run IT
         env:
           MYSQL_DRIVER_CLASSNAME: ${{ inputs.mysql_driver }}
-          MVN: ${{ format('{0} {1}', env.MVN, 
(steps.maven-restore.outputs.cache-hit && '-o' || '-U')) }}
+          MVN: ${{ format('{0}{1}', env.MVN, 
(steps.maven-restore.outputs.cache-hit && '' || ' -U')) }}
         run: |
           # Debug echo
           echo "Mysql driver: ${MYSQL_DRIVER_CLASSNAME}"
diff --git a/.github/workflows/reusable-unit-tests.yml 
b/.github/workflows/reusable-unit-tests.yml
index 1bbff44b30..894f511bf2 100644
--- a/.github/workflows/reusable-unit-tests.yml
+++ b/.github/workflows/reusable-unit-tests.yml
@@ -91,5 +91,5 @@ jobs:
       - name: test & coverage
         env:
           MAVEN_PROJECTS: ${{ inputs.maven_projects }}
-          MVN: ${{ format('{0} {1}', env.MVN, 
(steps.maven-restore.outputs.cache-hit && '-o' || '-U')) }}
+          MVN: ${{ format('{0}{1}', env.MVN, 
(steps.maven-restore.outputs.cache-hit && '' || ' -U')) }}
         run: ./.github/scripts/unit_tests_script.sh
diff --git a/.github/workflows/unit-and-integration-tests-unified.yml 
b/.github/workflows/unit-and-integration-tests-unified.yml
index 561ed0f0a4..8f49bbd796 100644
--- a/.github/workflows/unit-and-integration-tests-unified.yml
+++ b/.github/workflows/unit-and-integration-tests-unified.yml
@@ -43,15 +43,6 @@ jobs:
       - name: Checkout branch
         uses: actions/checkout@v3
 
-      - name: Cache Maven m2 repository
-        id: maven
-        uses: actions/cache@v3
-        with:
-          path: ~/.m2/repository
-          key: maven-${{ runner.os }}-${{ matrix.jdk }}-${{ 
hashFiles('**/pom.xml') }}
-          restore-keys: |
-            maven-${{ runner.os }}-${{ matrix.jdk }}
-
       - name: Setup java
         uses: actions/setup-java@v3
         with:
@@ -63,6 +54,15 @@ jobs:
         run: |
           ./it.sh ci
 
+      - name: Cache Maven m2 repository
+        id: maven
+        uses: actions/cache@v3
+        with:
+          path: ~/.m2/repository
+          key: maven-${{ runner.os }}-${{ matrix.jdk }}-${{ 
hashFiles('**/pom.xml') }}
+          restore-keys: |
+            maven-${{ runner.os }}-${{ matrix.jdk }}
+
       - name: Cache targets
         id: target
         uses: actions/cache@v3


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to