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

abhishek 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 3c096c01a2 cache mvn dependencies across tests without building 
(#13962)
3c096c01a2 is described below

commit 3c096c01a2c4554b6f107627fb55755b4f2a6cb0
Author: Tejaswini Bandlamudi <[email protected]>
AuthorDate: Wed Mar 29 16:27:36 2023 +0530

    cache mvn dependencies across tests without building (#13962)
---
 .github/workflows/cron-job-its.yml | 41 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/.github/workflows/cron-job-its.yml 
b/.github/workflows/cron-job-its.yml
index b32a6d1c74..46b1152de5 100644
--- a/.github/workflows/cron-job-its.yml
+++ b/.github/workflows/cron-job-its.yml
@@ -17,18 +17,48 @@ name: Cron Job ITs
 on:
   schedule: # Runs by default on master branch
     - cron: '0 3 * * *' # Runs every day at 3:00 AM UTC
+  pull_request:
+    paths:
+      - 'owasp-dependency-check-suppressions.xml'
+    branches:
+      - master
+      - /^\d+\.\d+\.\d+(-\S*)?$/ # release branches
 
   pull_request:
     paths:
       'owasp-dependency-check-suppressions.xml'
 
 jobs:
+  build:
+    if: github.event_name == 'schedule'
+    name: build (jdk8)
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout branch
+        uses: actions/checkout@v3
+
+      - name: Setup java
+        run: export JAVA_HOME=$JAVA_HOME_8_X64
+
+      - name: Cache Maven m2 repository
+        id: maven
+        uses: actions/cache@v3
+        with:
+          path: ~/.m2/repository
+          key: maven-${{ runner.os }}-8-${{ github.sha }}
+
+      - name: Maven build
+        id: maven_build
+        run: |
+          ./it.sh ci
+
   integration-index-tests-middleManager:
     strategy:
       fail-fast: false
       matrix:
         testing_group: [batch-index, input-format, input-source, 
perfect-rollup-parallel-batch-index, kafka-index, kafka-index-slow, 
kafka-transactional-index, kafka-transactional-index-slow, kafka-data-format, 
ldap-security, realtime-index, append-ingestion, compaction]
     uses: ./.github/workflows/reusable-standard-its.yml
+    needs: build
     with:
       build_jdk: 8
       runtime_jdk: 11
@@ -42,6 +72,7 @@ jobs:
       matrix:
         testing_group: [ input-source, perfect-rollup-parallel-batch-index, 
kafka-index, kafka-transactional-index, kafka-index-slow, 
kafka-transactional-index-slow, kafka-data-format, append-ingestion, compaction 
]
     uses: ./.github/workflows/reusable-standard-its.yml
+    needs: build
     with:
       build_jdk: 8
       runtime_jdk: 11
@@ -55,6 +86,7 @@ jobs:
       matrix:
         testing_group: [ query, query-retry, query-error, security, 
high-availability ]
     uses: ./.github/workflows/reusable-standard-its.yml
+    needs: build
     with:
       build_jdk: 8
       runtime_jdk: 11
@@ -69,6 +101,7 @@ jobs:
       matrix:
         indexer: [ middleManager, indexer ]
     uses: ./.github/workflows/reusable-standard-its.yml
+    needs: build
     with:
       build_jdk: 8
       runtime_jdk: 11
@@ -86,8 +119,16 @@ jobs:
       - name: Checkout branch
         uses: actions/checkout@v3
 
+      - name: setup java
+        uses: actions/setup-java@v3
+        with:
+          java-version: '8'
+          distribution: 'zulu'
+          cache: maven
+
       - name: security vulnerabilities check
         env:
+          MVN: mvn --no-snapshot-updates
           HADOOP_PROFILE: ${{ matrix.HADOOP_PROFILE }}
         run: |
           mvn dependency-check:purge dependency-check:check ${HADOOP_PROFILE} 
|| { echo "


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

Reply via email to