Skip to content

Commit b082641

Browse files
committed
merge master
2 parents f930236 + 2a56038 commit b082641

File tree

4,726 files changed

+293120
-143761
lines changed

Some content is hidden

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

4,726 files changed

+293120
-143761
lines changed

.github/config/codeql-config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
query-filters:
22
- exclude:
3-
id: java/stack-trace-exposure
3+
id: java/stack-trace-exposure

.github/dependabot.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,17 @@ updates:
1515
# pin Testng dependencies to 7.3.0
1616
- dependency-name: "org.testng"
1717
versions: "[7.4.0,)"
18+
19+
# Don't run dependabot on website
20+
- package-ecosystem: "npm"
21+
directory: "/website/"
22+
ignore:
23+
- dependency-name: "*"
24+
update-types: ["version-update:semver-patch", "version-update:semver-minor", "version-update:semver-major"]
25+
26+
# Don't run dependabot on web-console
27+
- package-ecosystem: "npm"
28+
directory: "/web-console/"
29+
ignore:
30+
- dependency-name: "*"
31+
update-types: ["version-update:semver-patch", "version-update:semver-minor", "version-update:semver-major"]

.github/labeler.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
- changed-files:
2525
- any-glob-to-any-file:
2626
- 'indexing-hadoop/**'
27-
- 'extensions-core/multi-stage-query/**'
27+
- 'multi-stage-query/**'
2828

2929
'Area - Dependencies':
3030
- changed-files:
@@ -61,13 +61,13 @@
6161
'Area - MSQ':
6262
- changed-files:
6363
- any-glob-to-any-file:
64-
- 'extensions-core/multi-stage-query/**'
64+
- 'multi-stage-query/**'
6565

6666
'Area - Querying':
6767
- changed-files:
6868
- any-glob-to-any-file:
6969
- 'sql/**'
70-
- 'extensions-core/multi-stage-query/src/main/java/org/apache/druid/msq/sql/**'
70+
- 'multi-stage-query/src/main/java/org/apache/druid/msq/sql/**'
7171

7272
'Area - Segment Format and Ser/De':
7373
- changed-files:
@@ -94,3 +94,6 @@
9494
- changed-files:
9595
- any-glob-to-any-file:
9696
- '.github/**'
97+
98+
'Backport':
99+
- head-branch: ['^backport']

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ This PR has:
6969
- [ ] added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
7070
- [ ] added unit tests or modified existing tests to cover new code paths, ensuring the threshold for [code coverage](https://github.com/apache/druid/blob/master/dev/code-review/code-coverage.md) is met.
7171
- [ ] added integration tests.
72-
- [ ] been tested in a test Druid cluster.
72+
- [ ] been tested in a test Druid cluster.

.github/scripts/collect_jstacks

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
#!/bin/bash
2+
3+
# Licensed to the Apache Software Foundation (ASF) under one or more
4+
# contributor license agreements. See the NOTICE file distributed with
5+
# this work for additional information regarding copyright ownership.
6+
# The ASF licenses this file to You under the Apache License, Version 2.0
7+
# (the "License"); you may not use this file except in compliance with
8+
# the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
#--------------------------------------------------------------------
18+
19+
echo "@ capturing threaddumps every minute for all java processes" >&2
20+
21+
while :;do
22+
sleep 60
23+
t=`date +%s`
24+
echo "@ capturing threaddumps $t" >&2
25+
pgrep java | while read pid;do
26+
jstack $pid > target/jstack.$pid.$t
27+
done
28+
done

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

Lines changed: 3 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
@@ -72,3 +67,6 @@ fi
7267

7368
echo " * test balancing details"
7469
.github/scripts/test_balancing_calc
70+
71+
echo " * validate junit4/junit5 usage"
72+
dev/validate-junit5-usage

.github/scripts/run-unit-tests.sh

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/scripts/run_docker-tests

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#!/bin/bash
2+
3+
# Licensed to the Apache Software Foundation (ASF) under one or more
4+
# contributor license agreements. See the NOTICE file distributed with
5+
# this work for additional information regarding copyright ownership.
6+
# The ASF licenses this file to You under the Apache License, Version 2.0
7+
# (the "License"); you may not use this file except in compliance with
8+
# the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
18+
# Runs Docker tests
19+
# Requires environment variable DRUID_DIST_IMAGE_NAME
20+
21+
set -e
22+
23+
DRUID_IMAGE_NAME_ENV="DRUID_DIST_IMAGE_NAME"
24+
DRUID_IMAGE_NAME=$DRUID_DIST_IMAGE_NAME
25+
26+
DRUID_IMAGE_SYS_PROPERTY="druid.testing.docker.image"
27+
28+
if [ -z "${DRUID_IMAGE_NAME}" ]; then
29+
echo "ERROR!! Environment variable [$DRUID_IMAGE_NAME_ENV] not set!"
30+
echo "Run 'export $DRUID_IMAGE_NAME_ENV=<druid-image-to-test>' to specify the image to use in the Docker tests."
31+
exit 1
32+
else
33+
echo "Running Docker tests with image[$DRUID_IMAGE_NAME]"
34+
fi
35+
36+
# No snapshot updates
37+
OPTS+=" -nsu"
38+
OPTS+=" -pl !integration-tests"
39+
mvn -B $OPTS verify -Pdocker-tests,skip-static-checks -DskipUTs -D$DRUID_IMAGE_SYS_PROPERTY=$DRUID_IMAGE_NAME "-DjfrProfilerArgLine=$JFR_PROFILER_ARG_LINE" "$@"

.github/scripts/run_unit-tests

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
3+
# Licensed to the Apache Software Foundation (ASF) under one or more
4+
# contributor license agreements. See the NOTICE file distributed with
5+
# this work for additional information regarding copyright ownership.
6+
# The ASF licenses this file to You under the Apache License, Version 2.0
7+
# (the "License"); you may not use this file except in compliance with
8+
# the License. You may obtain a copy of the License at
9+
#
10+
# http://www.apache.org/licenses/LICENSE-2.0
11+
#
12+
# Unless required by applicable law or agreed to in writing, software
13+
# distributed under the License is distributed on an "AS IS" BASIS,
14+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
# See the License for the specific language governing permissions and
16+
# limitations under the License.
17+
18+
set -e
19+
set -x
20+
21+
OPTS+="-pl !integration-tests"
22+
OPTS+=" -Dsurefire.failIfNoSpecifiedTests=false -P skip-static-checks -Dweb.console.skip=true"
23+
OPTS+=" -Djacoco.destFile=target/jacoco-${HASH}.exec"
24+
25+
mvn -B $OPTS test "-DjfrProfilerArgLine=$JFR_PROFILER_ARG_LINE" "$@"

.github/scripts/setup_generate_license.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,14 @@
1717

1818
set -e
1919

20-
sudo apt-get update && sudo apt-get install python3 -y
20+
if [ "$(uname)" = "Linux" ]; then
21+
# github action runs on ubuntu, we might need to install python3 and pip3
22+
sudo apt-get update && sudo apt-get install python3 -y
23+
sudo apt install python3-pip
24+
fi
25+
2126
# creating python virtual env
2227
python3 -m venv ~/.python3venv
2328
source ~/.python3venv/bin/activate
24-
sudo apt install python3-pip
2529
pip3 install wheel # install wheel first explicitly
2630
pip3 install --upgrade pyyaml

0 commit comments

Comments
 (0)