File tree Expand file tree Collapse file tree 4 files changed +849
-772
lines changed
.github/actions/fuse_compat Expand file tree Collapse file tree 4 files changed +849
-772
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,6 @@ inputs:
12
12
runs :
13
13
using : " composite"
14
14
steps :
15
- - name : Setup Build Tool
16
- uses : ./.github/actions/setup_build_tool
17
-
18
15
- name : Download artifact
19
16
uses : ./.github/actions/artifact_download
20
17
with :
26
23
- name : Test compatibility
27
24
shell : bash
28
25
run : |
29
- build-tool bash ./tests/fuse-compat/test-fuse-compat.sh 0.7.150
30
- build-tool bash ./tests/fuse-compat/test-fuse-compat.sh 0.7.151
26
+ docker run --rm --tty --net=host \
27
+ --user $(id -u):$(id -g) \
28
+ --env BUILD_PROFILE \
29
+ --volume "${PWD}:/workspace" \
30
+ --workdir "/workspace" \
31
+ datafuselabs/build-tool:sqllogic \
32
+ bash ./tests/fuse-compat/test-fuse-compat.sh 0.7.150
33
+ docker run --rm --tty --net=host \
34
+ --user $(id -u):$(id -g) \
35
+ --env BUILD_PROFILE \
36
+ --volume "${PWD}:/workspace" \
37
+ --workdir "/workspace" \
38
+ datafuselabs/build-tool:sqllogic \
39
+ bash ./tests/fuse-compat/test-fuse-compat.sh 0.7.151
31
40
32
41
- name : Upload failure
33
42
if : failure()
Original file line number Diff line number Diff line change @@ -134,15 +134,33 @@ kill_proc() {
134
134
echo " === Done kill $name "
135
135
}
136
136
137
+ # Find path in old and new location.
138
+ # Databend release once changed binary path from `./` to `./bin`.
139
+ find_binary_path ()
140
+ {
141
+ local base=" $1 "
142
+ local binary_name=" $2 "
143
+
144
+ if [ -f " $base /$binary_name " ]; then
145
+ echo " $base /$binary_name "
146
+ elif [ -f " $base /bin/$binary_name " ]; then
147
+ echo " $base /bin/$binary_name "
148
+ else
149
+ echo " === Can not find binary path for $binary_name in $base / or $base /bin" >&2
150
+ exit 1
151
+ fi
152
+
153
+ }
154
+
137
155
# Test specified version of query and meta
138
156
run_test () {
139
157
local query_ver=" $1 "
140
158
local metasrv_ver=" $2 "
141
159
142
160
echo " === Test with query-$query_ver and metasrv-$metasrv_ver "
143
161
144
- local query=" ./bins/$query_ver / databend-query"
145
- local metasrv=" ./bins/$metasrv_ver / databend-meta"
162
+ local query=" $( find_binary_path " ./bins/$query_ver " " databend-query" ) "
163
+ local metasrv=" $( find_binary_path " ./bins/$metasrv_ver " " databend-meta" ) "
146
164
147
165
# "$metasrv" --single --cmd ver
148
166
You can’t perform that action at this time.
0 commit comments