Skip to content

Miscellaneous improvements to script test retrying commands - #82

Merged
joamaki merged 2 commits into
mainfrom
pr/giorio94/main/script-test-retries-misc
Sep 22, 2026
Merged

joamaki merged 2 commits into
mainfrom
pr/giorio94/main/script-test-retries-misc

Conversation

@giorio94

Copy link
Copy Markdown
Member

TL;DR; add optional limit to retrying commands retries, and output last error upon retries failure. Please review commit by commit, and refer to the individual descriptions for additional details.

Commands that are retried may only eventually fail when the state context
is canceled. However, at that point, the error that gets output is not
informative, given that it references the context cancellation. Let's
instead output the last error that triggered a retry, so that the cause
of the failure is immediately visible.

Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
Currently, the number of retries of retrying commands is only limited
by the context; however, this can be limiting in certain circumstances,
where one may want a context with a relatively long lifetime, and
separately limit the number of retries. Hence, let's introduce the
possibility of configuring a maximum number of retries; by default,
no maximum is configured, and the previous behavior is preserved.

Signed-off-by: Marco Iorio <marco.iorio@isovalent.com>
@giorio94
giorio94 requested a review from joamaki September 21, 2026 16:12
@giorio94
giorio94 requested a review from a team as a code owner September 21, 2026 16:12
@joamaki
joamaki merged commit 7229e69 into main Sep 22, 2026
1 check passed
@joamaki
joamaki deleted the pr/giorio94/main/script-test-retries-misc branch September 22, 2026 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants