Skip to content

Commit f384932

Browse files
authored
ci: fix ttc test (#17807)
1 parent 556080f commit f384932

File tree

19 files changed

+116
-49
lines changed

19 files changed

+116
-49
lines changed

.github/actions/build_linux/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ runs:
9090
- name: Check Binary Info
9191
shell: bash
9292
run: |
93-
grep ' Compiled in ' target/sccache.log
93+
grep ' Compiled in ' target/sccache.log || true
9494
readelf -p .comment ./target/${{ inputs.target }}/${{ env.BUILD_PROFILE }}/databend-query || true
9595
ldd ./target/${{ inputs.target }}/${{ env.BUILD_PROFILE }}/databend-query || true
9696

.github/actions/pack_binaries/action.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ runs:
7272
name: sha256sums-${{ inputs.category }}-${{ inputs.target }}
7373
path: sha256-${{ steps.pack_binaries.outputs.pkg_name }}.txt
7474
retention-days: 1
75-
- name: post binaries
76-
uses: actions/upload-artifact@v4
77-
with:
78-
name: ${{ steps.pack_binaries.outputs.pkg_name }}.tar.gz
79-
path: ${{ steps.pack_binaries.outputs.pkg_name }}.tar.gz
80-
retention-days: 1
75+
# - name: post binaries
76+
# uses: actions/upload-artifact@v4
77+
# with:
78+
# name: ${{ steps.pack_binaries.outputs.pkg_name }}.tar.gz
79+
# path: ${{ steps.pack_binaries.outputs.pkg_name }}.tar.gz
80+
# retention-days: 1

.github/actions/setup_build_tool/action.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ runs:
4949
export SCCACHE_S3_KEY_PREFIX="cache/sccache/"
5050
export SCCACHE_S3_USE_SSL="true"
5151
export SCCACHE_ERROR_LOG=/workspace/target/sccache.log
52-
export SCCACHE_LOG=debug
52+
export SCCACHE_LOG=info
5353
EOF
5454
;;
5555
@@ -62,7 +62,7 @@ runs:
6262
export SCCACHE_GCS_BUCKET=databend-ci
6363
export SCCACHE_GCS_KEY_PREFIX="cache/sccache/"
6464
export SCCACHE_ERROR_LOG=/workspace/target/sccache.log
65-
export SCCACHE_LOG=debug
65+
export SCCACHE_LOG=info
6666
EOF
6767
;;
6868
@@ -101,6 +101,13 @@ runs:
101101
shell: bash
102102
run: df -h
103103

104+
- name: check system info
105+
shell: bash
106+
run: |
107+
uname -a
108+
grep "^model" /proc/cpuinfo
109+
free -h
110+
104111
# - uses: everpcpc/actions-cache@v1
105112
# if: env.RUNNER_PROVIDER == 'aws'
106113
# env:

.github/actions/setup_test/action.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,16 @@ runs:
4949
shell: bash
5050
run: |
5151
echo "LD_LIBRARY_PATH=${{ env.JAVA_HOME }}/lib/server:${{ env.LD_LIBRARY_PATH }}" >> $GITHUB_ENV
52+
53+
- name: check docker info
54+
shell: bash
55+
run: |
56+
docker info
57+
docker version
58+
docker ps -a
59+
docker images
60+
61+
- name: setup env
62+
shell: bash
63+
run: |
64+
echo "RUST_LOG=info" >> $GITHUB_ENV

.github/actions/test_unit/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ runs:
1212
- shell: bash
1313
run: |
1414
cargo -Zgitoxide=fetch -Zgit=shallow-index,shallow-deps nextest run --no-fail-fast --hide-progress-bar
15-
grep ' Compiled in ' target/sccache.log
15+
grep ' Compiled in ' target/sccache.log || true
1616
env:
1717
RUST_TEST_THREADS: "8"
1818
RUST_LOG: ERROR

scripts/ci/deploy/config/databend-meta-node-1.toml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,28 @@
11
# Usage:
22
# databend-meta -c databend-meta-node-1.toml
33

4-
log_dir = "./.databend/logs1"
54
admin_api_address = "0.0.0.0:28101"
65
grpc_api_address = "0.0.0.0:9191"
76
# databend-query fetch this address to update its databend-meta endpoints list,
87
# in case databend-meta cluster changes.
98
grpc_api_advertise_host = "127.0.0.1"
109

10+
[log]
11+
[log.stderr]
12+
on = false
13+
[log.file]
14+
on = true
15+
level = "INFO"
16+
format = "json"
17+
dir = "./.databend/logs1"
18+
1119
[raft_config]
1220
id = 1
1321
raft_dir = "./.databend/meta1"
1422
raft_api_port = 28103
1523

1624
# Assign raft_{listen|advertise}_host in test config.
17-
# This allows you to catch a bug in unit tests when something goes wrong in raft meta nodes communication.
25+
# This allows you to catch a bug in unit tests when something goes wrong in raft meta nodes communication.
1826
raft_listen_host = "127.0.0.1"
1927
raft_advertise_host = "localhost"
2028

scripts/ci/deploy/config/databend-meta-node-2.toml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,22 @@
11
# Usage:
22
# databend-meta -c databend-meta-node-2.toml
33

4-
log_dir = "./.databend/logs2"
54
admin_api_address = "0.0.0.0:28201"
65
grpc_api_address = "0.0.0.0:28202"
76
# databend-query fetch this address to update its databend-meta endpoints list,
87
# in case databend-meta cluster changes.
98
grpc_api_advertise_host = "127.0.0.1"
109

10+
11+
[log]
12+
[log.stderr]
13+
on = false
14+
[log.file]
15+
on = true
16+
level = "INFO"
17+
format = "json"
18+
dir = "./.databend/logs2"
19+
1120
[raft_config]
1221
id = 2
1322
raft_dir = "./.databend/meta2"

scripts/ci/deploy/config/databend-meta-node-3.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
11
# Usage:
22
# databend-meta -c databend-meta-node-3.toml
33

4-
log_dir = "./.databend/logs3"
54
admin_api_address = "0.0.0.0:28301"
65
grpc_api_address = "0.0.0.0:28302"
76
# databend-query fetch this address to update its databend-meta endpoints list,
87
# in case databend-meta cluster changes.
98
grpc_api_advertise_host = "127.0.0.1"
109

10+
[log]
11+
[log.stderr]
12+
on = false
13+
[log.file]
14+
on = true
15+
level = "INFO"
16+
format = "json"
17+
dir = "./.databend/logs3"
18+
1119
[raft_config]
1220
id = 3
1321
raft_dir = "./.databend/meta3"

scripts/ci/deploy/config/databend-meta-node-for-bendsave.toml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
11
# Usage:
2-
# databend-meta -c databend-meta-node-1.toml
2+
# databend-meta -c databend-meta-node-for-bendsave.toml
33

4-
log_dir = "./.databend/logs1"
54
admin_api_address = "0.0.0.0:28101"
65
grpc_api_address = "0.0.0.0:9191"
76
# databend-query fetch this address to update its databend-meta endpoints list,
87
# in case databend-meta cluster changes.
98
grpc_api_advertise_host = "127.0.0.1"
109

10+
[log]
11+
[log.stderr]
12+
on = false
13+
[log.file]
14+
on = true
15+
level = "INFO"
16+
format = "json"
17+
dir = "./.databend/logs-bendsave"
18+
1119
[raft_config]
1220
id = 1
13-
raft_dir = "/tmp/databend/meta1"
21+
raft_dir = "/tmp/databend/meta-bendsave"
1422
raft_api_port = 28103
1523

1624
# Assign raft_{listen|advertise}_host in test config.

scripts/ci/deploy/databend-query-management-mode.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ done
2323
sleep 1
2424

2525
echo 'Start databend-meta...'
26-
nohup target/${BUILD_PROFILE}/databend-meta --single --log-level=INFO &
26+
nohup target/${BUILD_PROFILE}/databend-meta -c scripts/ci/deploy/config/databend-meta-node-1.toml &
2727
echo "Waiting on databend-meta 10 seconds..."
2828
python3 scripts/ci/wait_tcp.py --timeout 30 --port 9191
2929

0 commit comments

Comments
 (0)