From: Taylor Blau <me@ttaylorr.com>
To: Derrick Stolee <derrickstolee@github.com>
Cc: "Git Mailing List" <git@vger.kernel.org>,
"Ævar Arnfjörð Bjarmason" <avarab@gmail.com>,
"Taylor Blau" <me@ttaylorr.com>,
"Christian Couder" <christian.couder@gmail.com>,
"Jeff Hostetler" <git@jeffhostetler.com>,
"Neeraj Singh" <nksingh85@gmail.com>
Subject: Re: Git Test Coverage Report for v2.37.0-rc0
Date: Tue, 14 Jun 2022 19:46:44 -0400 [thread overview]
Message-ID: <Yqkd5GNYAKBnPQxz@nand.local> (raw)
In-Reply-To: <3d1c6dfd-1df6-3393-df5e-692719375772@github.com>
On Tue, Jun 14, 2022 at 04:20:05PM -0400, Derrick Stolee wrote:
> > Taylor Blau f9825d1c builtin/repack.c: support generating a cruft pack
> > builtin/repack.c
> > f9825d1c 680) strvec_pushf(&cmd.args, "--cruft-expiration=%s",
>
> The --cruft-expiration option is not tested.
Note that only the `--cruft-expiration` option of `git repack` is
untested. This code is just passing down the expiration from `repack`'s
perspective down to pack-objects, which has extensive coverage of the
`--cruft-expiration` option in t5329.
It does feel a little weird to leave this uncovered, but I don't think
it's substantially different from the uncovered lines in setting up
`cruft_po_args` on lines 86-90 of the repack code.
> > f9825d1c 708) fprintf(in, "%s.pack\n", item->string);
>
> This is related to the existence of .keep packs. A corner case, but maybe
> worth exploring.
Probably worth testing. We're ensuring that `.keep` packs in addition to
`--keep-pack`s are excluded from the cruft pack. That isn't tested and
probably should be.
>
> > pack-write.c
> > 5dfaf49a 330) unlink(mtimes_name);
> > 5dfaf49a 331) fd = xopen(mtimes_name, O_CREAT|O_EXCL|O_WRONLY, 0600);
>
> This appears to be an interesting case for the write_mtimes_file() method,
> since its first parameter is 'mtimes_name' and all tested cases are
> passing NULL, it seems.
Ugh, yes :-). That's imitating a common pattern in the write_xyz_file()
for xyz referring to auxiliary pack data. The cleanup should be pretty
straightforward, I'll send a patch or two shortly...
Thanks,
Taylor
next prev parent reply other threads:[~2022-06-14 23:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-14 20:18 Git Test Coverage Report for v2.37.0-rc0 Derrick Stolee
2022-06-14 20:20 ` Derrick Stolee
2022-06-14 20:34 ` Derrick Stolee
2022-06-14 23:46 ` Taylor Blau [this message]
2022-06-15 10:16 ` Ævar Arnfjörð Bjarmason
2022-06-15 13:21 ` Derrick Stolee
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=Yqkd5GNYAKBnPQxz@nand.local \
--to=me@ttaylorr.com \
--cc=avarab@gmail.com \
--cc=christian.couder@gmail.com \
--cc=derrickstolee@github.com \
--cc=git@jeffhostetler.com \
--cc=git@vger.kernel.org \
--cc=nksingh85@gmail.com \
/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).