Skip to content

Commit

Permalink
fix doris
Browse files Browse the repository at this point in the history
fix

fix

fix doris

fix

fix

fix
  • Loading branch information
xxhZs committed Dec 26, 2023
1 parent 348b445 commit 6abdd2e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
6 changes: 3 additions & 3 deletions ci/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ services:
- FE_SERVERS=fe1:172.121.0.2:9010
- FE_ID=1
ports:
- "18030:8030"
- "19030:9030"
- "8030:8030"
- "9030:9030"
networks:
mynetwork:
ipv4_address: 172.121.0.2
Expand All @@ -205,7 +205,7 @@ services:
depends_on:
- doris-fe-server
ports:
- "19050:9050"
- "9050:9050"
networks:
mynetwork:
ipv4_address: 172.121.0.3
Expand Down
3 changes: 1 addition & 2 deletions ci/scripts/e2e-doris-sink-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,8 @@ echo "--- starting risingwave cluster"
cargo make ci-start ci-sink-test
sleep 1


echo "--- create doris table"
apt-get install -y mysql-client
apt-get update -y && apt-get install -y mysql-client
sleep 2
mysql -uroot -P 9030 -h doris-fe-server -e "CREATE database demo;use demo;
CREATE table demo_bhv_table(v1 int,v2 smallint,v3 bigint,v4 float,v5 double,v6 string,v7 datev2,v8 datetime,v9 boolean) UNIQUE KEY(\`v1\`)
Expand Down
8 changes: 8 additions & 0 deletions ci/workflows/main-cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,13 @@ steps:
timeout_in_minutes: 10
retry: *auto-retry

- label: "set vm_max_map_count_2000000"
if: |
!(build.pull_request.labels includes "ci/main-cron/skip-ci") && build.env("CI_STEPS") == null
|| build.pull_request.labels includes "ci/run-e2e-doris-sink-tests"
|| build.env("CI_STEPS") =~ /(^|,)e2e-doris-sink-tests?(,|$$)/
command: "sudo sysctl -w vm.max_map_count=2000000"

- label: "end-to-end doris sink test"
key: "e2e-doris-sink-tests"
command: "ci/scripts/e2e-doris-sink-test.sh -p ci-release"
Expand All @@ -728,6 +735,7 @@ steps:
depends_on:
- "build"
- "build-other"
- "set vm_max_map_count_2000000"
plugins:
- docker-compose#v4.9.0:
run: sink-doris-env
Expand Down
5 changes: 5 additions & 0 deletions ci/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -307,12 +307,17 @@ steps:
timeout_in_minutes: 10
retry: *auto-retry

- label: "set vm_max_map_count_2000000"
if: build.pull_request.labels includes "ci/run-e2e-doris-sink-tests" || build.env("CI_STEPS") =~ /(^|,) e2e-doris-sink-tests?(,|$$)/
command: "sudo sysctl -w vm.max_map_count=2000000"

- label: "end-to-end doris sink test"
if: build.pull_request.labels includes "ci/run-e2e-doris-sink-tests" || build.env("CI_STEPS") =~ /(^|,) e2e-doris-sink-tests?(,|$$)/
command: "ci/scripts/e2e-doris-sink-test.sh -p ci-dev"
depends_on:
- "build"
- "build-other"
- "set vm_max_map_count_2000000"
plugins:
- docker-compose#v4.9.0:
run: sink-doris-env
Expand Down

0 comments on commit 6abdd2e

Please sign in to comment.