Skip to content

Commit 3125db0

Browse files
authored
Merge pull request #1765 from amanchopra1905/stage
retryOnFailiure updated
2 parents 9d56840 + 8cc6624 commit 3125db0

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

docs/deep-dive-into-hyperexecute-yaml.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -457,15 +457,29 @@ runtime:
457457

458458
***
459459

460-
### `retryOnFailure`
460+
<!-- ### `retryOnFailure`
461461
This allows you to configure automatic retries for failed test scenarios. When set to true (`retryOnFailure: true`), tests will be retried based on the [`maxRetries`](/support/docs/deep-dive-into-hyperexecute-yaml/#maxretries) value specified. The default setting is **false**.
462462

463463
This feature eliminates the need to rerun the entire job to verify if a test scenario is genuinely failing or encountering an intermittent issue. By enabling `retryOnFailure`, you can promptly retry tests upon failure, helping determine if the test consistently fails or passes in subsequent attempts."
464464

465+
```yaml
466+
retryOnFailure: true
467+
``` -->
468+
469+
### `retryOnFailure`
470+
The `retryOnFailure` enables automatic retries for failed test scenarios only when the [testRunnerCommand](/support/docs/deep-dive-into-hyperexecute-yaml/#testrunnercommand) itself fails. When set to `true`, the system will retry failed commands based on the [`maxRetries`](/support/docs/deep-dive-into-hyperexecute-yaml/#maxretries) value defined. The default setting is `false`.
471+
465472
```yaml
466473
retryOnFailure: true
467474
```
468475

476+
#### 🔍 Important Behavior Notes:
477+
- Retries are triggered only if the test command fails.
478+
- Retries are not triggered if the command exits successfully but the test results are marked as failed by the user.
479+
480+
#### ✅ Use Case:
481+
This feature helps avoid re-running the entire job to determine if a test failure is due to a genuine issue or a transient problem (e.g., flaky tests, network hiccups). By enabling `retryOnFailure`, only the failing command is retried, allowing for quicker feedback and more efficient test execution.
482+
469483
***
470484

471485
### `maxRetries`

0 commit comments

Comments
 (0)