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

Re: [PATCH] ci: make sure we build Git parallel

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 7, 2019, 19:04 UTC
Message-ID
<xmqq1s4jpgh6.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<xmqqbm3npgox.fsf@gitster-ct.c.googlers.com>
Junio C Hamano <gitster@pobox.com> writes:
Show 22 quoted lines
> SZEDER Gábor <szeder.dev@gmail.com> writes:
>
>> Append to MAKEFLAGS when setting the compiler to use, to ensure that
>> the number of parallel jobs to use is preserved.
>>
>> Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
>> ---
>>  ci/lib.sh | 2 +-
>>  1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/ci/lib.sh b/ci/lib.sh
>> index 16f4ecbc67..cee51a4cc4 100755
>> --- a/ci/lib.sh
>> +++ b/ci/lib.sh
>> @@ -185,4 +185,4 @@ GIT_TEST_GETTEXT_POISON)
>>  	;;
>>  esac
>>  
>> -export MAKEFLAGS="CC=${CC:-cc}"
>> +export MAKEFLAGS="$MAKEFLAGS CC=${CC:-cc}"
>
> Makes sense.  Thanks.

Wouldn't all other hits of "MAKEFLAGS=" in ci/lib.sh also want the same treatment, though? We know that "if travis to this, otherwise if Asure, do that" is the first block to muck with MAKEFLAGS in the script, but a new assignment before that block can be added in the future and cause a similar issue unless we do so.

Of course, at some point we do want to say "we do not want to inherit it from the outside environment", but then such an assignment of empty value should be done at the very beginning with a comment, not with "this happens to be the first one to set, so let's not append but assign to clear any previous value", I would think.

Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 11 in “ci: make sure we build Git parallel”
  1. ci: make sure we build Git parallelSZEDER Gábor, Feb 7, 2019
  2. Junio C HamanoFeb 7, 2019
  3. Junio C HamanoFeb 7, 2019
  4. Junio C HamanoFeb 7, 2019
  5. Johannes SchindelinFeb 7, 2019
  6. Junio C HamanoFeb 7, 2019
  7. ci: clear and mark MAKEFLAGS exported just onceJunio C Hamano, Feb 7, 2019
  8. SZEDER GáborFeb 8, 2019
  9. Johannes SchindelinFeb 8, 2019
  10. Johannes SchindelinFeb 8, 2019
  11. Junio C HamanoFeb 8, 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.