From: Jonathan Nieder <jrnieder@gmail.com>
To: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
Cc: Nicolas Pitre <nico@fluxnic.net>, Git Mailing List <git@vger.kernel.org>
Subject: Re: [PATCH/RFC] test-lib: clean up trash* directories on SIGINT
Date: Mon, 12 Jul 2010 03:56:52 -0500 [thread overview]
Message-ID: <20100712085652.GA6837@burratino> (raw)
In-Reply-To: <AANLkTinGsIqy-rG8um1E7_zfla1KwsO2Z26JnchXaRLd@mail.gmail.com>
Ævar Arnfjörð Bjarmason wrote:
> On Mon, Jul 12, 2010 at 06:16, Jonathan Nieder <jrnieder@gmail.com> wrote:
>> So what should I do after noticing a heisenbug?
>
> Run the test again with --debug.
Sorry, I wasn’t clear. The sequence I was imagining (and have
enountered) is:
$ make test
[...]
not ok - 35 something that really should have been okay
... more text streams by ...
-- wait, what? I’ve never seen that fail before. ^C
If I catch it early enough, I can inspect the trash directory and
figure out what happened. Some bugs are hard to reproduce (and it
avoids waiting for tests to run again). But I can use ^Z instead.
> If I keep doing that (along with --jobs 20 and --shuffle) I'll
> eventually pile up ~200 MB of trash. That'll exceed the limits of my
> ramdisk and I'll have to grudgingly do rm -rf trash* again.
Given this rationale, I don’t personally mind the change (though it
is still not clear why not to run “make clean” from t/ between runs
instead).
I would be more worried if you were proposing making the --immediate
option remove the trash directory, too. I often use that option with
the express intent of populating a test repository which is no more
temporary than the .o files and copies of binaries in the build tree
are.
Thanks for the explanation,
Jonathan
prev parent reply other threads:[~2010-07-12 8:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-11 9:51 [PATCH/RFC] test-lib: clean up trash* directories on SIGINT Ævar Arnfjörð Bjarmason
2010-07-11 11:55 ` Andreas Schwab
2010-07-12 3:32 ` Nicolas Pitre
2010-07-12 5:42 ` Ævar Arnfjörð Bjarmason
2010-07-12 6:16 ` Jonathan Nieder
2010-07-12 8:16 ` Ævar Arnfjörð Bjarmason
2010-07-12 8:56 ` Jonathan Nieder [this message]
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=20100712085652.GA6837@burratino \
--to=jrnieder@gmail.com \
--cc=avarab@gmail.com \
--cc=git@vger.kernel.org \
--cc=nico@fluxnic.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 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).