@@ -36,140 +36,9 @@ python3 -m pip install --break-system-packages requests protobuf fastavro conflu
36
36
apt-get -y install jq
37
37
38
38
echo " --- e2e, inline test"
39
- RUST_LOG=" debug,risingwave_stream=debug,risingwave_batch=info,risingwave_storage=info,risingwave_meta=info,events::stream::message::chunk=trace \
39
+ RUST_LOG=" debug,risingwave_stream=debug,risingwave_batch=info,risingwave_storage=info,risingwave_meta=info,events::stream::message::chunk=trace" \
40
40
risedev ci-start ci-inline-source-test
41
41
risedev slt ' ./e2e_test/source_inline/**/*.slt' -j16
42
42
risedev slt ' ./e2e_test/source_inline/**/*.slt.serial'
43
43
echo " --- Kill cluster"
44
44
risedev ci-kill
45
-
46
- echo " --- Prepare data"
47
- cp src/connector/src/test_data/simple-schema.avsc ./avro-simple-schema.avsc
48
- cp src/connector/src/test_data/complex-schema.avsc ./avro-complex-schema.avsc
49
- cp src/connector/src/test_data/complex-schema.json ./json-complex-schema
50
-
51
-
52
- echo " --- e2e, ci-1cn-1fe, mysql & postgres cdc"
53
-
54
- # import data to mysql
55
- mysql --host=mysql --port=3306 -u root -p123456 < ./e2e_test/source_legacy/cdc/mysql_cdc.sql
56
-
57
- # import data to postgres
58
- export PGHOST=db PGPORT=5432 PGUSER=postgres PGPASSWORD=postgres PGDATABASE=cdc_test
59
- createdb
60
- psql < ./e2e_test/source_legacy/cdc/postgres_cdc.sql
61
-
62
- echo " --- starting risingwave cluster"
63
- RUST_LOG=" debug,risingwave_stream=info,risingwave_batch=info,risingwave_storage=info" \
64
- risedev ci-start ci-1cn-1fe-with-recovery
65
-
66
- echo " --- Install sql server client"
67
- curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
68
- curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list
69
- apt-get update -y
70
- ACCEPT_EULA=Y DEBIAN_FRONTEND=noninteractive apt-get install -y mssql-tools unixodbc-dev
71
- export PATH=" /opt/mssql-tools/bin/:$PATH "
72
- sleep 2
73
-
74
- echo " --- mongodb cdc test"
75
- # install the mongo shell
76
- wget --no-verbose http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb
77
- wget --no-verbose https://repo.mongodb.org/apt/ubuntu/dists/focal/mongodb-org/4.4/multiverse/binary-amd64/mongodb-org-shell_4.4.28_amd64.deb
78
- dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb
79
- dpkg -i mongodb-org-shell_4.4.28_amd64.deb
80
-
81
- echo '> ping mongodb'
82
- echo 'db.runCommand({ping: 1})' | mongo mongodb://mongodb:27017
83
- echo '> rs config'
84
- echo 'rs.conf()' | mongo mongodb://mongodb:27017
85
- echo '> run test..'
86
- risedev slt './e2e_test/source_legacy/cdc/mongodb/**/*.slt'
87
-
88
- echo " --- inline cdc test"
89
- export MYSQL_HOST=mysql MYSQL_TCP_PORT=3306 MYSQL_PWD=123456
90
- export SQLCMDSERVER=sqlserver-server SQLCMDUSER=SA SQLCMDPASSWORD=" SomeTestOnly@SA" SQLCMDDBNAME=mydb SQLCMDPORT=1433
91
- risedev slt './e2e_test/source_legacy/cdc_inline/**/*.slt'
92
-
93
- echo " --- mysql & postgres cdc validate test"
94
- risedev slt './e2e_test/source_legacy/cdc/cdc.validate.mysql.slt'
95
- risedev slt './e2e_test/source_legacy/cdc/cdc.validate.postgres.slt'
96
-
97
- echo " --- cdc share source test"
98
- # cdc share stream test cases
99
- export MYSQL_HOST=mysql MYSQL_TCP_PORT=3306 MYSQL_PWD=123456
100
- risedev slt './e2e_test/source_legacy/cdc/cdc.share_stream.slt'
101
-
102
- echo " --- mysql & postgres load and check"
103
- risedev slt './e2e_test/source_legacy/cdc/cdc.load.slt'
104
- # wait for cdc loading
105
- sleep 10
106
- risedev slt './e2e_test/source_legacy/cdc/cdc.check.slt'
107
-
108
- # kill cluster
109
- risedev kill
110
- echo " > cluster killed "
111
-
112
- echo " --- mysql & postgres recovery check"
113
- # insert into mytest database (cdc.share_stream.slt)
114
- mysql --protocol=tcp -u root mytest -e " INSERT INTO products
115
- VALUES (default,' RisingWave' ,' Next generation Streaming Database' ),
116
- (default,' Materialize' ,' The Streaming Database You Already Know How to Use' );
117
- UPDATE products SET name = ' RW' WHERE id < = 103;
118
- INSERT INTO orders VALUES (default, ' 2022-12-01 15:08:22' , ' Sam' , 1000.52, 110, false); "
119
-
120
-
121
- # insert new rows
122
- mysql --host=mysql --port=3306 -u root -p123456 < ./e2e_test/source_legacy/cdc/mysql_cdc_insert.sql
123
- echo " > inserted new rows into mysql"
124
-
125
- psql < ./e2e_test/source_legacy/cdc/postgres_cdc_insert.sql
126
- echo " > inserted new rows into postgres"
127
-
128
- # start cluster w/o clean-data
129
- unset RISINGWAVE_CI
130
- export RUST_LOG=" risingwave_stream=debug,risingwave_batch=info,risingwave_storage=info"
131
-
132
- risedev dev ci-1cn-1fe-with-recovery
133
- echo " > wait for cluster recovery finish"
134
- sleep 20
135
- echo " > check mviews after cluster recovery"
136
- # check results
137
- risedev slt './e2e_test/source_legacy/cdc/cdc.check_new_rows.slt'
138
-
139
- # drop relations
140
- risedev slt './e2e_test/source_legacy/cdc/cdc_share_stream_drop.slt'
141
-
142
- echo " --- Kill cluster"
143
- risedev ci-kill
144
- export RISINGWAVE_CI=true
145
-
146
- echo " --- e2e, ci-kafka-plus-pubsub, legacy kafka tests"
147
- export RUST_MIN_STACK=4194304
148
- RUST_LOG=" info,risingwave_stream=info,risingwave_batch=info,risingwave_storage=info" \
149
- risedev ci-start ci-kafka
150
- ./e2e_test/source_legacy/basic/scripts/prepare_ci_kafka.sh
151
- risedev slt './e2e_test/source_legacy/basic/*.slt'
152
- risedev slt './e2e_test/source_legacy/basic/old_row_format_syntax/*.slt'
153
-
154
- echo " --- Run CH-benCHmark"
155
- risedev slt './e2e_test/ch_benchmark/batch/ch_benchmark.slt'
156
- risedev slt './e2e_test/ch_benchmark/streaming/*.slt'
157
-
158
- risedev ci-kill
159
- echo " --- cluster killed "
160
-
161
- echo " --- starting risingwave cluster for webhook source test"
162
- risedev ci-start ci-1cn-1fe-with-recovery
163
- sleep 5
164
- # check results
165
- risedev slt " e2e_test/webhook/webhook_source.slt"
166
-
167
- risedev kill
168
-
169
- risedev dev ci-1cn-1fe-with-recovery
170
- echo " --- wait for cluster recovery finish"
171
- sleep 20
172
- risedev slt " e2e_test/webhook/webhook_source_recovery.slt"
173
-
174
- risedev ci-kill
175
- echo " --- cluster killed "
0 commit comments