Skip to content

Commit

Permalink
test: add fuzz test for metric region migration (#4862)
Browse files Browse the repository at this point in the history
* test: add fuzz tests for migrate metric regions

* test: insert values before migrating metric region

* feat: correct table num

* chore: apply suggestions from CR
  • Loading branch information
WenyXu authored Oct 29, 2024
1 parent 8ed5bc5 commit 83eb777
Show file tree
Hide file tree
Showing 3 changed files with 489 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ jobs:
timeout-minutes: 60
strategy:
matrix:
target: ["fuzz_migrate_mito_regions", "fuzz_failover_mito_regions", "fuzz_failover_metric_regions"]
target: ["fuzz_migrate_mito_regions", "fuzz_migrate_metric_regions", "fuzz_failover_mito_regions", "fuzz_failover_metric_regions"]
mode:
- name: "Remote WAL"
minio: true
Expand All @@ -449,6 +449,12 @@ jobs:
minio: true
kafka: false
values: "with-minio.yaml"
- target: "fuzz_migrate_metric_regions"
mode:
name: "Local WAL"
minio: true
kafka: false
values: "with-minio.yaml"
steps:
- name: Remove unused software
run: |
Expand Down
7 changes: 7 additions & 0 deletions tests-fuzz/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,10 @@ path = "targets/migration/fuzz_migrate_mito_regions.rs"
test = false
bench = false
doc = false

[[bin]]
name = "fuzz_migrate_metric_regions"
path = "targets/migration/fuzz_migrate_metric_regions.rs"
test = false
bench = false
doc = false
Loading

0 comments on commit 83eb777

Please sign in to comment.