From: Elijah Newren <newren@gmail.com>
To: Andrei Rybak <rybak.a.v@gmail.com>
Cc: git@vger.kernel.org, Eric Sunshine <sunshine@sunshineco.com>,
Tim Schumacher <timschumi@gmx.de>,
Jeff Hostetler <jeffhost@microsoft.com>,
Robin Rosenberg <robin.rosenberg@dewire.com>
Subject: Re: [PATCH v1 0/3] fixes for commented out code in tests (was "Re: [PATCH] *: fix typos which duplicate a word")
Date: Wed, 11 Jan 2023 17:54:01 -0800 [thread overview]
Message-ID: <CABPp-BFxK7SGs3wsOfozSw_Uvr-ynr+x8ciPV2Rmfx6Nr4si6g@mail.gmail.com> (raw)
In-Reply-To: <20230111233242.16870-1-rybak.a.v@gmail.com>
On Wed, Jan 11, 2023 at 4:05 PM Andrei Rybak <rybak.a.v@gmail.com> wrote:
>
> [ I apologize for some people getting this twice -- I messed up when
> invoking `git send-email` ]
>
> On 2023-01-06T19:25, Eric Sunshine wrote:
> > Not related to your patch at all, but I notice in this test that the
> > call to test_when_finished() is commented out:
> >
> > # test_when_finished "stop_daemon_delete_repo test_insensitive" &&
> >
> > which makes me wonder if it was commented out while the test was being
> > debugged but then forgotten, and that the script is now potentially
> > leaking a running daemon if something in the test fails after the
> > daemon was started, or if the daemon does not shut down on its own as
> > it's supposed to do. [cc:+Jeff Hostetler]
>
> Here's a patch series that fixes some of the commented out test code.
Patch 2 is obviously correct. Patches 1 & 3 make sense to me, but it
would be nice to have someone familiar with fsmonitor look at #3.
As to your notes about other related testcases...
> I skipped changing the following:
[...]
> 2. In t6426-merge-skip-unneeded-updates.sh, second part of the test '2c: Modify
> b & add c VS rename b->c' is commented out with an explicit "# FIXME:
> rename/add conflicts are horribly broken right now;" above the commented out
> part.
> [ cc Elijah Newren, author of c04ba51739 (t6046: testcases checking whether
> updates can be skipped in a merge, 2018-04-19) ]
[...]
You missed the cc...but I looked up this email since you did cc me for
patch 2/3.
Yeah, the commented out code was never tested, because the only thing
I could have tested at the time was incorrect results. So I just took
a guess at what the improved testing would look like and apparently
made 3 small errors in doing so. I have fixed it locally and can
submit a patch.
next prev parent reply other threads:[~2023-01-12 1:54 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-11 23:32 [PATCH v1 0/3] fixes for commented out code in tests (was "Re: [PATCH] *: fix typos which duplicate a word") Andrei Rybak
2023-01-11 23:32 ` [PATCH v1 1/3] t6003: uncomment test '--max-age=c3, --topo-order' Andrei Rybak
2023-01-11 23:32 ` [PATCH v1 2/3] t6422: drop commented out code Andrei Rybak
2023-01-11 23:32 ` [PATCH v1 3/3] t7527: use test_when_finished in 'case insensitive+preserving' Andrei Rybak
2023-01-14 9:43 ` Eric Sunshine
2023-01-12 0:45 ` [PATCH v1 0/3] fixes for commented out code in tests (was "Re: [PATCH] *: fix typos which duplicate a word") Tim Schumacher
2023-01-12 1:54 ` Elijah Newren [this message]
2023-01-13 4:32 ` Elijah Newren
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=CABPp-BFxK7SGs3wsOfozSw_Uvr-ynr+x8ciPV2Rmfx6Nr4si6g@mail.gmail.com \
--to=newren@gmail.com \
--cc=git@vger.kernel.org \
--cc=jeffhost@microsoft.com \
--cc=robin.rosenberg@dewire.com \
--cc=rybak.a.v@gmail.com \
--cc=sunshine@sunshineco.com \
--cc=timschumi@gmx.de \
/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).