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

Feature Request: Step Retry Mechanism with Conditional Logic #2548

Open
jonathangiber opened this issue May 28, 2024 · 0 comments
Open

Feature Request: Step Retry Mechanism with Conditional Logic #2548

jonathangiber opened this issue May 28, 2024 · 0 comments

Comments

@jonathangiber
Copy link

Background

It's common to encounter transient errors such as network issues or temporary server unavailability. Currently, there is no built-in mechanism in Gauge to retry a step based on specific conditions like network errors.

Request

I would like to request a new feature in Gauge that allows steps to be retried automatically based on user-defined conditions. This feature would enhance the robustness of tests by handling intermittent issues more gracefully.

Proposed Solution

Introduce a mechanism to define retry logic within steps or at the suite level with the following capabilities:

Retry Conditions: Allow users to specify conditions for retrying a step, such as:

  • HTTP status codes (e.g., 429 Too Many Requests, 500 Internal Server Error)
  • Specific exceptions (e.g., IOException, TimeoutException)
  • Custom logic (e.g., retry based on the response body or headers)

Making the retry --max-retries-count configurable would solve the problem as well, that way I wouldn't retry all the failed tests that I would like them to fail to avoid possible bugs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant