All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Martin Ågren" <martin.agren@gmail.com>
To: "brian m. carlson" <sandals@crustytoothpaste.net>
Cc: "Git Mailing List" <git@vger.kernel.org>,
	"Junio C Hamano" <gitster@pobox.com>,
	"Nguyễn Thái Ngọc Duy" <pclouds@gmail.com>,
	"Johannes Schindelin" <Johannes.Schindelin@gmx.de>,
	"Lars Schneider" <larsxschneider@gmail.com>
Subject: Re: [PATCH 10/28] t: skip pack tests if not using SHA-1
Date: Mon, 7 May 2018 12:30:47 +0200	[thread overview]
Message-ID: <CAN0heSrbG+Axs=xq=MdnA=m98Habi_uHS3hj6xweCHqufA7Vag@mail.gmail.com> (raw)
In-Reply-To: <20180506231752.975110-11-sandals@crustytoothpaste.net>

On 7 May 2018 at 01:17, brian m. carlson <sandals@crustytoothpaste.net> wrote:
> These tests rely on creating packs with specially named objects which
> are necessarily dependent on the hash used.  Skip these tests if we're
> not using SHA-1.
>
> Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
> ---
>  t/t5308-pack-detect-duplicates.sh | 6 ++++++
>  t/t5309-pack-delta-cycles.sh      | 6 ++++++
>  2 files changed, 12 insertions(+)
>
> diff --git a/t/t5308-pack-detect-duplicates.sh b/t/t5308-pack-detect-duplicates.sh
> index 156ae9e9d3..6845c1f3c3 100755
> --- a/t/t5308-pack-detect-duplicates.sh
> +++ b/t/t5308-pack-detect-duplicates.sh
> @@ -4,6 +4,12 @@ test_description='handling of duplicate objects in incoming packfiles'
>  . ./test-lib.sh
>  . "$TEST_DIRECTORY"/lib-pack.sh
>
> +if ! test_have_prereq SHA1
> +then
> +       skip_all='not using SHA-1 for objects'
> +       test_done
> +fi

Add something like "FIXME please expand this test", either as a comment
or inside the skip_all? That probably goes for all patches in this
series that skip tests.

As it is now, it feels to me like this is simply stuffing tests away
that are failing. When your primary focus is to run the test suite with
another hash function, I can see why you need to do this change. But if
the goal is to eventually have another hash function and test things at
least as well as before, I think leaving some sort of note here would
help someone who later wants to resurrect those tests that this series
suppressed.

I realize this is related to my comment on the previous series formally
changing the on-disk format [1] and that this comment is along the same
lines as my comment there.

[1] https://public-inbox.org/git/20180427210823.GB722934@genre.crustytoothpaste.net/

Martin

  reply	other threads:[~2018-05-07 10:30 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-05-06 23:17 [PATCH 00/28] Hash-independent tests (part 2) brian m. carlson
2018-05-06 23:17 ` [PATCH 01/28] t/test-lib: add an SHA1 prerequisite brian m. carlson
2018-05-07 10:10   ` Martin Ågren
2018-05-07 23:30     ` brian m. carlson
2018-05-08 18:26       ` Martin Ågren
2018-05-08 23:46         ` brian m. carlson
2018-05-06 23:17 ` [PATCH 02/28] t/test-lib: introduce ZERO_OID brian m. carlson
2018-05-06 23:17 ` [PATCH 03/28] t: switch $_z40 to $ZERO_OID brian m. carlson
2018-05-06 23:17 ` [PATCH 04/28] t/test-lib: introduce FULL_HEX brian m. carlson
2018-05-06 23:53   ` Eric Sunshine
2018-05-07  2:28     ` brian m. carlson
2018-05-06 23:17 ` [PATCH 05/28] t: switch $_x40 to $FULL_HEX brian m. carlson
2018-05-06 23:17 ` [PATCH 06/28] t0000: annotate with SHA1 prerequisite brian m. carlson
2018-05-07 10:24   ` Martin Ågren
2018-05-07 23:40     ` brian m. carlson
2018-05-08 18:28       ` Martin Ågren
2018-05-09  0:13         ` brian m. carlson
2018-05-06 23:17 ` [PATCH 07/28] t1007: " brian m. carlson
2018-05-06 23:17 ` [PATCH 08/28] t1512: skip test if not using SHA-1 brian m. carlson
2018-05-06 23:17 ` [PATCH 09/28] t4044: " brian m. carlson
2018-05-06 23:17 ` [PATCH 10/28] t: skip pack tests " brian m. carlson
2018-05-07 10:30   ` Martin Ågren [this message]
2018-05-06 23:17 ` [PATCH 11/28] t2203: abstract away SHA-1-specific constants brian m. carlson
2018-05-06 23:17 ` [PATCH 12/28] t3103: " brian m. carlson
2018-05-06 23:17 ` [PATCH 13/28] t3702: " brian m. carlson
2018-05-06 23:17 ` [PATCH 14/28] t3905: " brian m. carlson
2018-05-07  0:03   ` Eric Sunshine
2018-05-07  2:30     ` brian m. carlson
2018-05-06 23:17 ` [PATCH 15/28] t4007: " brian m. carlson
2018-05-06 23:17 ` [PATCH 16/28] t4008: " brian m. carlson
2018-05-07  0:07   ` Eric Sunshine
2018-05-07  2:32     ` brian m. carlson
2018-05-06 23:17 ` [PATCH 17/28] t4014: " brian m. carlson
2018-05-06 23:17 ` [PATCH 18/28] t4020: " brian m. carlson
2018-05-06 23:17 ` [PATCH 19/28] t4022: " brian m. carlson
2018-05-06 23:17 ` [PATCH 20/28] t4029: fix test indentation brian m. carlson
2018-05-06 23:17 ` [PATCH 21/28] t4029: abstract away SHA-1-specific constants brian m. carlson
2018-05-06 23:17 ` [PATCH 22/28] t4030: " brian m. carlson
2018-05-06 23:17 ` [PATCH 23/28] t/lib-diff-alternative: " brian m. carlson
2018-05-06 23:17 ` [PATCH 24/28] t4205: sort log output in a hash-independent way brian m. carlson
2018-05-06 23:17 ` [PATCH 25/28] t4042: abstract away SHA-1-specific constants brian m. carlson
2018-05-06 23:17 ` [PATCH 26/28] t4045: " brian m. carlson
2018-05-06 23:17 ` [PATCH 27/28] t4208: " brian m. carlson
2018-05-06 23:17 ` [PATCH 28/28] t5300: " brian m. carlson
2018-05-07  1:49 ` [PATCH 00/28] Hash-independent tests (part 2) Eric Sunshine
2018-05-07  2:40   ` brian m. carlson

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='CAN0heSrbG+Axs=xq=MdnA=m98Habi_uHS3hj6xweCHqufA7Vag@mail.gmail.com' \
    --to=martin.agren@gmail.com \
    --cc=Johannes.Schindelin@gmx.de \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=larsxschneider@gmail.com \
    --cc=pclouds@gmail.com \
    --cc=sandals@crustytoothpaste.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.