Received: by 2002:ab2:7041:0:b0:1f4:bcc8:f211 with SMTP id x1csp203973lql; Fri, 12 Apr 2024 08:03:02 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWzjtVBOYshCXK2otvO02V1xQ84YHFjitJagVQZGmeCReSx2ZwlNHWSueNg2hbXU8I+ZqwIK0eSLKZGpRxJOcE6IIwByV4eFLMUbb2ljg== X-Google-Smtp-Source: AGHT+IHb/Spb338VpgJ6hG2grrRYrU8O1MZP+ptRD5w4J62jxSWo7Np8LL4KsxGZx2rAA9buUV8K X-Received: by 2002:a17:903:2302:b0:1e3:e563:57ed with SMTP id d2-20020a170903230200b001e3e56357edmr3428020plh.36.1712934181947; Fri, 12 Apr 2024 08:03:01 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712934181; cv=pass; d=google.com; s=arc-20160816; b=RmXq3ms7aVe3vy/J1dZvZm50nHHZ4OG5YoicJ+YK+QwfzJ6IIar0xxMGtCMT2N+e60 WKdNAnOUw711he/kBSsiNbKHCrO8XuDO/A+tc428aXRwlN7wCzUscvFvKfboGYJgb8Lx NghtAaDuqgya0muV2Rhs0noLm5UsmMSsbksdsR82G5oHBfLkQ2y5dc/tVTcE0KvmGuJt f99loqBAva+ram5wIpnsf+sV/xdNqcUd84F/ZLTd9pm0Io1aDUiad6Cwb0OQvqTG24bc 85rZ9UMPIKuVqgE3yNpBe7sruretYIbZ/qWhw0SSXO1hDxmiOBFXO58lqg+Wkgtr3o3z 3qFg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dYF5mT+7h4VPl4nyroPYO8gITgyaCe/Q319mr+UK0Jc=; fh=r/ZSvFMuzSlrBTgcR4PG0Tv7WNZovKyQWJSDtpog048=; b=Ff2gQIAsxK6nePpbBHjamobF5cb/4UYctk551H1q0z2UH4jdXDSIw1ROcWCyqx2eLe yzoDl9QhXE1HNYDmMuMBaZgca4H+q7MNN7aY3mjCvCyCAnQM8ZZ21wSKheMpIrwOqhHy N0tKvo3w+4Knj+5smaYScH2+g6oU5jEsnwaQnTYcR9k11XGw3BnwkQyikjZCrkHgGqm/ yoqs5mb2CYts3nSnYmzAHOFtjfEsOQO9Zwzf5NJnGcK5O9gUTTO82f+BxVWHqsLyxucA TZJ1QSU4Sn1nneTFYqBFryzelHvvV55xJ+QYR8ZvKdx4jw71FnYVn1T6olFXNnQvn2TJ lBng==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=N7V7gCFu; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-142894-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142894-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id t6-20020a170902bc4600b001e49d7eaf11si3355665plz.350.2024.04.12.08.03.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 08:03:01 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142894-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=N7V7gCFu; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-142894-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142894-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id B9AB6283E18 for ; Fri, 12 Apr 2024 15:01:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DD5C9147C65; Fri, 12 Apr 2024 15:01:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="N7V7gCFu" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 112BA145333; Fri, 12 Apr 2024 15:01:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712934107; cv=none; b=S04JxTHls8YtJnCCVnomxL9LK/EYQF2D4o2zF4237fYxSjlEocY7OaBBHORSbYFk411adht+Up0jl8wgHQZxiwf2/c3FYRBGonJCubcNlTN5qikN6kWM2oyuNGqRTMAVheb9zwvcguCLj4CAq2rJSb7B1GOosqp05te6N7cT7iI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712934107; c=relaxed/simple; bh=g07M7yc8kYh3zRKK1iY+krBO5+7cUmhQyw/ZFdMq8cs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sXWZXdAjzBg9paLj4kgyDAsckZIlqpT2E6bCazRP6wwmUhVI0NX7MEm7R3FLv/eypMKDO8O4L4j3eMDEDk4xkorJQNTu7UQfOLaOfMj4E8SSDaHajEvaXFiCuPTctwdgbghp3ALYPNBQ4eC0RXaZXmZQbJjTGJ14qg2DfEcmPgo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=N7V7gCFu; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4961DC113CC; Fri, 12 Apr 2024 15:01:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712934106; bh=g07M7yc8kYh3zRKK1iY+krBO5+7cUmhQyw/ZFdMq8cs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=N7V7gCFurKvzNIYjIChC2uSv6vjjlgWNopsQAtmkyS+1eoGqOvjIpBkHg2u2Rpwxn ZsFbS5IyCEAkoY9B5L/ssNVDc5p2FGgd74BenOWltOFAUgVbXquJPLEv/FT+a1xV1R nYO6UQqHkg/9xRJ2BvxhMn65d/JGfCQiSZD1SVfhWhoBx09k4576drKqB2rSE6VhtM L21jllWoNqllhPpM5ejC/DQySylvPz3ypdi7bPCcJG5U/rZqKmf6Omgn1Fuf7LiW1H xnDWtOoQEtR5A5LkcoGsz8SyNJgFSIju+9U1mY5Za3BkX4I79nXkJxJq5J3EpYvHZo 6LdbPAY+kl79w== Date: Fri, 12 Apr 2024 12:01:43 -0300 From: Arnaldo Carvalho de Melo To: Ian Rogers Cc: Peter Zijlstra , Ingo Molnar , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Adrian Hunter , Kan Liang , James Clark , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org Subject: Re: [PATCH v1 2/2] perf test: Display number of remaining tests Message-ID: References: <20240405070931.1231245-1-irogers@google.com> <20240405070931.1231245-2-irogers@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: On Thu, Apr 11, 2024 at 10:22:42PM -0700, Ian Rogers wrote: > On Mon, Apr 8, 2024 at 7:12 AM Arnaldo Carvalho de Melo wrote: > > > > On Fri, Apr 05, 2024 at 12:09:31AM -0700, Ian Rogers wrote: > > > Before polling or sleeping to wait for a test to complete, print out > > > ": Running ( remaining)" where the number of remaining tests is > > > determined by iterating over the remaining tests and seeing which > > > return true for check_if_command_finished. After the delay, erase the > > > line and either update it with the new number of remaining tests, or > > > print the test's result. This allows a user to know a test is running > > > and in parallel mode (default) how many of the tests are waiting to > > > complete. If color mode is disabled then avoid displaying the > > > "Running" message. > > > > Tested and applied, great improvement! > > And I think it is broken. Specifically I think the nohang waitpid can > cause the later read of the stdout/err pipe to fail. We may need to > drain the files before checking. I suspect this as I've seen an > increase test fails where the verbose output shows nothing. The only > remedy for that in the current code would be to run the tests > sequentially, so we should probably back this out for now. Removing it then, - Arnaldo