Skip to content

Commit ea5aaf5

Browse files
authored
Merge pull request #970 from ClickHouse/develop
Merge patch10
2 parents c98c084 + aebad16 commit ea5aaf5

File tree

142 files changed

+7858
-1637
lines changed

Some content is hidden

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

142 files changed

+7858
-1637
lines changed

.github/workflows/benchmark.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jobs:
107107
continue-on-error: true
108108
- name: Build project
109109
run: |
110-
mvn --batch-mode --update-snapshots -DskipTests -pl clickhouse-benchmark -am package
110+
mvn --batch-mode -DskipTests -pl clickhouse-benchmark -am package
111111
cd clickhouse-benchmark
112112
java -DclickhouseVersion="21.8" -jar target/benchmarks.jar -rf json ${{ github.event.inputs.options }} > output.txt
113113
echo "BENCHMARK_REPORT<<EOF" >> $GITHUB_ENV

.github/workflows/build.yml

+12-11
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ on:
2727
description: "Pull request#"
2828
required: false
2929

30+
concurrency:
31+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.number || github.sha }}
32+
cancel-in-progress: true
33+
3034
jobs:
3135
build:
3236
runs-on: ubuntu-latest
@@ -42,7 +46,7 @@ jobs:
4246
- clickhouse: "21.8"
4347
protocol: grpc
4448
fail-fast: false
45-
timeout-minutes: 45
49+
timeout-minutes: 30
4650
name: Build against ClickHouse ${{ matrix.clickhouse }} (${{ matrix.protocol }})
4751
steps:
4852
- name: Check out Git repository
@@ -76,21 +80,18 @@ jobs:
7680
</toolchains>
7781
EOF
7882
- name: Install JDK 8 and Maven
79-
uses: actions/setup-java@v2
83+
uses: actions/setup-java@v3
8084
with:
8185
distribution: 'temurin'
8286
java-version: 8
83-
# Step that does that actual cache save and restore
84-
- name: Cache maven dependencies
85-
uses: actions/cache@v2
86-
with:
87-
path: ~/.m2/repository
88-
key: ${{ runner.os }}-build-${{ hashFiles('**/pom.xml') }}
89-
restore-keys: |
90-
${{ runner.os }}-build-
87+
cache: 'maven'
88+
# or take below workaround as mentioned at https://github.com/actions/virtual-environments/issues/1499#issuecomment-689467080
89+
# -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.httpconnectionManager.ttlSeconds=120
90+
- name: Check
91+
run: mvn --batch-mode --update-snapshots -Drelease -DskipTests install
9192
- name: Build
9293
run: |
93-
mvn --batch-mode --update-snapshots -Drelease -DclickhouseVersion=${{ matrix.clickhouse }} -Dprotocol=${{ matrix.protocol }} verify
94+
mvn --batch-mode -Drelease -DclickhouseVersion=${{ matrix.clickhouse }} -Dprotocol=${{ matrix.protocol }} verify
9495
- name: Upload test results
9596
uses: actions/upload-artifact@v2
9697
if: failure()

.github/workflows/third_party_libs.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
version:
77
description: "Release version"
88
required: true
9-
default: "1.0.0"
9+
default: "1.2.0"
1010

1111
jobs:
1212
release:

.github/workflows/timezone.yml

+18-10
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ on:
2626
description: "Pull request#"
2727
required: false
2828

29+
concurrency:
30+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.number || github.sha }}
31+
cancel-in-progress: true
32+
2933
jobs:
3034
timezone:
3135
runs-on: ubuntu-latest
@@ -34,6 +38,7 @@ jobs:
3438
serverTz: ["Asia/Chongqing", "America/Los_Angeles", "Etc/UTC", "Europe/Berlin", "Europe/Moscow"]
3539
clientTz: ["Asia/Chongqing", "America/Los_Angeles", "Etc/UTC", "Europe/Berlin", "Europe/Moscow"]
3640
fail-fast: false
41+
timeout-minutes: 30
3742
name: "TimeZone(C/S): ${{ matrix.clientTz }} vs. ${{ matrix.serverTz }}"
3843
steps:
3944
- name: Check out Git repository
@@ -44,26 +49,29 @@ jobs:
4449
origin pull/${{ github.event.inputs.pr }}/merge:merged-pr && git checkout merged-pr
4550
if: github.event.inputs.pr != ''
4651
- name: Set up JDK 8
47-
uses: actions/setup-java@v1
52+
uses: actions/setup-java@v3
4853
with:
54+
distribution: 'temurin'
4955
java-version: 8
50-
- name: Cache maven dependencies
51-
uses: actions/cache@v2
52-
with:
53-
path: ~/.m2/repository
54-
key: ${{ runner.os }}-build-${{ hashFiles('**/pom.xml') }}
55-
restore-keys: |
56-
${{ runner.os }}-build-
56+
cache: 'maven'
5757
- name: Install dependencies
5858
run: |
5959
mvn --batch-mode --update-snapshots \
6060
--projects clickhouse-client -DskipTests \
6161
--also-make install
6262
- name: Test JDBC driver
6363
run: |
64-
mvn --batch-mode --update-snapshots \
65-
--projects clickhouse-jdbc \
64+
mvn --batch-mode --projects clickhouse-jdbc \
6665
-DclickhouseTimezone=${{ matrix.serverTz }} \
6766
-DclickhouseVersion=22.3 \
6867
-Duser.timezone=${{ matrix.clientTz }} \
6968
--also-make clean verify
69+
- name: Upload test results
70+
uses: actions/upload-artifact@v2
71+
if: failure()
72+
with:
73+
name: result ${{ github.job }}
74+
path: |
75+
**/target/failsafe-reports
76+
**/target/surefire-reports
77+

0 commit comments

Comments
 (0)