mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 08:38:27 -05:00
febc3f63b2
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.
36 lines
925 B
Tcl
36 lines
925 B
Tcl
# Sentinel test suite. Copyright (C) 2014 Salvatore Sanfilippo antirez@gmail.com
|
|
# This software is released under the BSD License. See the COPYING file for
|
|
# more information.
|
|
|
|
cd tests/sentinel
|
|
source ../instances.tcl
|
|
|
|
set ::instances_count 5 ; # How many instances we use at max.
|
|
set ::tlsdir "../../tls"
|
|
|
|
proc main {} {
|
|
parse_options
|
|
if {$::leaked_fds_file != ""} {
|
|
set ::env(LEAKED_FDS_FILE) $::leaked_fds_file
|
|
}
|
|
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
|
|
}
|
|
|
|
if {[catch main e]} {
|
|
puts $::errorInfo
|
|
cleanup
|
|
exit 1
|
|
}
|