This is an automated email from the ASF dual-hosted git repository.
zyxxoo pushed a commit to branch refactor/rust-rewrite-design
in repository https://gitbox.apache.org/repos/asf/hugegraph.git
The following commit(s) were added to refs/heads/refactor/rust-rewrite-design
by this push:
new d5d19b14d ci(rust): enforce partition contract gates
d5d19b14d is described below
commit d5d19b14deeddf9c27de202f478a47413d159a8a
Author: vaughn <[email protected]>
AuthorDate: Sun Sep 13 17:05:20 2026 +0800
ci(rust): enforce partition contract gates
---
.github/workflows/rust-partition-poc.yml | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/.github/workflows/rust-partition-poc.yml
b/.github/workflows/rust-partition-poc.yml
index 8bba82094..017e68b64 100644
--- a/.github/workflows/rust-partition-poc.yml
+++ b/.github/workflows/rust-partition-poc.yml
@@ -2,21 +2,22 @@ name: Rust Partition POC
on:
pull_request:
- paths:
- - "tools/rust-partition-poc/**"
- - ".github/workflows/rust-partition-poc.yml"
push:
- branches: [master, "refactor/**"]
- paths:
- - "tools/rust-partition-poc/**"
- - ".github/workflows/rust-partition-poc.yml"
+ branches: [ master ]
jobs:
- verify:
+ contract-gates:
runs-on: ubuntu-latest
+ defaults:
+ run:
+ working-directory: tools/rust-partition-poc
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
- components: rustfmt, clippy
- - run: tools/rust-partition-poc/verify.sh
+ components: clippy, rustfmt
+ - run: cargo fmt -- --check
+ - run: cargo clippy --all-targets -- -D warnings
+ - run: cargo test --locked
+ - run: cargo mutants --version || cargo install cargo-mutants --locked
+ - run: cargo mutants --exclude src/main.rs --timeout 30 --jobs 2