summaryrefslogtreecommitdiff
path: root/tests/sentinel
diff options
context:
space:
mode:
authorBinbin <binloveplay1314@qq.com>2021-12-20 18:31:13 +0800
committerGitHub <noreply@github.com>2021-12-20 12:31:13 +0200
commitfebc3f63b2b57afe3553b22c69c3ce27b5a3e842 (patch)
tree06365af3b89284d7e826a97ac13be85d45bc992c /tests/sentinel
parent0fb1aa0645fd1e31d12c8d57d4326ded0aa4d555 (diff)
downloadredis-febc3f63b2b57afe3553b22c69c3ce27b5a3e842.tar.gz
Fix recent daily CI test failures (#9966)
Recent PRs have introduced some failures, this commit try to fix these CI failures. Here are the changes: 1. Enable debug-command in sentinel test. ``` Master reboot in very short time: ERR DEBUG command not allowed. If the enable-debug-command option is set to "local", you can run it from a local connection, otherwise you need to set this option in the configuration file, and then restart the server. ``` 2. Enable protected-config in sentinel test. ``` SDOWN is triggered by misconfigured instance replying with errors: ERR CONFIG SET failed (possibly related to argument 'dir') - can't set protected config ``` 3. Enable debug-command in cluster test. ``` Verify slaves consistency: ERR DEBUG command not allowed. If the enable-debug-command option is set to "local", you can run it from a local connection, otherwise you need to set this option in the configuration file, and then restart the server. ``` 4. quicklist fill should be signed int. The reason for the modification is to eliminate the warning. Modify `int fill: QL_FILL_BITS` to `signed int fill: QL_FILL_BITS` The first three were introduced at #9920 (same issue). And the last one was introduced at #9962.
Diffstat (limited to 'tests/sentinel')
-rw-r--r--tests/sentinel/run.tcl12
1 files changed, 10 insertions, 2 deletions
diff --git a/tests/sentinel/run.tcl b/tests/sentinel/run.tcl
index 64c99c103..98c4c118b 100644
--- a/tests/sentinel/run.tcl
+++ b/tests/sentinel/run.tcl
@@ -13,8 +13,16 @@ proc main {} {
if {$::leaked_fds_file != ""} {
set ::env(LEAKED_FDS_FILE) $::leaked_fds_file
}
- spawn_instance sentinel $::sentinel_base_port $::instances_count [list "sentinel deny-scripts-reconfig no"] "../tests/includes/sentinel.conf"
- spawn_instance redis $::redis_base_port $::instances_count
+ spawn_instance sentinel $::sentinel_base_port $::instances_count {
+ "sentinel deny-scripts-reconfig no"
+ "enable-protected-configs yes"
+ "enable-debug-command yes"
+ } "../tests/includes/sentinel.conf"
+
+ spawn_instance redis $::redis_base_port $::instances_count {
+ "enable-protected-configs yes"
+ "enable-debug-command yes"
+ }
run_tests
cleanup
end_tests