Skip to content

Commit

Permalink
Merge branch 'main' into tab/deprecate-private-link-connection
Browse files Browse the repository at this point in the history
  • Loading branch information
tabVersion authored Oct 30, 2024
2 parents 635ca5e + b6051d8 commit 2059a8f
Show file tree
Hide file tree
Showing 114 changed files with 4,015 additions and 1,977 deletions.
4 changes: 4 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,7 @@ labels:
- label: "ci/run-e2e-single-node-tests"
files:
- "src\\/meta\\/.*.rs"

- label: "ci/run-e2e-test-other-backends"
files:
- "src\\/meta\\/.*.rs"
118 changes: 71 additions & 47 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -350,10 +350,11 @@ getrandom = { git = "https://github.com/madsim-rs/getrandom.git", rev = "e79a7ae
# tokio-stream = { git = "https://github.com/madsim-rs/tokio.git", rev = "0dd1055" }
tokio-retry = { git = "https://github.com/madsim-rs/rust-tokio-retry.git", rev = "95e2fd3" }
tokio-postgres = { git = "https://github.com/madsim-rs/rust-postgres.git", rev = "ac00d88" }
# NOTE(kwannoel): patch sqlx to use a version compatible with madsim.
# If we can merge in: https://github.com/madsim-rs/sqlx/pull/2,
# we can change it to patch madsim version instead.
sqlx = { git = "https://github.com/kwannoel/sqlx.git", rev = "ddf222f56cf99f865231a5383053645c6ea05ba3" }

# sqlx version: v0.7.4
# patch diffs: https://github.com/madsim-rs/sqlx/pull/3
sqlx = { git = "https://github.com/risingwavelabs/sqlx.git", rev = "ff6d6d2dc0e9e8e47282fd29be006eed7ae3421a" }

futures-timer = { git = "https://github.com/madsim-rs/futures-timer.git", rev = "05b33b4" }
# patch to remove preserve_order from serde_json
bson = { git = "https://github.com/risingwavelabs/bson-rust", rev = "e5175ec" }
Expand Down
8 changes: 8 additions & 0 deletions ci/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,14 @@ services:
volumes:
- ..:/risingwave

pg-mysql-backend-test-env:
image: public.ecr.aws/w1p7b4n3/rw-build-env:v20240911
depends_on:
- mysql
- db
volumes:
- ..:/risingwave

ci-flamegraph-env:
image: public.ecr.aws/w1p7b4n3/rw-build-env:v20240911
# NOTE(kwannoel): This is used in order to permit
Expand Down
1 change: 1 addition & 0 deletions ci/scripts/docker-scout-notify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
set -euo pipefail

buildkite-agent meta-data get SCOUT_REPORT > scout.report
report=$(cat scout.report)
cat >> step.yaml << EOF
steps:
- label: "docker scout slack notification"
Expand Down
7 changes: 7 additions & 0 deletions ci/scripts/run-e2e-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ cluster_start() {
# Give it a while to make sure the single-node is ready.
sleep 10
else
# Initialize backends.
if [[ $mode == *"mysql-backend" ]]; then
mysql -h mysql -P 3306 -u root -p123456 -e "DROP DATABASE IF EXISTS metadata; CREATE DATABASE metadata;"
elif [[ $mode == *"pg-backend" ]]; then
PGPASSWORD=postgres psql -h db -p 5432 -U postgres -c "DROP DATABASE IF EXISTS metadata;" -c "CREATE DATABASE metadata;"
fi

risedev ci-start "$mode"
fi
}
Expand Down
Loading

0 comments on commit 2059a8f

Please sign in to comment.