Skip to content

Commit 1d0acc9

Browse files
committed
testing
1 parent a647776 commit 1d0acc9

File tree

5 files changed

+59
-40
lines changed

5 files changed

+59
-40
lines changed

.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.12
52+
bitnami/etcd:3.5.16
5353
5454
# Wait for etcd
5555
sleep 10

.github/workflows/test-doris.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ jobs:
6161
java -version
6262
echo "JAVA_HOME: $JAVA_HOME"
6363
64+
- name: Set vm.max_map_count
65+
run: |
66+
sudo sysctl -w vm.max_map_count=2000000
67+
6468
- name: Start Doris FE
6569
id: start
6670
run: |

.github/workflows/test-drill.yml

Lines changed: 37 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ jobs:
3737
run: |
3838
echo "Installing Apache Drill..."
3939
40+
sudo apt-get update
41+
# for nc in Test 4
42+
sudo apt-get install -y netcat-openbsd
43+
4044
# Using version 1.21.2 (released June 2024)
4145
DRILL_VERSION=1.21.2
4246
wget https://dlcdn.apache.org/drill/${DRILL_VERSION}/apache-drill-${DRILL_VERSION}.tar.gz
@@ -76,11 +80,12 @@ jobs:
7680
run: |
7781
START_TIME=$(date +%s)
7882
79-
if [ -f "$DRILL_HOME/conf/drill-override.conf" ]; then
80-
echo "✓ drill-override.conf found"
83+
if [ -f "$DRILL_HOME/conf/drill-override.conf" ] || [ -f "$DRILL_HOME/conf/drill-override-example.conf" ]; then
84+
echo "✓ drill override config present (real or example)"
8185
echo "status=passed" >> $GITHUB_OUTPUT
8286
else
83-
echo "✗ drill-override.conf not found"
87+
echo "✗ drill override config not found"
88+
ls -R "$DRILL_HOME/conf" || true
8489
echo "status=failed" >> $GITHUB_OUTPUT
8590
exit 1
8691
fi
@@ -93,14 +98,12 @@ jobs:
9398
run: |
9499
START_TIME=$(date +%s)
95100
96-
# Drill embedded starts an interactive shell. We can pipe commands to it.
97-
# Or use drill-conf to check configuration.
98-
99-
if $DRILL_HOME/bin/drill-conf 2>&1 | grep -q "drill"; then
101+
if "$DRILL_HOME/bin/drill-conf" 2>&1 | grep -qi "drill"; then
100102
echo "✓ drill-conf runs"
101103
echo "status=passed" >> $GITHUB_OUTPUT
102104
else
103105
echo "✗ drill-conf failed"
106+
"$DRILL_HOME/bin/drill-conf" || true
104107
echo "status=failed" >> $GITHUB_OUTPUT
105108
exit 1
106109
fi
@@ -113,20 +116,36 @@ jobs:
113116
run: |
114117
START_TIME=$(date +%s)
115118
116-
# Run a simple query using sqlline
117-
# We need to be careful about interactive mode.
118-
# !quit exits sqlline
119+
echo "Starting Drill embedded..."
120+
(sleep 60; echo "!quit") | "$DRILL_HOME/bin/drill-embedded" > drill.log 2>&1 &
121+
DRILL_PID=$!
122+
123+
echo "Waiting for Drill Web UI on port 8047..."
124+
for i in {1..30}; do
125+
if nc -z localhost 8047; then
126+
echo "Drill Web UI is up"
127+
break
128+
fi
129+
sleep 2
130+
done
119131
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
132+
echo "Running query via REST API..."
133+
RESPONSE=$(curl -s -X POST -H "Content-Type: application/json" \
134+
-d '{"queryType":"SQL", "query": "SELECT version FROM sys.version"}' \
135+
http://localhost:8047/query.json || true)
136+
137+
echo "Response: $RESPONSE"
123138
124-
if grep -q "version" query_output.txt; then
139+
# Clean up
140+
kill "$DRILL_PID" 2>/dev/null || true
141+
142+
if echo "$RESPONSE" | grep -q "version"; then
125143
echo "✓ query execution works"
126144
echo "status=passed" >> $GITHUB_OUTPUT
127145
else
128146
echo "✗ query execution failed"
129-
cat query_output.txt
147+
echo "---- drill.log ----"
148+
cat drill.log || true
130149
echo "status=failed" >> $GITHUB_OUTPUT
131150
exit 1
132151
fi
@@ -139,18 +158,12 @@ jobs:
139158
run: |
140159
START_TIME=$(date +%s)
141160
142-
# In embedded mode, Drill starts a web server on 8047
143-
# Since we ran it and quit in Test 4, it's not running now.
144-
# We can try to start it in background, check port, then kill it.
145-
146-
# For smoke test, checking the query capability (Test 4) is usually sufficient proof of functionality.
147-
# Let's just verify the jar files exist as a sanity check for installation integrity.
148-
149-
if ls $DRILL_HOME/jars/drill-java-exec-*.jar 1> /dev/null 2>&1; then
161+
if ls "$DRILL_HOME"/jars/drill-java-exec-*.jar 1> /dev/null 2>&1; then
150162
echo "✓ drill jars found"
151163
echo "status=passed" >> $GITHUB_OUTPUT
152164
else
153165
echo "✗ drill jars not found"
166+
ls -R "$DRILL_HOME" || true
154167
echo "status=failed" >> $GITHUB_OUTPUT
155168
exit 1
156169
fi
@@ -166,7 +179,6 @@ jobs:
166179
FAILED=0
167180
TOTAL_DURATION=0
168181
169-
# Helper function to process test results
170182
process_test() {
171183
local status=$1
172184
local duration=$2
@@ -312,4 +324,4 @@ jobs:
312324
echo "- **Tests Passed:** ${{ steps.summary.outputs.passed }}" >> $GITHUB_STEP_SUMMARY
313325
echo "- **Tests Failed:** ${{ steps.summary.outputs.failed }}" >> $GITHUB_STEP_SUMMARY
314326
echo "- **Duration:** ${{ steps.summary.outputs.duration }}s" >> $GITHUB_STEP_SUMMARY
315-
echo "- **Runner:** ubuntu-24.04 (arm64)" >> $GITHUB_STEP_SUMMARY
327+
echo "- **Runner:** ubuntu-24.04 (arm64)" >> $GITHUB_STEP_SUMMARY

.github/workflows/test-knox.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,20 @@ jobs:
3939
4040
# Using version 2.0.0 (released Feb 2023)
4141
KNOX_VERSION=2.0.0
42-
wget https://archive.apache.org/dist/knox/${KNOX_VERSION}/knox-${KNOX_VERSION}.tar.gz
43-
tar -xzf knox-${KNOX_VERSION}.tar.gz
42+
# The binary distribution is a zip file, not tar.gz
43+
wget https://archive.apache.org/dist/knox/${KNOX_VERSION}/knox-${KNOX_VERSION}.zip
44+
unzip knox-${KNOX_VERSION}.zip
4445
4546
# Set KNOX_HOME dynamically by finding the bin directory
46-
# The tarball might extract to a nested directory or different name
47-
KNOX_BIN=$(find . -name "knox-cli.sh" | head -n 1)
47+
# Knox uses "knoxcli.sh" (no dash) in bin/
48+
KNOX_BIN=$(find . -name "knoxcli.sh" | head -n 1)
4849
if [ -z "$KNOX_BIN" ]; then
49-
echo "::error::knox-cli.sh not found after extraction"
50+
echo "::error::knoxcli.sh not found after extraction"
5051
find . -maxdepth 3
5152
exit 1
5253
fi
53-
KNOX_HOME=$(dirname $(dirname $KNOX_BIN))
54-
echo "KNOX_HOME=$PWD/$KNOX_HOME" >> $GITHUB_ENV
54+
KNOX_HOME=$(dirname "$(dirname "$KNOX_BIN")")
55+
echo "KNOX_HOME=$KNOX_HOME" >> $GITHUB_ENV
5556
5657
echo "install_status=success" >> $GITHUB_OUTPUT
5758
@@ -67,11 +68,11 @@ jobs:
6768
run: |
6869
START_TIME=$(date +%s)
6970
70-
if [ -f "$KNOX_HOME/bin/knox-cli.sh" ]; then
71-
echo "✓ knox-cli.sh found"
71+
if [ -f "$KNOX_HOME/bin/knoxcli.sh" ]; then
72+
echo "✓ knoxcli.sh found"
7273
echo "status=passed" >> $GITHUB_OUTPUT
7374
else
74-
echo "✗ knox-cli.sh not found"
75+
echo "✗ knoxcli.sh not found"
7576
echo "status=failed" >> $GITHUB_OUTPUT
7677
exit 1
7778
fi
@@ -85,7 +86,7 @@ jobs:
8586
START_TIME=$(date +%s)
8687
8788
# Knox requires a master secret to start
88-
$KNOX_HOME/bin/knox-cli.sh create-master --force --master "knox"
89+
$KNOX_HOME/bin/knoxcli.sh create-master --force --master "knox"
8990
9091
if [ $? -eq 0 ]; then
9192
echo "✓ master secret created"

.github/workflows/test-kudu.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,21 +31,23 @@ jobs:
3131
run: |
3232
echo "Installing Apache Kudu via Docker..."
3333
34-
# Using version 1.17.1 (released Nov 2024) which has official Arm64 support
34+
# Using version 1.17.0 (released Sep 2023)
35+
# Note: 1.17.1 tag is missing on Docker Hub. 1.17.0 exists but might be x86 (running via emulation).
36+
# We must disable hybrid clock for it to work in this environment.
3537
3638
# Start Master
3739
docker run -d --name kudu-master \
3840
--network host \
3941
-e KUDU_MASTERS=localhost:7051 \
40-
apache/kudu:1.17.1 master \
42+
apache/kudu:1.17.0 master \
4143
--unlock_unsafe_flags=true \
4244
--use_hybrid_clock=false
4345
4446
# Start Tablet Server
4547
docker run -d --name kudu-tserver \
4648
--network host \
4749
-e KUDU_MASTERS=localhost:7051 \
48-
apache/kudu:1.17.1 tserver \
50+
apache/kudu:1.17.0 tserver \
4951
--unlock_unsafe_flags=true \
5052
--use_hybrid_clock=false
5153

0 commit comments

Comments
 (0)