From: Patrick Steinhardt Date: Fri, 26 Jun 2026 10:50:17 GMT Subject: Re: [RFH] Why do osx CI jobs so unreliable? Message-ID: In-Reply-To: <20260626051657.GB3138423@coredump.intra.peff.net> On Fri, Jun 26, 2026 at 01:16:57AM -0400, Jeff King wrote: > On Thu, Jun 25, 2026 at 08:27:35PM -0700, Michael Montalbo wrote: > > > I think that is the trigger for issues we've been seeing. I spent > > some time investigating the Apache side over the last week and maybe > > found a mod_http2 bug, which I filed upstream with a potential fix: > > > > bug: https://bz.apache.org/bugzilla/show_bug.cgi?id=70131 > > fix: https://github.com/mmontalbo/httpd/pull/2 > > Thanks both of you for digging into this. I'm not familiar enough with > Apache's code to pass confident judgement, but your findings certainly > convinced me that this is just an apache bug. The bug manifests both with HTTP/1.1 and HTTP/2 though, so this wouldn't fully fix the flakes we see, right? > > Given there could be a potential reliability issue with an upstream > > dependency like Apache, I was considering what mitigation strategies > > might help: > > [...] > > Depending on how widespread the Apache bug is, another option might just > be: do nothing and wait for it to get fixed. > > Trying to make the wedged state fail fast and loudly is mostly just > punting on the problem. We'd still see spurious failures. We've so far > resisted the urge to do any automatic flaky-test retries, preferring > instead to just try to root out the flakes. I'm a little hesitant to > start now, because I think our strategy has mostly been good so far, and > I've seen some horrible counter-examples where flakes and retries become > a routine drag on development (and I'm afraid that accommodating flakes > might make them more common). I agree. I'm not a fan of retry logic, as every flaky test may mask an actual bug that we haven't fully investigated yet. > > - Make slow tests faster by optimizing the test itself and/or > > the test runner configuration (e.g., job number matching > > cores) so wedges become less likely. > > It sounds like the bad state is triggered when Apache hits a timeout, > and we hit that timeout because the system is slow or busy. We could try > to make things less slow, but would it work equally well to increase > that timeout? I was also wondering whether we can maybe work around the issue by increasing the Apache timeout value. That sounds like an easy potential solution to try, and from all we've discovered so far it doesn't feel like this is something we can address on the Git side. Patrick