From: Jeff King <peff@peff.net>
To: Junio C Hamano <gitster@pobox.com>
Cc: Stefan Beller <sbeller@google.com>,
git@vger.kernel.org, janx@linux.com,
Lars Schneider <larsxschneider@gmail.com>
Subject: Re: [PATCH] t7300: mark test with SANITY
Date: Tue, 3 May 2016 17:15:29 -0400 [thread overview]
Message-ID: <20160503211528.GA32737@sigill.intra.peff.net> (raw)
In-Reply-To: <xmqqmvo7lz5f.fsf@gitster.mtv.corp.google.com>
On Tue, May 03, 2016 at 12:28:12PM -0700, Junio C Hamano wrote:
> By the way, it is easy to make a mistake like this, not to notice it
> during a review, and to leave it unnoticed for a long time,
> especially because I do not think anybody active in the development
> community runs tests as 'root'.
I think the advice for running the tests as root has long been: don't.
But I guess some people are in situations where it's hard to do
otherwise.
I'm torn on whether it really matters or not. On the one hand, if a
breakage that is purely in a test and not in git itself goes for a long
time without anyone noticing, it's not really hurting anyone. On the
other, "noticing" and "reporting" are two different things; there may be
people who run "make test" and give up.
FWIW, I just did a "sudo make test" and the only other failures were
around HTTP (which correctly punts with "you can't run http tests as
root", but I set GIT_TEST_HTTPD=1, which turns skipping them into an
error).
> Perhaps in a future update, Travis should learn a step to catch
> breakages like like this. Or perhaps it is not worth the effort?
Maybe. I admit to not really using the Travis tests myself, as they are
way too slow and cumbersome to debug compared to just running "make
test". The primary value to me of centralized CI is:
1. _If_ people are looking at PRs on GitHub, the test status is shown
right there in the PR, without a reviewer having to wonder whether
the submitter ran "make test". But since I don't ever look at PRs
for Git, that's not helpful.
2. Quicker testing on a variety of platforms that I don't have.
We've known for years that the tip of master passes your "make
test" under Linux, but other-platform breakage slips through, and
we rely on people who use those platforms to report. But that may
not happen in a timely way, and CI can let us know sooner.
Right now we've taken a baby step there. CI auto-builds for various
setups, but we still rely on people who care about those platforms
to look at the results and surface the data to the list. If we
tested individual topics picked up from the mailing list and sent
out an email saying "by the way, this is broken on platform X",
that would go a long way (and would help point 1, too). I think
there was some discussion in the 0day thread elsewhere on the list,
but I didn't follow it too closely.
Anyway, back to the original question. I do think "test as root" can be
considered another platform, which makes it a good match for CI. But at
the same time, I don't know that it has ever surfaced an actual bug in
_Git_, and not just the test suite. So seeing those bugs quickly is a
lot less interesting.
-Peff
next prev parent reply other threads:[~2016-05-03 21:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-03 18:54 [PATCH] t7300: mark test with SANITY Stefan Beller
2016-05-03 19:04 ` Jeff King
2016-05-03 19:09 ` Junio C Hamano
2016-05-03 19:28 ` Junio C Hamano
2016-05-03 21:15 ` Jeff King [this message]
2016-05-03 21:19 ` Junio C Hamano
2016-05-03 21:35 ` Jeff King
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=20160503211528.GA32737@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=janx@linux.com \
--cc=larsxschneider@gmail.com \
--cc=sbeller@google.com \
/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).