Skip to content

Commit

Permalink
cartridge: increase bootstrap attempts
Browse files Browse the repository at this point in the history
We have flaky tests with Cartridge on MacOS. It looks like not enough
attempts are being made to bootstrap the vshard application.

This patch doubles the number of attempts.

Closes #728
  • Loading branch information
oleg-jukovec authored and psergee committed Dec 27, 2023
1 parent 9a1d317 commit 33d9233
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/cli/replicasets/setup.go b/cli/replicasets/setup.go
index 225dc36..b8c0a46 100644
--- a/cli/replicasets/setup.go
+++ b/cli/replicasets/setup.go
@@ -99,7 +99,7 @@ func Setup(ctx *context.Ctx, args []string) error {

retryOpts := []retry.Option{
retry.MaxDelay(1 * time.Second),
- retry.Attempts(5),
+ retry.Attempts(10),
retry.LastErrorOnly(true),
}

1 change: 1 addition & 0 deletions magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ func PatchCC() error {
"005_rename_tt_env.patch",
"006_consider_tt_run_dir.patch",
"007_update_project_files_search_logic.patch",
"008_increase_replicasets_bootstrap_attempts.patch",
}

for _, patch := range patches {
Expand Down

0 comments on commit 33d9233

Please sign in to comment.