LFC
503585ba42
ci: update github runner on old branch ( #7249 )
...
* ci: update github runner (ubuntu-20.04 -> ubuntu-22.04)
Signed-off-by: luofucong <luofc@foxmail.com >
2025-11-18 19:52:03 +08:00
liyang
009dbad581
ci: don't push nightly latest image ( #5551 )
...
* ci: don't push nightly latest image
* add push release latest image
2025-02-17 04:34:49 +00:00
liyang
a2047b096c
ci: use s5cmd upload artifacts ( #5550 )
2025-02-17 02:57:13 +00:00
liyang
92d9e81a9f
ci: use the repository variable to pass to image-name ( #5517 )
...
Co-authored-by: Yingwen <realevenyag@gmail.com >
2025-02-13 18:14:49 +00:00
zyy17
58c6274bf6
fix: use fixed tonistiigi/binfmt:qemu-v7.0.0-28 image version instead of latest version to avoid segmentation fault ( #5516 )
...
fix: use fixed tonistiigi/binfmt:qemu-v7.0.0-28 image version instead of latest version to avoid segmentation fault
Co-authored-by: Yingwen <realevenyag@gmail.com >
2025-02-12 19:29:49 +00:00
Ning Sun
46947fd1de
ci: docbot requires pull_request_target ( #5514 )
2025-02-12 09:46:04 +00:00
LFC
ccfa40dc41
ci: run nightly jobs only on greptimedb repo ( #5505 )
...
ci: skip nightly ci jobs (#9 )
(cherry picked from commit 345b4c30474f47a0477263bfba9894d7b4acda2d)
(cherry picked from commit dcd779cd668802fb1ea12fefb4dc3f83f34e30a2)
2025-02-11 10:57:43 +00:00
yihong
342883e922
ci: safe ci using zizmor check ( #5491 )
...
* ci: safe ci using zizmor check
Signed-off-by: yihong0618 <zouzou0208@gmail.com >
* fix: lines empty
Signed-off-by: yihong0618 <zouzou0208@gmail.com >
* fix: delete useless code
Signed-off-by: yihong0618 <zouzou0208@gmail.com >
---------
Signed-off-by: yihong0618 <zouzou0208@gmail.com >
2025-02-11 02:38:14 +00:00
yihong
1e61d05211
fix: arm actions test failed ( #5433 )
...
Signed-off-by: yihong0618 <zouzou0208@gmail.com >
2025-01-24 03:43:59 +00:00
Ning Sun
d53b9fbd03
ci: switch to nix flakes for more reproducible builds ( #5426 )
2025-01-24 03:30:45 +00:00
Ning Sun
69881e3bc1
ci: allow skipping tests as required tasks ( #5436 )
...
ci: allow skipping tests
2025-01-24 03:04:55 +00:00
Ning Sun
5daac5fe3d
ci: revert coverage runner ( #5403 )
2025-01-20 03:52:38 +00:00
Ning Sun
f53b6777cc
ci: use arm builders for tests ( #5395 )
2025-01-20 02:12:12 +00:00
Yingwen
859717c309
ci: always build standard db ( #5390 )
...
ci: remove dev-mode = false in building standard db
2025-01-17 13:10:46 +00:00
Ning Sun
121ec7936f
ci: do not collect coverage from pull request any more ( #5364 )
...
* ci: do not collect coverage from pull request any more
* fix: disable toolchain cache
2025-01-15 09:33:49 +00:00
Yiran
5efcb41310
ci: automatically bump doc version when release GreptimeDB ( #5343 )
...
* ci: automatically bump doc version when release GreptimeDB
* add license header
2025-01-14 08:20:58 +00:00
Ning Sun
f5829364a2
fix: security fix, sqlx, hashbrown, idna and CI updates ( #5330 )
...
* fix: security fix, sqlx, hashbrown, idna
* ci: optimize ci cache generation
* feat: update pprof
2025-01-14 08:19:33 +00:00
Ning Sun
0685ba265c
ci: disable cache for some tasks, create cache in nightly build ( #5324 )
...
* ci: disable cache for some tasks
* ci: add a nightly test to create rust cache on main
2025-01-09 11:14:13 +00:00
Ning Sun
815ce59a3a
ci: use mold for tests ( #5319 )
...
* ci: use mold for tests
* ci: enable rust cache saving for merge group
2025-01-08 12:41:04 +00:00
Yingwen
c19a56c79f
feat!: Remove script crate and python feature ( #5321 )
...
* feat: exclude script crate
* chore: simplify feature
* feat: remove the script crate
* chore: remove python feature and some comments
* chore: fix warning
2025-01-08 12:11:53 +00:00
Ning Sun
e18416a726
ci: do not trigger tests when there is a merge conflict ( #5318 )
...
* ci: do not trigger tests when there is a merge conflict
* Update .github/workflows/develop.yml
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
* ci: disable cache from rust toolchain action
---------
Co-authored-by: Lei, HUANG <6406592+v0y4g3r@users.noreply.github.com >
2025-01-08 09:02:49 +00:00
Weny Xu
c89ef85902
chore(nightly-ci): remove pg_kvbackend feature gate in windows ci ( #5310 )
2025-01-08 03:53:58 +00:00
Weny Xu
3d9df822ad
refactor: refactor PgStore ( #5309 )
...
* refactor: refactor PgStore
* fix: election use bytea and txn use Serializable to avoid read unrepeatable (#4 )
* fix: election use bytea as well
* fix: use Serializable to avoid read unrepeatable
* chore: remove unused error
* ci: enable pg kvbackend and sqlness
* ci: switch on pg_kvbackend feature
* fix: fix sqlness runner
* chore: add pg_kvbackend feature gate
* build(ci): add feature gate
* fix: add retry for `PgStore` txn
* fix: correct `SET_IDLE_SESSION_TIMEOUT`
---------
Co-authored-by: Yohan Wal <1035325592@qq.com >
Co-authored-by: CookiePieWw <profsyb@gmail.com >
2025-01-07 07:27:58 +00:00
Weny Xu
05f115e047
fix(pg_backend): correct set idle_in_transaction_session_timeout statement ( #5304 )
...
* fix(metasrv): correct `backend` field configuration
* refactor!: added `#[serde(rename_all = "snake_case")]` macro to the `BackendImpl` enum
* fix(metasrv): correct `set idle_in_transaction_session_timeout` statement
* build: enable `pg_backend` by default
2025-01-06 12:07:35 +00:00
Ning Sun
ddf36c8324
ci: disable docker/rust cache temporarily and merge docker compose files ( #5293 )
...
* ci: disable docker cache temporarily and merge docker compose files
* ci: fix compose file name and options
* ci: try to disable rust cache
2025-01-06 08:23:46 +00:00
Ning Sun
cc5b1d42b0
ci: disable pyo3 build tasks ( #5256 )
...
* ci: disable pyo3 build tasks
* ci: skip installing python for windows
* ci: also removed python dependencies from docker base image
2024-12-31 04:53:41 +00:00
Ning Sun
1287d4cb9f
ci: make sure clippy passes before running tests ( #5253 )
...
* ci: make sure clippy passes before running tests
* ci: do not run ci on main branch
2024-12-30 07:01:15 +00:00
Yingwen
f1eb76f489
fix: implement a CacheStrategy to ensure compaction use cache correctly ( #5254 )
...
* feat: impl CacheStrategy
* refactor: replace Option<CacheManagerRef> with CacheStrategy
* feat: add disabled strategy
* ci: force update taplo
* refactor: rename CacheStrategy::Normal to CacheStrategy::EnableAll
* ci: force install cargo-gc-bin
* ci: force install
* chore: use CacheStrategy::Disabled as ScanInput default
* chore: fix compiler errors
2024-12-30 06:24:53 +00:00
Yohan Wal
ef13c52814
feat: init PgElection with candidate registration ( #5209 )
...
* feat: init PgElection
fix: release advisory lock
fix: handle duplicate keys
chore: update comments
fix: unlock if acquired the lock
chore: add TODO and avoid unwrap
refactor: check both lock and expire time, add more comments
chore: fmt
fix: deal with multiple edge cases
feat: init PgElection with candidate registration
chore: fmt
chore: remove
* test: add unit test for pg candidate registration
* test: add unit test for pg candidate registration
* chore: update pg env
* chore: make ci happy
* fix: spawn a background connection thread
* chore: typo
* fix: shadow the election client for now
* fix: fix ci
* chore: readability
* chore: follow review comments
* refactor: use kvbackend for pg election
* chore: rename
* chore: make clippy happy
* refactor: use pg server time instead of local ones
* chore: typo
* chore: rename infancy to leader_infancy for clarification
* chore: clean up
* chore: follow review comments
* chore: follow review comments
* ci: unit test should test all features
* ci: fix
* ci: just test pg
2024-12-26 12:39:32 +00:00
discord9
6a46f391cc
ci: upload .pdb files too for better windows debug ( #5224 )
...
ci: upload .pdb files too
2024-12-25 08:10:57 +00:00
zyy17
267941bbb5
ci: support to pack multiple files in upload-artifacts action ( #5228 )
2024-12-25 02:37:32 +00:00
Ning Sun
c623404fff
ci: fix nightly ci task on nix build ( #5198 )
2024-12-21 10:09:32 +00:00
Yingwen
fa3b7ed5ea
build: use 8xlarge as arm default ( #5214 )
2024-12-21 08:39:24 +00:00
Weny Xu
1910d71cb3
chore: adjust fuzz tests cfg ( #5207 )
2024-12-20 06:58:51 +00:00
dennis zhuang
7ea8a44d3a
chore: update PR template ( #5199 )
2024-12-19 08:28:20 +00:00
Ning Sun
2107737db1
chore: make nix compilation environment config more robust ( #5183 )
...
* chore: improve nix-shell support
* fix: add pkg-config
* ci: add a github action to ensure build on clean system
* ci: optimise dependencies of task
* ci: move clean build to nightly
2024-12-18 12:41:24 +00:00
Weny Xu
d0245473a9
fix: correct set_region_role_state_gracefully behaviors ( #5171 )
...
* fix: reduce default max rows for fuzz testing
* chore: remove Postgres setup from fuzz test workflow
* chore(fuzz): increase resource limits for GreptimeDB cluster
* chore(fuzz): increase resource limits for kafka
* fix: correct `set_region_role_state_gracefully` behaviors
* chore: remove Postgres setup from fuzz test workflow
* chore(fuzz): redue resource limits for GreptimeDB & kafka
2024-12-16 14:01:40 +00:00
Yingwen
579059d99f
ci: use 4xlarge for nightly build ( #5158 )
2024-12-13 12:53:11 +00:00
discord9
d91517688a
chore: fix aws_lc not in depend tree check in CI ( #5121 )
...
* chore: fix aws_lc check in CI
* chore: update lock file
2024-12-11 07:02:03 +00:00
Yingwen
7c69ca0502
chore: bump main branch version to 0.12 ( #5133 )
...
chore: bump version to v0.12.0
2024-12-10 13:10:37 +00:00
Weny Xu
b35221ccb6
ci: set meta replicas to 1 ( #5111 )
2024-12-09 07:22:47 +00:00
Ning Sun
bcadce3988
chore: remove openssl deps ( #5079 )
...
* chore: remove openssl deps
* ci: add ci task to check blacklisted dependencies
2024-12-02 07:12:15 +00:00
Zhenchi
a6571d3392
chore: bump version to 0.10.0 ( #5040 )
...
* chore: bump version to 0.10.0
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
* fix sqlness version regex
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
---------
Signed-off-by: Zhenchi <zhongzc_arch@outlook.com >
2024-11-22 03:56:25 +00:00
zyy17
0089cf1b4f
fix: run install.sh error ( #4989 )
...
* fix: use '/bin/sh' shebang and remove function key word
* ci: check install.sh in nightly CI
2024-11-13 21:54:24 +00:00
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
Ruihang Xia
03f2fa219d
feat: optimizer rule for windowed sort ( #4874 )
...
* basic impl
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* implement physical rule
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* feat: install windowed sort physical rule and optimize partition ranges
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* add logs and sqlness test
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* feat: introduce PartSortExec for partitioned sorting
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* tune exec nodes' properties and metrics
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* clean up
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix typo
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* debug: add more info on very wrong
* debug: also print overlap ranges
* feat: add check when emit PartSort Stream
* dbg: info on overlap working range
* feat: check batch range is inside part range
* set distinguish partition range param
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* chore: more logs
* update sqlness
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* tune optimizer
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* clean up
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix lints
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix windowed sort rule
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* fix: early terminate sort stream
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* chore: remove min/max check
* chore: remove unused windowed_sort module, uuid feature and refactor region_scanner to synchronous
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
* chore: print more fuzz log
* chore: more log
* fix: part sort should skip empty part
* chore: remove insert logs
* tests: empty PartitionRange
* refactor: testcase
* docs: update comment&tests: all empty
* ci: enlarge etcd cpu limit
---------
Signed-off-by: Ruihang Xia <waynestxia@gmail.com >
Co-authored-by: discord9 <discord9@163.com >
Co-authored-by: evenyag <realevenyag@gmail.com >
2024-10-29 07:46:05 +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
liyang
1acda74c26
fix: cannot input tag for the dev-builder image ( #4743 )
2024-09-19 11:14:34 +00:00