2023-03-16 06:00:07 -04:00
|
|
|
# Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
# contributor license agreements. See the NOTICE file distributed with
|
|
|
|
# this work for additional information regarding copyright ownership.
|
|
|
|
# The ASF licenses this file to You under the Apache License, Version 2.0
|
|
|
|
# (the "License"); you may not use this file except in compliance with
|
|
|
|
# the License. You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
2023-05-22 02:14:34 -04:00
|
|
|
name: "Cron Job ITs"
|
2023-03-16 06:00:07 -04:00
|
|
|
on:
|
|
|
|
schedule: # Runs by default on master branch
|
|
|
|
- cron: '0 3 * * *' # Runs every day at 3:00 AM UTC
|
2023-03-29 06:57:36 -04:00
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- 'owasp-dependency-check-suppressions.xml'
|
|
|
|
branches:
|
|
|
|
- master
|
2023-04-11 23:43:40 -04:00
|
|
|
- '[0-9]+.[0-9]+.[0-9]+' # release branches
|
|
|
|
- '[0-9]+.[0-9]+.[0-9]+-[A-Za-z0-9]+' # release branches
|
2023-03-16 06:00:07 -04:00
|
|
|
|
|
|
|
jobs:
|
2023-03-29 06:57:36 -04:00
|
|
|
build:
|
2023-07-10 05:49:26 -04:00
|
|
|
if: (github.event_name == 'schedule' && github.repository == 'apache/druid')
|
2023-03-29 06:57:36 -04:00
|
|
|
name: build (jdk8)
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout branch
|
2024-03-07 21:24:02 -05:00
|
|
|
uses: actions/checkout@v4
|
2023-03-29 06:57:36 -04:00
|
|
|
|
2023-10-19 23:18:13 -04:00
|
|
|
- name: setup java
|
2024-03-07 21:24:02 -05:00
|
|
|
uses: actions/setup-java@v4
|
2023-10-19 23:18:13 -04:00
|
|
|
with:
|
|
|
|
java-version: '8'
|
|
|
|
distribution: 'zulu'
|
2023-03-29 06:57:36 -04:00
|
|
|
|
|
|
|
- name: Cache Maven m2 repository
|
|
|
|
id: maven
|
2024-03-07 21:24:02 -05:00
|
|
|
uses: actions/cache@v4
|
2023-03-29 06:57:36 -04:00
|
|
|
with:
|
|
|
|
path: ~/.m2/repository
|
|
|
|
key: maven-${{ runner.os }}-8-${{ github.sha }}
|
|
|
|
|
|
|
|
- name: Maven build
|
|
|
|
id: maven_build
|
|
|
|
run: |
|
|
|
|
./it.sh ci
|
|
|
|
|
2023-03-16 06:00:07 -04:00
|
|
|
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
|
2023-03-29 06:57:36 -04:00
|
|
|
needs: build
|
2023-03-16 06:00:07 -04:00
|
|
|
with:
|
|
|
|
build_jdk: 8
|
|
|
|
runtime_jdk: 11
|
|
|
|
testing_groups: -Dgroups=${{ matrix.testing_group }}
|
|
|
|
use_indexer: middleManager
|
|
|
|
group: ${{ matrix.testing_group }}
|
|
|
|
|
|
|
|
integration-index-tests-indexer:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
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
|
2023-03-29 06:57:36 -04:00
|
|
|
needs: build
|
2023-03-16 06:00:07 -04:00
|
|
|
with:
|
|
|
|
build_jdk: 8
|
|
|
|
runtime_jdk: 11
|
|
|
|
testing_groups: -Dgroups=${{ matrix.testing_group }}
|
|
|
|
use_indexer: indexer
|
|
|
|
group: ${{ matrix.testing_group }}
|
|
|
|
|
|
|
|
integration-query-tests-middleManager:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
testing_group: [ query, query-retry, query-error, security, high-availability ]
|
|
|
|
uses: ./.github/workflows/reusable-standard-its.yml
|
2023-03-29 06:57:36 -04:00
|
|
|
needs: build
|
2023-03-16 06:00:07 -04:00
|
|
|
with:
|
|
|
|
build_jdk: 8
|
|
|
|
runtime_jdk: 11
|
|
|
|
testing_groups: -Dgroups=${{ matrix.testing_group }}
|
|
|
|
use_indexer: middleManager
|
|
|
|
override_config_path: ./environment-configs/test-groups/prepopulated-data
|
|
|
|
group: ${{ matrix.testing_group }}
|
|
|
|
|
|
|
|
integration-other-tests:
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
indexer: [ middleManager, indexer ]
|
|
|
|
uses: ./.github/workflows/reusable-standard-its.yml
|
2023-03-29 06:57:36 -04:00
|
|
|
needs: build
|
2023-03-16 06:00:07 -04:00
|
|
|
with:
|
|
|
|
build_jdk: 8
|
|
|
|
runtime_jdk: 11
|
|
|
|
testing_groups: -DexcludedGroups=batch-index,input-format,input-source,perfect-rollup-parallel-batch-index,kafka-index,query,query-retry,query-error,realtime-index,security,ldap-security,s3-deep-storage,gcs-deep-storage,azure-deep-storage,hdfs-deep-storage,s3-ingestion,kinesis-index,kinesis-data-format,kafka-transactional-index,kafka-index-slow,kafka-transactional-index-slow,kafka-data-format,hadoop-s3-to-s3-deep-storage,hadoop-s3-to-hdfs-deep-storage,hadoop-azure-to-azure-deep-storage,hadoop-azure-to-hdfs-deep-storage,hadoop-gcs-to-gcs-deep-storage,hadoop-gcs-to-hdfs-deep-storage,aliyun-oss-deep-storage,append-ingestion,compaction,high-availability,upgrade,shuffle-deep-store,custom-coordinator-duties
|
|
|
|
use_indexer: ${{ matrix.indexer }}
|
|
|
|
group: other
|
|
|
|
|
|
|
|
security_vulnerabilities:
|
2023-07-10 05:49:26 -04:00
|
|
|
if: github.repository == 'apache/druid'
|
2023-03-16 06:00:07 -04:00
|
|
|
name: security vulnerabilities
|
2023-03-17 07:59:45 -04:00
|
|
|
strategy:
|
2023-07-10 05:49:26 -04:00
|
|
|
fail-fast: false
|
2023-03-16 06:00:07 -04:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout branch
|
2024-03-07 21:24:02 -05:00
|
|
|
uses: actions/checkout@v4
|
2023-03-16 06:00:07 -04:00
|
|
|
|
2023-03-29 06:57:36 -04:00
|
|
|
- name: setup java
|
2024-03-07 21:24:02 -05:00
|
|
|
uses: actions/setup-java@v4
|
2023-03-29 06:57:36 -04:00
|
|
|
with:
|
|
|
|
java-version: '8'
|
|
|
|
distribution: 'zulu'
|
|
|
|
cache: maven
|
|
|
|
|
2023-07-10 05:49:26 -04:00
|
|
|
- name: maven build # needed to rebuild incase of maven snapshot resolution fails
|
|
|
|
run: mvn clean install dependency:go-offline -P dist -P skip-static-checks,skip-tests -Dmaven.javadoc.skip=true -Dcyclonedx.skip=true -Dweb.console.skip=true
|
|
|
|
|
2023-03-16 06:00:07 -04:00
|
|
|
- name: security vulnerabilities check
|
|
|
|
run: |
|
2023-08-09 08:17:52 -04:00
|
|
|
mvn dependency-check:purge dependency-check:check || { echo "
|
2023-03-16 06:00:07 -04:00
|
|
|
The OWASP dependency check has found security vulnerabilities. Please use a newer version
|
|
|
|
of the dependency that does not have vulnerabilities. To see a report run
|
|
|
|
`mvn dependency-check:check`
|
|
|
|
If the analysis has false positives,
|
|
|
|
they can be suppressed by adding entries to owasp-dependency-check-suppressions.xml (for more
|
|
|
|
information, see https://jeremylong.github.io/DependencyCheck/general/suppression.html).
|
|
|
|
" && false; }
|