Repository navigation
feat(test): add deferred retry strategy - #44235
Conversation
| if (result.isolatedRetriesJob) { | ||
| this._queue.push(result.isolatedRetriesJob); | ||
| this._updateCounterForWorkerHash(result.isolatedRetriesJob.workerHash, +1); | ||
| if (result.deferredRetriesJob) { | ||
| this._queue.push(result.deferredRetriesJob); | ||
| this._updateCounterForWorkerHash(result.deferredRetriesJob.workerHash, +1); |
There was a problem hiding this comment.
please explain the changes in this file
There was a problem hiding this comment.
isolatedRetriesJob was renamed to deferredRetriesJob because both strategies now share the same path: unrun tests return to the front of the queue, retries go to the back, and the worker-count bookkeeping is unchanged. The only scheduling change is that exclusiveLock is added only for isolated; deferred preserves the job's original locks but can run alongside other tests and retries within worker limits, while immediate keeps its existing path.
This comment has been minimized.
This comment has been minimized.
Test results for "tests 1"3 flaky23659 passed, 716 skipped Merge workflow run. |
Test results for "MCP"3 failed 5243 passed, 641 skipped Merge workflow run. |
🟢 All three failures also occur on mainHi, I'm the Playwright bot. These failures predate this PR. Evidence for all three failuresChecked MCP run 44578505620 at Pre-existing flake / infra All three Chrome crash-recovery tests failed with the same errors in the earlier main job, at
This confirms pre-existing failures, not whether they are intermittent. None is caused by the new retry strategy. The separate Checked the failures on Linux by the Playwright bot - agent run |
Add
retryStrategy: 'deferred'to queue retries after unrun tests and allow them to run on available workers. Keep exclusive retry execution forisolatedand preserve existing test locks.Update the configuration docs and generated types. Extend ordering coverage and add a synchronized check for retries overlapping with first attempts and other retries.
Fixes #44226
Triaged on Linux by the Playwright bot - agent run