From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeff King Subject: Re: t5800-*.sh: Intermittent test failures Date: Thu, 8 Sep 2011 14:20:55 -0400 Message-ID: <20110908182055.GA16500@sigill.intra.peff.net> References: <4E417CB4.50007@ramsay1.demon.co.uk> <7vpqjgyvn1.fsf@alter.siamese.dyndns.org> <4E68FE73.4000005@ramsay1.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: Junio C Hamano , Sverre Rabbelier , GIT Mailing-list , Jonathan Nieder To: Ramsay Jones X-From: git-owner@vger.kernel.org Fri Sep 09 01:47:49 2011 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R1oJv-0000Jf-74 for gcvg-git-2@lo.gmane.org; Fri, 09 Sep 2011 01:47:47 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753246Ab1IHXrm (ORCPT ); Thu, 8 Sep 2011 19:47:42 -0400 Received: from 99-108-226-0.lightspeed.iplsin.sbcglobal.net ([99.108.226.0]:56675 "EHLO peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752837Ab1IHXrl (ORCPT ); Thu, 8 Sep 2011 19:47:41 -0400 Received: (qmail 16008 invoked by uid 107); 8 Sep 2011 18:21:47 -0000 Received: from sigill.intra.peff.net (HELO sigill.intra.peff.net) (10.0.0.7) (smtp-auth username relayok, mechanism cram-md5) by peff.net (qpsmtpd/0.84) with ESMTPA; Thu, 08 Sep 2011 14:21:47 -0400 Received: by sigill.intra.peff.net (sSMTP sendmail emulation); Thu, 08 Sep 2011 14:20:55 -0400 Content-Disposition: inline In-Reply-To: <4E68FE73.4000005@ramsay1.demon.co.uk> Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Thu, Sep 08, 2011 at 06:42:11PM +0100, Ramsay Jones wrote: > When I run the tests with "make test >test-out", I see a failure rate of about > 1 in 10. If I then set the debug environment variables (GIT_TRANSPORT_HELPER_DEBUG, > GIT_TRANSLOOP_DEBUG and GIT_DEBUG_TESTGIT) and run the test script directly (-v), > then the failure rate goes up to about 1 in 3. Hmm. I can't reproduce a failure here, but I do get some weirdness. My recipe is: -- >8 -- cat >foo.sh <<\EOF #!/bin/sh exec >$1.out 2>&1 n=0 while test $n -lt 100; do n=$(($n+1)) GIT_TRANSPORT_HELPER_DEBUG=1 \ GIT_TRANSLOOP_DEBUG=1 \ GIT_DEBUG_TESTGIT=1 \ ./t5800-remote-helpers.sh --root=/run/shm/git-tests-$1 -v || { echo FAIL $n exit 1 } echo OK $n done EOF # try to keep an 8-core machine busy for i in `seq 1 16`; do sh foo.sh $i & done -- 8< -- I never see a test failure, but a few of the 16 end up hanging. The process tree for the hanged tests look like: t5800-remote-helper git push git-remote-testgit git fast-import git-fast-import All of them are blocked on wait(), except for the final fast-import, which is blocked trying to read() from stdin. -Peff