git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: t5559 breaks with apache 2.4.55

From
Jeff King <peff@peff.net>
Date
Feb 11, 2023, 03:00 UTC
Message-ID
<Y+cEwLjdgThXdkrw@coredump.intra.peff.net>
In-Reply-To
<xmqqilg9exq4.fsf@gitster.g>
On Fri, Feb 10, 2023 at 06:34:43PM -0800, Junio C Hamano wrote:
Show 11 quoted lines
> Jeff King <peff@peff.net> writes:
> 
> > I'm not sure this is really sufficient. As I was running t5559 over and
> > over to test various versions, I noticed a few other cases that seemed
> > to fail, some of them racily. So I'm a bit worried that the problem may
> > be more extensive, and it is only that this particular test happened to
> > trigger it reliably.
> 
> Yeah, I've seen not just t5559.30 (which is what the patch was
> about) reliably fail, but t5559.25 fail only from time to time.
> There may be others.
Ah, then if it's not just me, maybe it is time to take action. :)

I'm not sure if we have a complete list of good/bad versions, though. I know 2.0.10 was bad, and 2.0.9 seemed to be OK for me. 2.0.12 passes for me in regular use, but --stress seems to quickly barf. But it does for v2.0.9, too.

Show 5 quoted lines
> > In which case the right solution may be ditching t5559, or at the very
> > least adding a knob or version check to disable it.
> 
> Yup.  Do we have an example of checking versions of mod_frob being
> used from within our test suite?  I didn't locate one.

No, I don't think we do. The answers on stack overflow suggest using "strings" on the .so file. Not only is that gross, it doesn't seem to work in this case (I find "mod_http2 (v%s)", which is useless).

We could check the outer apache version with "apachectl -v", which is enough for Debian, but I think Todd had cases where the system was using a separate version of the mod, not the one that ships with apache itself.

I didn't see anything with IfVersion or IfModule that would let us depend on the module version. It does look like we can probably crank the LogLevel up and then grep for "mod_http2 (v[0-9.]+" in the log after starting the server. That would let us bail before actually running any tests.

We can be a bit cavalier here with technique, I think, because the worst case is that we say "this is not a known-good version" and just skip the http/2 tests.

Show 5 quoted lines
> > So I'm tempted to just punt for now and see how often this bites people
> > in the real world. And if it does become a problem, we'll have more data
> > on what exactly should be changed.
> 
> OK, works for me.

Well, I was all set to try a version check, but after seeing the race problems above, it doesn't seem like a good direction, at least not yet. So I'm content to sit on my hands for a while longer.

-Peff
Previous: Junio C Hamano
Message 8 of 8 in “t5559 breaks with apache 2.4.55”
  1. Jeff KingJan 22, 2023
  2. Todd ZullingerJan 22, 2023
  3. Jeff KingJan 26, 2023
  4. Jeff KingJan 29, 2023
  5. Junio C HamanoFeb 9, 2023
  6. Jeff KingFeb 11, 2023
  7. Junio C HamanoFeb 11, 2023
  8. Jeff KingFeb 11, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.