From: Junio C Hamano <gitster@pobox.com>
To: Pete Wyckoff <pw@padd.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH 1/9] git p4 test: wait longer for p4d to start
Date: Mon, 25 Jun 2012 20:46:20 -0700 [thread overview]
Message-ID: <7vbok6enw3.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <1340673505-10551-2-git-send-email-pw@padd.com> (Pete Wyckoff's message of "Mon, 25 Jun 2012 21:18:17 -0400")
Pete Wyckoff <pw@padd.com> writes:
> Running tests at high parallelism on a slow machine, 5 sec is
> not enough to wait for p4d to start. Change it to 10 sec.
>
> Signed-off-by: Pete Wyckoff <pw@padd.com>
I'd rather not to see this kind of incremental micro-tweaks. The
next person who runs on an even slower box or with more excessive
parallelism compared to his machine size may complain and send a
patch to raise this to 20.
Who are we trying to help, and if you raised this to "forever", whom
would such a change be hurting? If there is something wrong with
the p4 installation, it may never come up, but an interactive user
will eventually end up seeing "waiting for p4d to start" and nothing
else in such a case, and will know to kill it with ^C. An automated
test spawned from a cron job would definitely be hurt with a timeout
of "forever", but to them, 10 seconds or 10 minutes would not make
much of practical differences (as long as you do not run such a cron
job too often).
My preference would probably be a very long default that can be
shortened (or lengthened) with an environment variable, so that a
frequent auto-builder that runs the tests every five minutes can
tune it down to 30 seconds, or something like that.
> t/lib-git-p4.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/t/lib-git-p4.sh b/t/lib-git-p4.sh
> index 121e380..0080eae 100644
> --- a/t/lib-git-p4.sh
> +++ b/t/lib-git-p4.sh
> @@ -37,7 +37,7 @@ start_p4d() {
> p4d -q -r "$db" -p $P4DPORT &
> echo $! >"$pidfile"
> ) &&
> - for i in 1 2 3 4 5 ; do
> + for i in 1 2 3 4 5 6 7 8 9 10 ; do
> p4 info >/dev/null 2>&1 && break || true &&
> echo waiting for p4d to start &&
> sleep 1
next prev parent reply other threads:[~2012-06-26 3:47 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-26 1:18 [PATCH 0/9] git p4 test fixes Pete Wyckoff
2012-06-26 1:18 ` [PATCH 1/9] git p4 test: wait longer for p4d to start Pete Wyckoff
2012-06-26 3:46 ` Junio C Hamano [this message]
2012-06-26 1:18 ` [PATCH 2/9] git p4 test: use real_path to resolve p4 client symlinks Pete Wyckoff
2012-06-26 1:18 ` [PATCH 3/9] git p4 test: simplify quoting involving TRASH_DIRECTORY Pete Wyckoff
2012-06-26 6:24 ` Johannes Sixt
2012-06-26 16:26 ` Junio C Hamano
2012-06-26 17:10 ` Pete Wyckoff
2012-06-26 1:18 ` [PATCH 4/9] git p4 test: never create default test repo Pete Wyckoff
2012-06-26 1:18 ` [PATCH 5/9] git p4 test: rename some "git-p4 command" strings Pete Wyckoff
2012-06-26 1:18 ` [PATCH 6/9] git p4 test: check for error message in failed test Pete Wyckoff
2012-06-26 1:18 ` [PATCH 7/9] git p4 test: copy source indeterminate Pete Wyckoff
2012-06-26 1:18 ` [PATCH 8/9] git p4 test: cleanup_git should make a new $git Pete Wyckoff
2012-06-26 1:18 ` [PATCH 9/9] git p4 test: split up big t9800 test Pete Wyckoff
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=7vbok6enw3.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=pw@padd.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).