Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: change the network time out in github action's pika.conf to avoid fake failure #2863

Merged
merged 1 commit into from
Aug 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions tests/integration/start_master_and_slave.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ mkdir slave_data
# Example Change the location for storing data on primary and secondary nodes in the configuration file
sed -i.bak \
-e 's|databases : 1|databases : 2|' \
-e 's|#daemonize : yes|daemonize : yes|' ./pika_single.conf
-e 's|#daemonize : yes|daemonize : yes|' \
-e 's|timeout : 60|timeout : 500|' ./pika_single.conf

sed -i.bak \
-e 's|databases : 1|databases : 2|' \
Expand All @@ -26,7 +27,8 @@ sed -i.bak \
-e 's|dump-path : ./dump/|dump-path : ./master_data/dump/|' \
-e 's|pidfile : ./pika.pid|pidfile : ./master_data/pika.pid|' \
-e 's|db-sync-path : ./dbsync/|db-sync-path : ./master_data/dbsync/|' \
-e 's|#daemonize : yes|daemonize : yes|' ./pika_master.conf
-e 's|#daemonize : yes|daemonize : yes|' \
-e 's|timeout : 60|timeout : 500|' ./pika_master.conf

sed -i.bak \
-e 's|databases : 1|databases : 2|' \
Expand All @@ -36,7 +38,8 @@ sed -i.bak \
-e 's|dump-path : ./dump/|dump-path : ./slave_data/dump/|' \
-e 's|pidfile : ./pika.pid|pidfile : ./slave_data/pika.pid|' \
-e 's|db-sync-path : ./dbsync/|db-sync-path : ./slave_data/dbsync/|' \
-e 's|#daemonize : yes|daemonize : yes|' ./pika_slave.conf
-e 's|#daemonize : yes|daemonize : yes|' \
-e 's|timeout : 60|timeout : 500|' ./pika_slave.conf

sed -i.bak \
-e 's|# rename-command : FLUSHALL 360flushall|rename-command : FLUSHALL 360flushall|' \
Expand All @@ -48,7 +51,8 @@ sed -i.bak \
-e 's|dump-path : ./dump/|dump-path : ./rename_data/dump/|' \
-e 's|pidfile : ./pika.pid|pidfile : ./rename_data/pika.pid|' \
-e 's|db-sync-path : ./dbsync/|db-sync-path : ./rename_data/dbsync/|' \
-e 's|#daemonize : yes|daemonize : yes|' ./pika_rename.conf
-e 's|#daemonize : yes|daemonize : yes|' \
-e 's|timeout : 60|timeout : 500|' ./pika_rename.conf

sed -i.bak \
-e 's|requirepass :|requirepass : requirepass|' \
Expand All @@ -61,7 +65,8 @@ sed -i.bak \
-e 's|dump-path : ./dump/|dump-path : ./acl1_data/dump/|' \
-e 's|pidfile : ./pika.pid|pidfile : ./acl1_data/pika.pid|' \
-e 's|db-sync-path : ./dbsync/|db-sync-path : ./acl1_data/dbsync/|' \
-e 's|#daemonize : yes|daemonize : yes|' ./pika_acl_both_password.conf
-e 's|#daemonize : yes|daemonize : yes|' \
-e 's|timeout : 60|timeout : 500|' ./pika_acl_both_password.conf

sed -i.bak \
-e 's|requirepass :|requirepass : requirepass|' \
Expand All @@ -73,7 +78,8 @@ sed -i.bak \
-e 's|dump-path : ./dump/|dump-path : ./acl2_data/dump/|' \
-e 's|pidfile : ./pika.pid|pidfile : ./acl2_data/pika.pid|' \
-e 's|db-sync-path : ./dbsync/|db-sync-path : ./acl2_data/dbsync/|' \
-e 's|#daemonize : yes|daemonize : yes|' ./pika_acl_only_admin_password.conf
-e 's|#daemonize : yes|daemonize : yes|' \
-e 's|timeout : 60|timeout : 500|' ./pika_acl_only_admin_password.conf

sed -i.bak \
-e 's|requirepass :|requirepass : requirepass|' \
Expand All @@ -86,7 +92,8 @@ sed -i.bak \
-e 's|dump-path : ./dump/|dump-path : ./acl3_data/dump/|' \
-e 's|pidfile : ./pika.pid|pidfile : ./acl3_data/pika.pid|' \
-e 's|db-sync-path : ./dbsync/|db-sync-path : ./acl3_data/dbsync/|' \
-e 's|#daemonize : yes|daemonize : yes|' ./pika_has_other_acl_user.conf
-e 's|#daemonize : yes|daemonize : yes|' \
-e 's|timeout : 60|timeout : 500|' ./pika_has_other_acl_user.conf
echo -e '\nuser : limit on >limitpass ~* +@all &*' >> ./pika_has_other_acl_user.conf

sed -i '' \
Expand Down
Loading