git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] p5326: create tag needed for shared tests
@ 2021-10-02 17:22 René Scharfe
  2021-10-03  4:58 ` Taylor Blau
  0 siblings, 1 reply; 2+ messages in thread
From: René Scharfe @ 2021-10-02 17:22 UTC (permalink / raw)
  To: Git List; +Cc: Junio C Hamano, Taylor Blau

p5326 fails with the following error:

   perf 8 - rev-list with tag negated via --not --all (objects):
   running:
   		git rev-list perf-tag --not --all --use-bitmap-index --objects >/dev/null

   fatal: ambiguous argument 'perf-tag': unknown revision or path not in the working tree.
   Use '--' to separate paths from revisions, like this:
   'git <command> [<revision>...] -- [<file>...]'

Reason: 540cdc11ad (pack-bitmap: avoid traversal of objects referenced
by uninteresting tag, 2021-03-22) added two tests and created a tag as a
prerequisite for them.  9387fbd646 (p5310: extract full and partial
bitmap tests, 2021-08-31) moved the two tests (and others) to
t/perf/lib-bitmap.sh, but not the code for creating the tag.  2d59597333
(p5326: perf tests for MIDX bitmaps, 2021-08-31) used this library, but
didn't create the tag.

Create the neccesary tag in p5326 using the code from p5310.

Signed-off-by: René Scharfe <l.s.r@web.de>
---
 t/perf/p5326-multi-pack-bitmaps.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/t/perf/p5326-multi-pack-bitmaps.sh b/t/perf/p5326-multi-pack-bitmaps.sh
index 5845109ac7..51b5636259 100755
--- a/t/perf/p5326-multi-pack-bitmaps.sh
+++ b/t/perf/p5326-multi-pack-bitmaps.sh
@@ -10,6 +10,12 @@ test_expect_success 'enable multi-pack index' '
 	git config core.multiPackIndex true
 '

+# we need to create the tag up front such that it is covered by the repack and
+# thus by generated bitmaps.
+test_expect_success 'create tags' '
+	git tag --message="tag pointing to HEAD" perf-tag HEAD
+'
+
 test_perf 'setup multi-pack index' '
 	git repack -ad &&
 	git multi-pack-index write --bitmap
--
2.33.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] p5326: create tag needed for shared tests
  2021-10-02 17:22 [PATCH] p5326: create tag needed for shared tests René Scharfe
@ 2021-10-03  4:58 ` Taylor Blau
  0 siblings, 0 replies; 2+ messages in thread
From: Taylor Blau @ 2021-10-03  4:58 UTC (permalink / raw)
  To: René Scharfe; +Cc: Git List, Junio C Hamano, Taylor Blau

Hi René,

On Sat, Oct 02, 2021 at 07:22:35PM +0200, René Scharfe wrote:
> p5326 fails with the following error:

Thanks for noticing; this is indeed my error, and your reasoning is
accurate.

This came up during my series to propagate namehash values into MIDX
bitmaps here:

    https://lore.kernel.org/git/a8c6e845adf559a96e37c973fea16da8a42e7cba.1631913631.git.me@ttaylorr.com/

and is in next as 2082224f17 (p5326: create missing 'perf-tag' tag,
2021-09-14).

Thanks,
Taylor

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-03  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-02 17:22 [PATCH] p5326: create tag needed for shared tests René Scharfe
2021-10-03  4:58 ` Taylor Blau

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).