Re: [PATCH 1/2] t: add tests for ref tombstone scenarios
- From
Patrick Steinhardt <ps@pks.im>
- Date
- Jul 8, 2026, 05:59 UTC
- Message-ID
- <ak3nWvyX4E9qB4T1@pks.im>
- In-Reply-To
- <CAL71e4ORdJXsz58SH71VjDNAWZ39T3+TrWN+gScAFx=Gt0CTkQ@mail.gmail.com>
On Tue, Jul 07, 2026 at 06:12:31PM +0200, Kristofer Karlsson wrote:
Show 13 quoted lines
> On Tue, 7 Jul 2026 at 17:24, Patrick Steinhardt <ps@pks.im> wrote: > > On Mon, Jul 06, 2026 at 01:35:55PM +0000, Kristofer Karlsson via GitGitGadget wrote: > > > diff --git a/t/t0610-reftable-basics.sh b/t/t0610-reftable-basics.sh > > > +test_expect_success 'delete and re-create refs with tombstones' ' > > > > I wonder whether this test really adds any value. We probably have lots > > of tests already that test creation/deletion of references. > > I could not find an existing test that covers the delete-then-recreate > flow (where tombstones are present when the new refs are created). > The existing tests cover creation and deletion separately but not the > interaction with tombstones. > (But perhaps such a test exists and I just can't find it.)
In t1400 we definitely have some tests where we exercise this implicitly. In any case, if we want to retain this test I'd rather add it to t1400 itself, as the functionality that we're testing is itself not specific to the backend.
Patrick