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

Re: [PATCH] blame: use different author name for fake commit generated by --contents

From
Glen Choo <chooglen@google.com>
Date
Apr 24, 2023, 17:59 UTC
Message-ID
<kl6l354p9n52.fsf@chooglen-macbookpro.roam.corp.google.com>
In-Reply-To
<019057ab-c917-80cd-063b-4871e47dc382@intel.com>
Jacob Keller <jacob.e.keller@intel.com> writes:
Show 16 quoted lines
>> diff --git c/t/annotate-tests.sh w/t/annotate-tests.sh
>> index 859693949b..4238ce45f8 100644
>> --- c/t/annotate-tests.sh
>> +++ w/t/annotate-tests.sh
>> @@ -74,8 +74,8 @@ test_expect_success 'blame 1 author' '
>>  
>>  test_expect_success 'blame working copy' '
>>  	test_when_finished "git restore file" &&
>> -	echo "1A quick brown fox jumps over" >file &&
>> -	echo "another lazy dog" >> file &&
>> +	echo "11A quick brown fox jumps over the" >file &&
>> +	echo "lazy dog" >>file &&
>
> I think the right fix for this test is to keep the first line (1A) the
> same, and include the missing "the" I had removed before, and keep the
> 2nd line as the changed line with "another lazy dog".

This sounds right to me; it's easier to read when the working copy test and the --contents test use the same data

Show 17 quoted lines
>
>> not ok 46 - passing hostname resolution information works
>> #
>> #               BOGUS_HOST=gitbogusexamplehost.invalid &&
>> #               BOGUS_HTTPD_URL=$HTTPD_PROTO://$BOGUS_HOST:$LIB_HTTPD_PORT &&
>> #               test_must_fail git ls-remote "$BOGUS_HTTPD_URL/smart/repo.git" >/dev/null &&
>> #               git -c "http.curloptResolve=$BOGUS_HOST:$LIB_HTTPD_PORT:127.0.0.1" ls-remote "$BOGUS_HTTPD_URL/smart/repo.git" >/dev/null
>> #
>
> I had thought this was the only failure, and that it has something to do
> with my system configuration (possibly proxy settings) which affect
> this.. I checked the firewall configuration and it doesn't appear to be
> that...
>
> It would be nice to figure out what makes it so the tests fail so that I
> can make sure tests properly pass on my submissions before sending them
> in the future.

I remember seeing a similar, flaky failure on an older version of master (~2-3 months ago). But if you based this on a recent version, I'm afraid I haven't seen this :/

Previous: Junio C HamanoNext: Jacob Keller
Message 5 of 6 in “blame: use different author name for fake commit generated by --contents”
  1. blame: use different author name for fake commit generated by --contentsJacob Keller, Apr 21, 2023
  2. Junio C HamanoApr 21, 2023
  3. Jacob KellerApr 22, 2023
  4. Junio C HamanoApr 24, 2023
  5. Glen ChooApr 24, 2023
  6. Jacob KellerApr 24, 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.