From: Taylor Blau <me@ttaylorr.com>
To: Robert Coup via GitGitGadget <gitgitgadget@gmail.com>
Cc: git@vger.kernel.org, Robert Coup <robert@coup.net.nz>
Subject: Re: [PATCH] upload-pack: add tracing for fetches
Date: Wed, 11 Oct 2023 17:26:51 -0400 [thread overview]
Message-ID: <ZScTGyI/XVveu4M7@nand.local> (raw)
In-Reply-To: <pull.1598.git.1697040242703.gitgitgadget@gmail.com>
On Wed, Oct 11, 2023 at 04:04:02PM +0000, Robert Coup via GitGitGadget wrote:
> diff --git a/t/t5500-fetch-pack.sh b/t/t5500-fetch-pack.sh
> index d18f2823d86..bb15ac34f77 100755
> --- a/t/t5500-fetch-pack.sh
> +++ b/t/t5500-fetch-pack.sh
> @@ -132,13 +132,18 @@ test_expect_success 'single branch object count' '
> '
>
> test_expect_success 'single given branch clone' '
> - git clone --single-branch --branch A "file://$(pwd)/." branch-a &&
> - test_must_fail git --git-dir=branch-a/.git rev-parse origin/B
> + GIT_TRACE2_EVENT="$(pwd)/branch-a/trace2_event" \
> + git clone --single-branch --branch A "file://$(pwd)/." branch-a &&
> + test_must_fail git --git-dir=branch-a/.git rev-parse origin/B &&
> + grep \"fetch-info\".*\"haves\":0 branch-a/trace2_event &&
> + grep \"fetch-info\".*\"wants\":1 branch-a/trace2_event
Not at all related to your patch here, but I feel like we have a bunch
of these greps sprinkled throughout the test suite which serve to
inspect some key(s) of a JSON object printed to the trace2 event stream.
It might be nice to have a more robust test-tool that could do this
heavy lifting for us instead of having to write these grep expressions
ourselves.
But definitely outside the scope of this patch ;-).
Thanks,
Taylor
next prev parent reply other threads:[~2023-10-11 21:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-11 16:04 [PATCH] upload-pack: add tracing for fetches Robert Coup via GitGitGadget
2023-10-11 21:26 ` Taylor Blau [this message]
2023-10-11 21:32 ` Taylor Blau
2023-10-11 22:33 ` Robert Coup
2023-10-11 22:27 ` Jeff King
2023-10-11 22:36 ` Robert Coup
2023-10-17 21:12 ` [PATCH v2] " Robert Coup via GitGitGadget
2023-10-23 18:28 ` Robert Coup
2023-10-23 18:55 ` Jeff King
2023-10-30 20:25 ` Taylor Blau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZScTGyI/XVveu4M7@nand.local \
--to=me@ttaylorr.com \
--cc=git@vger.kernel.org \
--cc=gitgitgadget@gmail.com \
--cc=robert@coup.net.nz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).