Weny Xu
83eb777d21
test: add fuzz test for metric region migration ( #4862 )
...
* test: add fuzz tests for migrate metric regions
* test: insert values before migrating metric region
* feat: correct table num
* chore: apply suggestions from CR
2024-10-29 15:47:48 +00:00
discord9
f3e5a5a7aa
ci: install numpy in CI ( #4895 )
...
chore: install numpy in CI
2024-10-29 07:57:40 +00:00
Weny Xu
6e776d5f98
feat: support to reject write after flushing ( #4759 )
...
* refactor: use `RegionRoleState` instead of `RegionState`
* feat: introducing `RegionLeaderState::Downgrading`
* refactor: introduce `set_region_role_state_gracefully`
* refactor: use `set_region_role` instead of `set_writable`
* feat: support to reject write after flushing
* fix: fix unit tests
* test: add unit test for `should_reject_write`
* chore: add comments
* chore: refine comments
* fix: fix unit test
* test: enable fuzz tests for Local WAL
* chore: add logs
* chore: rename `RegionStatus` to `RegionState`
* feat: introduce `DowngradingLeader`
* chore: rename
* refactor: refactor `set_role_state` tests
* test: ensure downgrading region will reject write
* chore: enhance logs
* chore: refine name
* chore: refine comment
* test: add tests for `set_role_role_state`
* fix: fix unit tests
* chore: apply suggestions from CR
* chore: apply suggestions from CR
2024-09-30 08:28:51 +00:00
discord9
0274e752ae
chore: make sure aws-lc-sys wouldn't be built ( #4767 )
...
* chore: make sure aws-lc-sys wouldn't be built
* fix: bash
* refactor: multiple line bash
2024-09-25 17:11:37 +00:00
Ruihang Xia
93f202694c
refactor: remove unused error variants ( #4666 )
...
* add python script
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove unused errors
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix all negative cases
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* setup CI
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add license header
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-09-03 13:19:38 +00:00
Ning Sun
0b102ef846
ci: improve toolchain resolution in ci ( #4614 )
...
* ci: improve toolchain resolution in ci
* fix: yaml format
2024-08-27 07:46:51 +00:00
Ruihang Xia
a3b8d2fe8f
chore: bump rust toolchain to 2024-08-21 ( #4606 )
...
* chore: bump rust toolchain to 2024-08-22
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update workflow
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* try 20240606
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-08-22 15:38:10 +00:00
Weny Xu
25cd61b310
chore: upgrade toolchain to nightly-2024-08-07 ( #4549 )
...
* chore: upgrade toolchain to `nightly-2024-08-07`
* chore(ci): upgrade toolchain
* fix: fix unit test
2024-08-22 11:02:18 +00:00
Weny Xu
8036b44347
chore: setup kafka before downloading binary step ( #4582 )
2024-08-19 06:44:33 +00:00
Lanqing Yang
93be81c041
feat: implement postgres kvbackend ( #4421 )
2024-08-14 22:49:32 +00:00
Weny Xu
2e2eacf3b2
feat: add SASL and TLS config for Kafka client ( #4536 )
...
* feat: add SASL and TLS config
* feat: add SASL/PLAIN and TLS config for Kafka client
* chore: use `ring`
* feat: support SASL SCRAM-SHA-256 and SCRAM-SHA-512
* fix: correct unit test
* test: add integration test
* chore: apply suggestions from CR
* refactor: introduce `KafkaConnectionConfig`
* chore: refine toml examples
* docs: add missing fields
* chore: refine examples
* feat: allow no server ca cert
* chore: refine examples
* chore: fix clippy
* feat: load system ca certs
* chore: fmt toml
* chore: unpin version
* Update src/common/wal/src/error.rs
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
---------
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
2024-08-12 12:27:11 +00:00
LFC
a75cfaa516
chore: update snafu to make clippy happy ( #4507 )
...
* chore: update snafu to make clippy happy
* fix ci
2024-08-07 16:12:00 +00:00
LFC
685aa7dd8f
ci: squeeze some disk space for complex fuzz tests ( #4519 )
...
* ci: squeeze some disk space for complex fuzz tests
* Update .github/workflows/develop.yml
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
---------
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
2024-08-06 11:52:34 +00:00
Weny Xu
79f10d0415
chore: reduce fuzz tests in CI ( #4505 )
2024-08-05 06:56:41 +00:00
Weny Xu
dd23d47743
chore(ci): bring back chaos tests ( #4456 )
...
* Revert "chore: temporarily disable fuzz chaos tests (#4457 )"
This reverts commit f0c953f84a .
* chore: update config
* Update .github/actions/setup-greptimedb-cluster/with-remote-wal.yaml
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
---------
Co-authored-by: Ruihang Xia <waynestxia@gmail.com >
2024-07-31 07:29:31 +00:00
Ruihang Xia
7daf24c47f
feat: remove dedicated runtime for grpc, mysql and pg protocols ( #4436 )
...
* feat: remove dedicated runtime for grpc, mysql and pg protocols
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* remove other runtimes
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* spawn compact task into compact_runtime
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* refine naming
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* Update src/servers/tests/mysql/mysql_server_test.rs
Co-authored-by: Zhenchi <zhongzc_arch@outlook.com >
* fix clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* turnoff fuzz test matrix fail fast option
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* chore: update rt config for ci tests
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: Zhenchi <zhongzc_arch@outlook.com >
Co-authored-by: Weny Xu <wenymedia@gmail.com >
2024-07-30 06:17:58 +00:00
Weny Xu
f0c953f84a
chore: temporarily disable fuzz chaos tests ( #4457 )
2024-07-29 13:23:40 +00:00
Weny Xu
8a119aa0b2
feat: add naive region failover test for metric table ( #4269 )
...
* feat: add failover test for metric table
* chore: introduce help marco
* chore: remove incorrect check
2024-07-05 06:54:23 +00:00
Weny Xu
76fac359cd
feat: implement naive fuzz test for region migration ( #4252 )
...
* fix(fuzz): adapt for new partition rules
* feat: implement naive fuzz test for region migration
* chore(ci): add ci cfg
* chore: apply suggestions from CR
* chore: apply suggestions from CR
2024-07-03 13:30:41 +00:00
Weny Xu
0f4b9e576d
chore(ci): add timeout (60min) for fuzz tests ( #4255 )
2024-07-03 03:36:43 +00:00
Weny Xu
352cc9ddde
test: add e2e test for region failover ( #4188 )
...
* test: add e2e test for region failover
* chore: add ci cfg
* chore: reduce parallelism to 8
* fix(ci): enable region failure
* chore: set sqlx LogLevel to Off
* refactor: move help functions to utils
2024-06-28 06:49:41 +00:00
Weny Xu
573e25a40f
chore: run fuzz tests with disk cache ( #4118 )
...
* chore: run fuzz tests with disk cache
* fix: print error messages correctly
2024-06-13 09:07:12 +00:00
Weny Xu
09e0e1b246
chore: run fuzz tests with kafka remote wal ( #4105 )
...
* chore: add fuzz tests with kafka
* chore(ci): use minio
* chore: add empty line
* chore(ci): refactor
* chore: add empty line
* fix: update config
* fix: add default value for `MetaClientOptions`
* fix: remove redundant `debug_assert`
* chore: run fuzz tests with disk cache
* chore: remove redundant minio setup
* chore: cache targets
* Revert "chore: run fuzz tests with disk cache"
This reverts commit d81783187d .
* chore: fix typo
* chore: apply suggestions from CR
* Revert "fix: remove redundant `debug_assert`"
This reverts commit 09b899eed1 .
2024-06-07 03:47:40 +00:00
Weny Xu
16b85b06b6
chore: remove gc before running fuzz tests ( #4108 )
2024-06-05 11:59:29 +00:00
Ruihang Xia
03cacf9948
ci: cargo gc all fuzz test runner ( #4081 )
...
* ci: cargo gc all fuzz test runner
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* chore(ci): disable caching targets
* chore(ci): remove .tar file after unzip
* fix cargo-gc command
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: WenyXu <wenymedia@gmail.com >
2024-06-05 09:58:29 +00:00
Weny Xu
e0a2c5a581
chore(ci): remove redundant sqlness test config ( #4106 )
2024-06-05 08:39:39 +00:00
Weny Xu
a6269397c8
fix: fix EntityTooSmall issue ( #4100 )
...
* fix: fix EntityTooSmall issue
* chore(ci): add minio to coverage
* tests: add test for parquet writer
* chore: move tests to `common-datasource` crate
2024-06-04 08:43:33 +00:00
Weny Xu
4e5dd1ebb0
ci: try to free space after fuzz tests ( #4089 )
...
* chore(ci): remove .tar file after unzip
* chore: free space
* chore: include debug info
2024-06-02 21:22:22 +00:00
Ruihang Xia
f024054ed3
ci: cargo gc fuzz test runner ( #4074 )
...
* ci: cargo gc fuzz test runner
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* change profile to dev
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-30 10:41:29 +00:00
Weny Xu
614643ef7b
chore(ci): add more replicas ( #4015 )
2024-05-23 02:43:24 +00:00
Weny Xu
d7ade3c854
chore(ci): add fuzz tests for distributed mode ( #3967 )
...
* chore(ci): add cfg for setup GreptimeDB cluster
* chore: use kind
* chore: always print info
* chore: add debug print
* chore: set etcd replica to 1
* ci: refactor e2e cfg
* ci: add Fuzz Test for distributed mode
* Apply suggestions from code review
* chore: apply suggestions from CR
* chore(ci): upload logs
2024-05-21 04:58:42 +00:00
Yingwen
6214180ecd
build: upgrade rust toolchain to fix ci issues on Windows ( #3898 )
...
* ci: use windows 2019
* test: ignore cleanup result
* chore: revert change
* test: unstable repeated task test
* build: update rust toolchain and windows
* ci: test sqlness
* chore: enable other tests
2024-05-14 06:13:43 +00:00
Ruihang Xia
08945f128b
fix: sort unstable HTTP result on test profile
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-10 17:01:42 +08:00
Ruihang Xia
65f80af9a9
build: run cargo gc to build binaries ( #3874 )
...
* build: run cargo gc to build binaries
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add comment
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-05-07 11:16:47 +00:00
shuiyisong
1b93a026c2
ci: align clippy checks and fixup ( #3868 )
...
* fix: make clippy
* fix: use make in CI
2024-05-07 03:00:38 +00:00
Weny Xu
f6e2039eb8
test: introduce unstable fuzz create table test ( #3788 )
...
* feat: implement unstable_fuzz_create_table_standalone
* chore: use drop database
* docs: update docs
* chore: add ci config
* chore: add feature gate
* fix: fix clippy
* chore: update ci
* Apply suggestions from code review
* feat: reduce num
* Apply suggestions from code review
* chore: apply suggestions from CR
* Apply suggestions from code review
* chore: reduce `wait_timeout` in health check
* Update .env.example
* refactor: use `init_greptime_connections_via_env`
* refactor: use `init_greptime_connections_via_env`
---------
Co-authored-by: tison <wander4096@gmail.com >
2024-05-01 06:08:49 +00:00
tison
695746193b
ci: reduce workflow files by merging actions ( #3848 )
...
* ci: merge license header checker into dev ci
Signed-off-by: tison <wander4096@gmail.com >
* ci: merge nightly-funtional-tests.yml into nightly-ci.yml
Signed-off-by: tison <wander4096@gmail.com >
* fix typos
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: tison <wander4096@gmail.com >
2024-05-01 04:44:00 +00:00
Yohan Wal
573d369f77
feat(fuzz): add insert logical table target ( #3842 )
...
* refactor: let upper caller control whether to omit column list
* feat(fuzz): add insert logical table target
* ci: add fuzz_insert_logical_table ci cfg
2024-05-01 03:48:51 +00:00
Yohan Wal
8e3515d396
ci: add fuzz_insert ci cfg ( #3840 )
...
chore(ci): add fuzz_insert ci cfg
2024-04-30 02:44:36 +00:00
Yohan Wal
f29aebf89f
feat(fuzz): add alter logical table target ( #3818 )
...
* feat(fuzz): add alter logical table target
* chore(ci): add fuzz_alter_logical_table ci cfg
2024-04-28 06:40:37 +00:00
Yohan Wal
934c7e3fef
feat(fuzz): add create logical table target ( #3756 )
...
* feat(fuzz): add create logical table target
* fix: drop physical table after fuzz test
* fix: remove backticks of table name in with clause
* fix: create physical and logical table properly
* chore: update comments
* chore(ci): add fuzz_create_logical_table ci cfg
* fix: create one logical table once a time
* fix: avoid possible duplicate table and column name
* feat: use hard-code physical table
* chore: remove useless phantom
* refactor: create logical table with struct initialization
* chore: suggested changes and corresponding test changes
* chore: clean up
2024-04-26 09:09:08 +00:00
Weny Xu
e0b5f52c2a
fix: fix fuzz test ci ( #3795 )
2024-04-24 10:22:41 +00:00
Ruihang Xia
443722597b
ci: temporary disable compatibility test ( #3767 )
...
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-04-22 11:10:24 +00:00
Ruihang Xia
d0b2a11f2b
feat: add preserve arg to sqlness runner ( #3724 )
...
* feat: add preserve arg to sqlness runner
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* replace tempdir with tempfile
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
2024-04-22 09:21:37 +00:00
Ruihang Xia
0c5f4801b7
build: update toolchain to nightly-2024-04-18 ( #3740 )
...
* chore: update toolchain to nightly-2024-04-17
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix test clippy
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix ut
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update fuzz test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update to nightly-2024-04-18
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add document
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* update CI
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* avoid unnecessary allow clippy attrs
Signed-off-by: tison <wander4096@gmail.com >
* help the compiler find the clone is unnecessary and make clippy happy
Signed-off-by: tison <wander4096@gmail.com >
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Signed-off-by: tison <wander4096@gmail.com >
Co-authored-by: tison <wander4096@gmail.com >
2024-04-19 05:42:34 +00:00
zyy17
3e9bda3267
ci: use greptimedb-ci-tester account ( #3719 )
2024-04-16 14:43:17 +00:00
zyy17
8060c81e1d
refactor: use toml2docs to generate config docs ( #3704 )
...
* refactor: use toml2docs to generate config docs
* ci: add docs check in 'check-typos-and-docs'
2024-04-15 09:08:32 +00:00
Yohan Wal
682b04cbe4
feat(fuzz): add create database target ( #3675 )
...
* feat(fuzz): add create database target
* chore(ci): add fuzz_create_database ci cfg
2024-04-09 01:33:29 +00:00
tison
2fca45b048
ci: setup-protoc always with token ( #3674 )
...
Signed-off-by: tison <wander4096@gmail.com >
2024-04-08 18:13:24 +00:00
Ning Sun
5ca8521e87
ci: attempt to setup docker cache for etcd ( #3488 )
...
* ci: attempt to setup docker cache for etcd
* ci: do not use file hash for cache key
2024-03-14 00:48:02 +00:00