Skip to content

Commit eabbcf1

Browse files
committed
added tests for packages
1 parent 7dff492 commit eabbcf1

5 files changed

Lines changed: 63 additions & 11 deletions

File tree

.github/workflows/test-apisix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
-e ETCD_INITIAL_ADVERTISE_PEER_URLS=http://etcd:2380 \
5050
-e ETCD_INITIAL_CLUSTER_STATE=new \
5151
-e ALLOW_NONE_AUTHENTICATION=yes \
52-
bitnami/etcd:3.5
52+
bitnami/etcd:3.5.12
5353
5454
# Wait for etcd
5555
sleep 10

.github/workflows/test-doris.yml

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,44 @@ jobs:
7474
# Start FE in daemon mode
7575
./bin/start_fe.sh --daemon
7676
77-
# Wait for startup
77+
# Wait for FE startup
7878
sleep 30
7979
80+
- name: Start Doris BE
81+
id: start_be
82+
run: |
83+
echo "Starting Doris BE..."
84+
85+
cd $DORIS_HOME/be
86+
87+
# Ensure JAVA_HOME is exported
88+
export JAVA_HOME=$JAVA_HOME
89+
90+
# Start BE in daemon mode
91+
./bin/start_be.sh --daemon
92+
93+
# Wait for BE startup
94+
sleep 10
95+
96+
- name: Register BE with FE
97+
id: register_be
98+
run: |
99+
echo "Registering BE..."
100+
101+
# Install MySQL client if not present (it is installed in later step, but we need it now)
102+
sudo apt-get update && sudo apt-get install -y mysql-client
103+
104+
# Register BE (default port 9050)
105+
# We need to wait for FE to be fully ready to accept queries
106+
for i in {1..10}; do
107+
if mysql -h 127.0.0.1 -P 9030 -u root -e "ALTER SYSTEM ADD BACKEND '127.0.0.1:9050';"; then
108+
echo "BE registered successfully"
109+
break
110+
fi
111+
echo "Waiting for FE to be ready..."
112+
sleep 5
113+
done
114+
80115
- name: Test 1 - Check Process Running
81116
id: test1
82117
run: |
@@ -87,13 +122,23 @@ jobs:
87122
echo "status=passed" >> $GITHUB_OUTPUT
88123
else
89124
echo "✗ doris fe process not running"
90-
echo "Dumping logs..."
125+
echo "Dumping FE logs..."
91126
cat $DORIS_HOME/fe/log/fe.log || true
92127
cat $DORIS_HOME/fe/log/fe.out || true
93128
echo "status=failed" >> $GITHUB_OUTPUT
94129
exit 1
95130
fi
96131
132+
if pgrep -f "org.apache.doris.be"; then
133+
echo "✓ doris be process running"
134+
else
135+
echo "✗ doris be process not running"
136+
echo "Dumping BE logs..."
137+
cat $DORIS_HOME/be/log/be.INFO || true
138+
cat $DORIS_HOME/be/log/be.out || true
139+
# Don't fail yet, maybe it's slow
140+
fi
141+
97142
END_TIME=$(date +%s)
98143
echo "duration=$((END_TIME - START_TIME))" >> $GITHUB_OUTPUT
99144

.github/workflows/test-drill.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ jobs:
117117
# We need to be careful about interactive mode.
118118
# !quit exits sqlline
119119
120-
echo "SELECT version FROM sys.version; !quit" | $DRILL_HOME/bin/drill-embedded > query_output.txt 2>&1
120+
# Use sqlline directly to avoid interactive shell issues with drill-embedded
121+
# We need to connect to the embedded drillbit (zk=local)
122+
$DRILL_HOME/bin/sqlline -u jdbc:drill:zk=local -q "SELECT version FROM sys.version" > query_output.txt 2>&1
121123
122124
if grep -q "version" query_output.txt; then
123125
echo "✓ query execution works"

.github/workflows/test-knox.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,11 @@ jobs:
4545
# Set KNOX_HOME dynamically by finding the bin directory
4646
# The tarball might extract to a nested directory or different name
4747
KNOX_BIN=$(find . -name "knox-cli.sh" | head -n 1)
48+
if [ -z "$KNOX_BIN" ]; then
49+
echo "::error::knox-cli.sh not found after extraction"
50+
find . -maxdepth 3
51+
exit 1
52+
fi
4853
KNOX_HOME=$(dirname $(dirname $KNOX_BIN))
4954
echo "KNOX_HOME=$PWD/$KNOX_HOME" >> $GITHUB_ENV
5055

.github/workflows/test-kudu.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,23 @@ jobs:
3131
run: |
3232
echo "Installing Apache Kudu via Docker..."
3333
34-
# Using version 1.17.0 (released Sep 2023)
35-
# Note: Official Kudu images might be multi-arch or x86 only.
36-
# Metadata says it works on Arm.
34+
# Using version 1.17.1 (released Nov 2024) which has official Arm64 support
3735
3836
# Start Master
3937
docker run -d --name kudu-master \
4038
--network host \
4139
-e KUDU_MASTERS=localhost:7051 \
42-
apache/kudu:1.17.0 master \
43-
--unlock_unsafe_flags=true
40+
apache/kudu:1.17.1 master \
41+
--unlock_unsafe_flags=true \
42+
--use_hybrid_clock=false
4443
4544
# Start Tablet Server
4645
docker run -d --name kudu-tserver \
4746
--network host \
4847
-e KUDU_MASTERS=localhost:7051 \
49-
apache/kudu:1.17.0 tserver \
50-
--unlock_unsafe_flags=true
48+
apache/kudu:1.17.1 tserver \
49+
--unlock_unsafe_flags=true \
50+
--use_hybrid_clock=false
5151
5252
# Wait for startup
5353
sleep 15

0 commit comments

Comments
 (0)