Re: [PATCH v2 5/8] repack: add `--filter=<filter-spec>` option
- From
Christian Couder <christian.couder@gmail.com>
- Date
- Aug 8, 2023, 08:45 UTC
- Message-ID
- <CAP8UFD1eX8JMd91Say_sC7h_V08oRq32Wu9RM+SFtAQnhRPO2w@mail.gmail.com>
- In-Reply-To
- <xmqqo7jzh9mh.fsf@gitster.g>
On Wed, Jul 26, 2023 at 1:09 AM Junio C Hamano <gitster@pobox.com> wrote:
Show 13 quoted lines
> > Junio C Hamano <gitster@pobox.com> writes: > > > Thanks for walking through the codepaths involved. We are good > > then. > > Sorry, but not so fast. > > https://github.com/git/git/actions/runs/5661445152 (seen with this topic) > https://github.com/git/git/actions/runs/5662517690 (seen w/o this topic) > > The former fails t7700 in the linux-TEST-vars job, while the latter > passes the same job.
I think this was because I added the following test:
+test_expect_success '--filter fails with --write-bitmap-index' ' + test_must_fail git -C bare.git repack -a -d --write-bitmap-index \ + --filter=blob:none && + + git -C bare.git repack -a -d --no-write-bitmap-index \ + --filter=blob:none +'
which fails because in the linux-TEST-vars job the GIT_TEST_MULTI_PACK_INDEX_WRITE_BITMAP env variable is set to 1 and this counteracts the `--write-bitmap-index` option.
I have tried to fix it like this:
+test_expect_success '--filter fails with --write-bitmap-index' ' + GIT_TEST_MULTI_PACK_INDEX_WRITE_BITMAP=0 test_must_fail git -C bare.git repack \ + -a -d --write-bitmap-index --filter=blob:none +'
but I haven't been able to check that this works on CI as all the job seems to fail these days before they even start:
https://github.com/chriscool/git/actions/runs/5791544404/job/15696524676
Thanks!