Skip to content

Commit

Permalink
[fix] CI fix asan check
Browse files Browse the repository at this point in the history
  • Loading branch information
VCgege committed Oct 29, 2024
1 parent 1fbc9ba commit 6b4ea68
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ jobs:
run: |
sudo apt-get update
sudo apt-get -y install libsnappy-dev zlib1g-dev libstdc++6
make SANTIZER=address -j8
make SANITIZER=address -j8
- name: make test
run: make test-disk

Expand Down
5 changes: 4 additions & 1 deletion tests/swap/integration/persist.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ start_server {tags {persist} overrides {swap-persist-enabled yes swap-dirty-subk
assert_equal {1} [r bitcount mybitmap0]
r config set swap-evict-step-max-subkeys $bak_evict_step
}
r flushdb
}

start_server {tags {persist} overrides {swap-persist-enabled yes swap-dirty-subkeys-enabled yes}} {
Expand Down Expand Up @@ -406,7 +407,7 @@ start_server {tags {persist} overrides {swap-persist-enabled yes swap-dirty-subk

r config set swap-bitmap-subkey-size $bak_bitmap_subkey_size
}

r flushdb
}

start_server {tags {persist} overrides {swap-persist-enabled yes swap-dirty-subkeys-enabled yes}} {
Expand Down Expand Up @@ -434,6 +435,7 @@ start_server {tags {persist} overrides {swap-persist-enabled yes swap-dirty-subk
wait_key_cold r mybitmap0
r bitcount mybitmap0
}
r flushdb
}

start_server {tags {persist} overrides {swap-persist-enabled yes swap-dirty-subkeys-enabled yes}} {
Expand All @@ -452,5 +454,6 @@ start_server {tags {persist} overrides {swap-persist-enabled yes swap-dirty-subk
after 1500
assert_equal [llength [r swap rio-scan meta {}]] 0
}
r flushdb
}

2 changes: 2 additions & 0 deletions tests/swap/integration/rordb.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ start_server {tags {"rordb replication"} overrides {}} {
assert_equal [$slave bitcount mybitmap2] {5}

assert_equal [object_meta_pure_cold_subkeys_num $slave mybitmap3] 6
# $master flushdb

}

$master config set swap-evict-step-max-subkeys $old_swap_max_subkeys
Expand Down
1 change: 1 addition & 0 deletions tests/swap/unit/bitmap.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -2206,6 +2206,7 @@ start_server {tags {"bitmap chaos test"} overrides {save ""}} {
assert_equal $master_digest $slave_digest
}
}
# $master flushdb
}
}
}
6 changes: 6 additions & 0 deletions tests/swap/unit/ttl_compact.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ start_server {tags {"ttl compact 1"}
set compact_times [get_info_property r Swap swap_ttl_compact times]
assert_equal $compact_times 0
}
r flushdb
}

start_server {tags {"ttl compact 2"}
Expand Down Expand Up @@ -87,6 +88,7 @@ start_server {tags {"ttl compact 2"}
set sst_age_limit [get_info_property r Swap swap_ttl_compact sst_age_limit]
assert_range $sst_age_limit 900000 1000000
}
r flushdb
}

start_server {tags {"ttl compact 3"}
Expand Down Expand Up @@ -148,6 +150,7 @@ start_server {tags {"ttl compact 3"}
set compact_times [get_info_property r Swap swap_ttl_compact times]
assert_range $compact_times 0 3
}
r flushdb
}

start_server {tags {"ttl compact 4"}
Expand Down Expand Up @@ -182,6 +185,7 @@ start_server {tags {"ttl compact 4"}
set sst_age_limit [get_info_property r Swap swap_ttl_compact sst_age_limit]
assert_equal $sst_age_limit 0
}
r flushdb
}

start_server {tags {"ttl compact 5"}
Expand Down Expand Up @@ -224,6 +228,7 @@ start_server {tags {"ttl compact 5"}
set compact_times [get_info_property r Swap swap_ttl_compact times]
assert_equal $compact_times 0
}
r flushdb
}

start_server {tags {"master propagate expire test"} overrides {save ""}} {
Expand Down Expand Up @@ -256,4 +261,5 @@ start_server {tags {"master propagate expire test"} overrides {save ""}} {
assert_equal $sst_age_limit1 $sst_age_limit2
}
}
r flushdb
}

0 comments on commit 6b4ea68

Please sign in to comment.