[wp-trac] [WordPress Trac] #62830: Add a retry mechanism for tests that perform external HTTP requests
WordPress Trac
noreply at wordpress.org
Wed Jan 29 18:17:51 UTC 2025
#62830: Add a retry mechanism for tests that perform external HTTP requests
--------------------------------------+--------------------------
Reporter: johnbillion | Owner: johnbillion
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.8
Component: Build/Test Tools | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+--------------------------
Changes (by johnbillion):
* owner: (none) => johnbillion
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"59729" 59729]:
{{{
#!CommitTicketReference repository="" revision="59729"
Build/Test Tools: Add a retry mechanism for tests that perform external
HTTP requests.
While the `skipTestOnTimeout()` method will catch a timeout and prevent it
from causing a test to fail, other errors such as a failed DNS lookup or
HTTPS handshake can still cause a test to unnecessarily fail. This
introduces a simple retry mechanism that will hopefully further reduce the
flakiness of tests that perform HTTP API requests.
Fixes #62830
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62830#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list