Skip to content

Commit 7a4ddd9

Browse files
committed
Merge branch 'master' of github.com:apache/druid into add_simulation_tests
2 parents 6952ffb + 93b6cf1 commit 7a4ddd9

File tree

989 files changed

+53323
-23650
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

989 files changed

+53323
-23650
lines changed

.github/scripts/create-jacoco-coverage-report.sh

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ set -x
2020

2121
echo "GITHUB_BASE_REF: ${GITHUB_BASE_REF}"
2222

23-
if [ "$GITHUB_BASE_REF" == "" ] ;then
24-
echo "GITHUB_BASE_REF is not set; skipping this check!"
25-
exit 0
26-
fi
27-
2823
echo "Setting up git remote"
2924
git remote set-branches --add origin ${GITHUB_BASE_REF}
3025
git fetch
File renamed without changes.

.github/workflows/ci.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ jobs:
2424
strategy:
2525
fail-fast: false
2626
matrix:
27-
pattern: [ "A*,G*,R*", "B*,O*,S*,X*,Y*,Z*", "C*,E*", "D*,J*,K*", "F*,H*,U*", "I*,N*,T*", "L*,Q*,W*", "M*,P*,V*,_*,$*"]
27+
pattern: [ "C*", "H*,U*,V*", "N*,Q*,S*", "B*,O*,R*", "G*,J*,K*", "F*,L*,M*", "A*,D*,I*,X*,Y*,Z*", "E*,P*,T*,W*"]
2828
uses: ./.github/workflows/worker.yml
2929
with:
30-
script: .github/scripts/run-unit-tests.sh -Dtest='${{ matrix.pattern }}' -Dmaven.test.failure.ignore=true
30+
script: .github/scripts/run_unit-tests -Dtest=!QTest,'${{ matrix.pattern }}' -Dmaven.test.failure.ignore=true
3131
jdk: 17
3232
artifact_prefix: "unit-test-reports"
3333
key: "test-jdk17-[${{ matrix.pattern }}]"
@@ -73,9 +73,17 @@ jobs:
7373
fail-fast: false
7474
matrix:
7575
jdk: [ "11", "21.0.4" ]
76-
pattern: [ "A*,G*,R*", "B*,O*,S*,X*,Y*,Z*", "C*,E*", "D*,J*,K*", "F*,H*,U*", "I*,N*,T*", "L*,Q*,W*", "M*,P*,V*"]
76+
pattern: [ "C*", "H*,U*,V*", "N*,Q*,S*", "B*,O*,R*", "G*,J*,K*", "F*,L*,M*", "A*,D*,I*,X*,Y*,Z*", "E*,P*,T*,W*"]
7777
uses: ./.github/workflows/worker.yml
7878
with:
79-
script: .github/scripts/run-unit-tests.sh -Dtest='${{ matrix.pattern }}' -fae
79+
script: .github/scripts/run_unit-tests -Dtest='${{ matrix.pattern }}' -fae
8080
jdk: ${{ matrix.jdk }}
8181
key: "test-jdk${{ matrix.jdk }}-[${{ matrix.pattern }}]"
82+
83+
# this will be running in parallel with the ITs later; but until that migration happens - run them in parallel with normal tests
84+
run-qtest:
85+
uses: ./.github/workflows/worker.yml
86+
with:
87+
script: .github/scripts/run_unit-tests -Dtest=QTest -fae
88+
key: quidem-QTest
89+
jdk: 17

.github/workflows/codeql.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ on:
1717
schedule:
1818
- cron: '18 15 * * 4'
1919

20+
concurrency:
21+
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.run_id }}' # group workflows only on pull_requests and not on branch commits
22+
cancel-in-progress: true
23+
2024
jobs:
2125
analyze:
2226
name: Analyze

.github/workflows/revised-its.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,8 @@ jobs:
6666
strategy:
6767
fail-fast: false
6868
matrix:
69-
# jdk: [11, 17]
7069
jdk: [17]
7170
it: [HighAvailability, MultiStageQuery, Catalog, BatchIndex, MultiStageQueryWithMM, InputSource, InputFormat, Security, Query]
72-
#indexer: [indexer, middleManager]
7371
indexer: [middleManager]
7472
uses: ./.github/workflows/reusable-revised-its.yml
7573
if: ${{ needs.changes.outputs.core == 'true' || needs.changes.outputs.common-extensions == 'true' }}

.github/workflows/standard-its.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,12 +171,11 @@ jobs:
171171
- name: Run IT
172172
id: test
173173
run: |
174-
echo "Running mvn -B -ff install -pl '!web-console' -Pdist,bundle-contrib-exts -Pskip-static-checks,skip-tests -Dmaven.javadoc.skip=true -T1C"
174+
set -x
175175
mvn -B -ff install -pl '!web-console' -Pdist,bundle-contrib-exts -Pskip-static-checks,skip-tests -Dmaven.javadoc.skip=true -T1C
176176
# Note: The above command relies on the correct version of the JARs being installed in the local m2 repository.
177177
# For any changes, please rebuild it using the command from the previous step (./it.sh ci).
178178
179-
echo "MAVEN_OPTS='-Xmx2048m' ${MVN} verify -pl integration-tests -P int-tests-config-file ${IT_TEST} ${MAVEN_SKIP} -Dpod.name=${POD_NAME} -Dpod.namespace=${POD_NAMESPACE} -Dbuild.druid.cluster=${BUILD_DRUID_CLUSTER}"
180179
MAVEN_OPTS='-Xmx2048m' ${MVN} verify -pl integration-tests -P int-tests-config-file ${IT_TEST} ${MAVEN_SKIP} -Dpod.name=${POD_NAME} -Dpod.namespace=${POD_NAMESPACE} -Dbuild.druid.cluster=${BUILD_DRUID_CLUSTER}
181180
182181
- name: Debug on failure

.github/workflows/unit-and-integration-tests-unified.yml

Lines changed: 5 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -157,60 +157,16 @@ jobs:
157157
echo ${{ needs.set-env-var.outputs.DRUID_PREVIOUS_IT_IMAGE_NAME }}
158158
docker save "${{ needs.set-env-var.outputs.DRUID_PREVIOUS_IT_IMAGE_NAME }}" | gzip > druid-container-jdk${{ matrix.jdk }}-version${{ needs.set-env-var.outputs.DRUID_PREVIOUS_VERSION }}.tar.gz
159159
160-
# check if it is a PR and if it is approved. For approved PRs, we do not want to run tests sequentially
161-
check-approval:
162-
runs-on: ubuntu-latest
163-
outputs:
164-
approved: ${{ steps.check.outputs.isApproved }}
165-
steps:
166-
- name: Check if Triggered by a PR
167-
id: determine-trigger
168-
run: |
169-
if [ "${{ github.event_name }}" == "pull_request" ]; then
170-
echo "isPR=true" >> $GITHUB_ENV
171-
else
172-
echo "isPR=false" >> $GITHUB_ENV
173-
fi
174-
175-
- name: Check PR Approval (if applicable)
176-
id: check
177-
if: ${{ env.isPR == 'true' }}
178-
uses: actions/github-script@v7
179-
with:
180-
script: |
181-
const reviews = await github.rest.pulls.listReviews({
182-
owner: context.repo.owner,
183-
repo: context.repo.repo,
184-
pull_number: context.payload.pull_request.number
185-
});
186-
const approved = reviews.data.some(review => review.state === 'APPROVED');
187-
core.setOutput("isApproved", approved);
188-
189-
- name: Default to Approved for Branch
190-
id: default-check
191-
if: ${{ env.isPR == 'false' }}
192-
run: echo "::set-output name=isApproved::true"
193-
194-
unit-tests-unapproved:
195-
name: "unit tests - PR unapproved"
196-
uses: ./.github/workflows/ci.yml
197-
needs: [check-approval]
198-
if: ${{ needs.check-approval.outputs.approved != 'true' }}
199-
200-
unit-tests-approved:
201-
name: "unit tests - PR approved"
160+
unit-tests:
161+
name: "unit tests"
202162
uses: ./.github/workflows/ci.yml
203-
needs: [check-approval]
204-
if: ${{ needs.check-approval.outputs.approved == 'true' }}
205163

206164
standard-its:
207-
needs: [build, unit-tests-unapproved, check-approval]
208-
if: ${{ !cancelled() && (needs.check-approval.outputs.approved == 'true' || needs.unit-tests-unapproved.result == 'success') }}
165+
needs: [build, unit-tests]
209166
uses: ./.github/workflows/standard-its.yml
210167

211168
revised-its:
212-
needs: [build, unit-tests-unapproved, check-approval]
213-
if: ${{ !cancelled() && (needs.check-approval.outputs.approved == 'true' || needs.unit-tests-unapproved.result == 'success') }}
169+
needs: [build, unit-tests]
214170
uses: ./.github/workflows/revised-its.yml
215171
with:
216172
BACKWARD_COMPATIBILITY_IT_ENABLED: ${{ needs.set-env-var.outputs.BACKWARD_COMPATIBILITY_IT_ENABLED }}
@@ -219,7 +175,7 @@ jobs:
219175
DRUID_PREVIOUS_IT_IMAGE_NAME: ${{ needs.set-env-var.outputs.DRUID_PREVIOUS_IT_IMAGE_NAME }}
220176

221177
actions-timeline:
222-
needs: [build, unit-tests-approved, unit-tests-unapproved, revised-its, standard-its]
178+
needs: [build, unit-tests, revised-its, standard-its]
223179
runs-on: ubuntu-latest
224180
if: ${{ !cancelled() }}
225181
steps:

0 commit comments

Comments
 (0)