-
-
Notifications
You must be signed in to change notification settings - Fork 35.7k
test_runner: add flaky option to retry on failure #63661
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
base: main
Are you sure you want to change the base?
Changes from all commits
f4d1b07
dbd049a
1c5288b
2ca9dfe
442ac3c
f96a879
bf996a8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -122,7 +122,17 @@ const kFilterArgValues = [ | |
| '--test-random-seed', | ||
| '--experimental-config-file', | ||
| ]; | ||
| const kDiagnosticsFilterArgs = ['tests', 'suites', 'pass', 'fail', 'cancelled', 'skipped', 'todo', 'duration_ms']; | ||
| const kDiagnosticsFilterArgs = [ | ||
| 'cancelled', | ||
| 'duration_ms', | ||
| 'fail', | ||
| 'flaky', | ||
| 'pass', | ||
| 'skipped', | ||
| 'suites', | ||
| 'tests', | ||
| 'todo', | ||
| ]; | ||
|
|
||
| const kCanceledTests = new SafeSet() | ||
| .add(kCancelledByParent).add(kAborted).add(kTestTimeoutFailure); | ||
|
|
@@ -316,7 +326,17 @@ class FileTest extends Test { | |
| skipped: item.data.skip !== undefined, | ||
| isTodo: item.data.todo !== undefined, | ||
| passed: item.type === 'test:pass', | ||
| cancelled: kCanceledTests.has(item.data.details?.error?.failureType), | ||
| // Only an exhausted flaky timeout is upgraded to a failure, mirroring | ||
| // the child-side rule; other cancellations stay cancelled. | ||
| cancelled: kCanceledTests.has(item.data.details?.error?.failureType) && | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| !( | ||
| item.data.retryCount > 0 && | ||
| item.data.details?.error?.failureType === kTestTimeoutFailure | ||
| ), | ||
| // retryCount is present (even when 0) only for flaky-tagged tests, so its | ||
| // presence is what marks this reconstructed test as flaky for the parent | ||
| // counter across the process-isolation IPC boundary. | ||
| isFlaky: item.data.retryCount !== undefined, | ||
| nesting: item.data.nesting, | ||
| reportedType: item.data.details?.type, | ||
| }, this.root.harness); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.