Skip to content

Commit 13641c8

Browse files
authored
feat(test): test opendal fs engine on main cron with large dataset (risingwavelabs#8637)
1 parent 014f6db commit 13641c8

File tree

3 files changed

+75
-2
lines changed

3 files changed

+75
-2
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
#!/usr/bin/env bash
2+
3+
set -euo pipefail
4+
5+
source ci/scripts/common.env.sh
6+
7+
while getopts 'p:s:' opt; do
8+
case ${opt} in
9+
p )
10+
profile=$OPTARG
11+
;;
12+
s )
13+
script=$OPTARG
14+
;;
15+
\? )
16+
echo "Invalid Option: -$OPTARG" 1>&2
17+
exit 1
18+
;;
19+
: )
20+
echo "Invalid option: $OPTARG requires an argument" 1>&2
21+
;;
22+
esac
23+
done
24+
shift $((OPTIND -1))
25+
26+
27+
28+
echo "--- Download artifacts"
29+
mkdir -p target/debug
30+
buildkite-agent artifact download risingwave-"$profile" target/debug/
31+
buildkite-agent artifact download risedev-dev-"$profile" target/debug/
32+
33+
mv target/debug/risingwave-"$profile" target/debug/risingwave
34+
mv target/debug/risedev-dev-"$profile" target/debug/risedev-dev
35+
36+
echo "--- Adjust permission"
37+
chmod +x ./target/debug/risingwave
38+
chmod +x ./target/debug/risedev-dev
39+
40+
echo "--- Generate RiseDev CI config"
41+
cp ci/risedev-components.ci.env risedev-components.user.env
42+
43+
echo "--- Prepare RiseDev dev cluster"
44+
cargo make pre-start-dev
45+
cargo make link-all-in-one-binaries
46+
47+
echo "--- starting risingwave cluster with connector node"
48+
cargo make ci-start ci-3cn-3fe-opendal-fs-backend
49+
50+
echo "--- Run test"
51+
python3 -m pip install minio psycopg2-binary
52+
python3 e2e_test/s3/$script.py
53+
54+
echo "--- Kill cluster"
55+
rm -rf /tmp/rw_ci
56+
cargo make ci-kill

ci/workflows/main-cron.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ steps:
215215
- S3_SOURCE_TEST_CONF
216216
timeout_in_minutes: 20
217217
retry: *auto-retry
218+
218219
- label: "S3 source check on AWS (csv parser)"
219220
command: "ci/scripts/s3-source-test.sh -p ci-release -s run_csv"
220221
depends_on: build
@@ -229,4 +230,20 @@ steps:
229230
environment:
230231
- S3_SOURCE_TEST_CONF
231232
timeout_in_minutes: 20
233+
retry: *auto-retry
234+
235+
- label: "S3 source on OpenDAL fs engine"
236+
command: "ci/scripts/s3-source-test-for-opendal-fs-engine.sh -p ci-release -s run"
237+
depends_on: build
238+
plugins:
239+
- seek-oss/aws-sm#v2.3.1:
240+
env:
241+
S3_SOURCE_TEST_CONF: ci_s3_source_test_aws
242+
- docker-compose#v4.9.0:
243+
run: rw-build-env
244+
config: ci/docker-compose.yml
245+
mount-buildkite-agent: true
246+
environment:
247+
- S3_SOURCE_TEST_CONF
248+
timeout_in_minutes: 20
232249
retry: *auto-retry

risedev.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,8 +502,8 @@ profile:
502502
ci-3cn-3fe-opendal-fs-backend:
503503
config-path: src/config/ci.toml
504504
steps:
505-
# - use: etcd
506-
# unsafe-no-fsync: true
505+
- use: etcd
506+
unsafe-no-fsync: true
507507
- use: meta-node
508508
- use: opendal
509509
engine: fs

0 commit comments

Comments
 (0)