Uh oh!
There was an error while loading. Please reload this page.
Caches failed service probes - #22944
Conversation
TimWolla
left a comment
There was a problem hiding this comment.
Without looking too deeply into it: There is already a SkipCache in the test runner, why doesn't it work?
NickSdot
commented
Jul 31, 2026
SkipCache is not actually related. This here actively caches expensive failures across parallel workers so that same following calls do not run into the same timeouts over and over again. |
arnaud-lb
commented
Jul 31, 2026
I believe it has the same purpose, but it's less efficient since it doesn't share its state between workers. However it's more general and avoids introducing complexity into individual tests, so if we could improve it, this would be better. We could update |
9f33b4c to
bea9ce3Compare2075f43 to
300a315CompareNickSdot
commented
Aug 3, 2026
Went back and forth on the comments... Maybe my brain is not braining, but I still don't see how
Agreed on the in-test complexity. But we will not fully get around having something that tells when different tests run the same probe? I pushed an update that makes this more general ( Asides:
|
300a315 to
2dd0865Compare
arnaud-lb
left a comment
There was a problem hiding this comment.
I agree, you are right!
I did a first review, will continue after your feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
ac2c348 to
03845a0Compare
arnaud-lb
left a comment
There was a problem hiding this comment.
Looks good to me. Only two suggestion comments: let me know if you want to apply them. Otherwise I will merge.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
@arnaud-lb I consider this done. Would appreciate if you would prioritise #22995 before any others to give me a faster CI feedback loop. |
Uh oh!
There was an error while loading. Please reload this page.
arnaud-lb
commented
Aug 6, 2026
Thank you! |
Extracted from #22917.
Prevents unavailable optional test services from slowing the suite through repeated connection timeouts. PDO and SNMP availability probes cache the first failure for the duration of one test run, so later SKIPIF checks return immediately.
Only failures are cached; successful probes and test connections are unchanged. PDOs one second timeout applies only to the default availability probe. The caches are private, run-scoped and removed afterwards. A service becoming available mid run is detected on the next test-suite run.
Result
Values in seconds; measured on macOS.
-j1-j10Reproduction:
Result (after #22944 (comment) )
Added caching for
ext/ldap,ext/pgsql,ext/mysqli,ext/pdo_mysql,ext/odbc.Reproduction: