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

Re: [PATCH] t5150: skip request-pull test if Perl is disabled

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Nov 28, 2019, 01:31 UTC
Message-ID
<20191128013111.GA76989@google.com>
In-Reply-To
<20191127112150.GA22221@sigill.intra.peff.net>
Jeff King wrote:
Show 7 quoted lines
> Hmm. I don't think that technique gives complete coverage. There are
> other scripts (e.g., filter-branch) that call a bare "perl" (not
> PERL_PATH), which presumably pass the tests even though they'd break in
> a real-world system without perl. In fact, many scripts used to do this
> before fcb06a8d54 (use @@PERL@@ in built scripts, 2013-10-28). I don't
> think the effects on NO_PERL were really considered there; it was more
> about finding the right perl.
Oh!  Thanks for looking deeper.
Show 5 quoted lines
> I think NO_PERL has historically mostly meant "do not build or install
> perl scripts", and not "everything ought to run fine without perl".
> We've generally assumed you can run vanilla perl snippets from the
> command line the same way you'd run awk or sed (and the tests use this
> extensively, which is why you have to set PERL_PATH again to run them).

Right. PERL_PATH and NO_PERL are more orthogonal than I had thought. So this is

  Not-Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
--- the patch shouldn't be applied as is.
Show 8 quoted lines
> That said, most of those casual uses of perl in actual built scripts
> have gone away because the shell scripts have gone away. It looks like
> filter-branch, request-pull, and instaweb are the last holdouts. So
> maybe we should be treating NO_PERL as disabling those scripts, too.
>
> But then, should we be doing more to make it clear that those scripts
> are broken in a NO_PERL build? Who knows what happens if you run
> filter-branch without any perl available?
Agreed: if we want to follow this approach, we should install stubs in
place of those scripts when NO_PERL=YesPlease.  Will say more about
this in a separate reply.

Thanks for catching it, Jonathan

Previous: Jonathan NiederNext: Junio C Hamano
Message 8 of 11 in “t5150: skip request-pull test if Perl is disabled”
  1. t5150: skip request-pull test if Perl is disabledRuud van Asseldonk, Nov 26, 2019
  2. Jonathan NiederNov 26, 2019
  3. Jonathan NiederNov 26, 2019
  4. Ruud van AsseldonkNov 27, 2019
  5. Jeff KingNov 27, 2019
  6. Ruud van AsseldonkNov 27, 2019
  7. Jonathan NiederNov 28, 2019
  8. Jonathan NiederNov 28, 2019
  9. Junio C HamanoDec 2, 2019
  10. Jeff KingDec 13, 2019
  11. Junio C HamanoDec 16, 2019

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.