Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 79F922D8DB7 for ; Tue, 15 Apr 2025 23:28:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744759728; cv=none; b=PCfm09oKWOOzdkQV6bTIsv/fYxAnmRDS+plumJ9A2bBhr9W+3YP9nF6IMN+kigIN3g/ekE4x0EUC5eU9peQhBAvVt5yON9RaTCSBqy033b0H6TqlmQG+0pB/qAMGTy32RDtlNRBBLSmO11+BWNcGauNZv0RbSpjsMM12uzeIrSc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744759728; c=relaxed/simple; bh=Co2kGB+wRY7tpOUOLsuYM9DTdsAloPbvZVOcHFISJ8c=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bp2l+3cOYBzmbLAR01cBndGzXR14BgR8/oGOslH3M4kixRPYd37xK9O1gCIBL3yH8BLyBS3ZjrF1ukalI4RfLopTBSfoKFTV5XGaM2Hvciqn/MnvW/3XPx4oEZGNZ0PKnt2pY/LcGiQB+aHuhnNWi3Dfc64Javmr7+LOK6o5AOU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=fromorbit.com; spf=pass smtp.mailfrom=fromorbit.com; dkim=pass (2048-bit key) header.d=fromorbit-com.20230601.gappssmtp.com header.i=@fromorbit-com.20230601.gappssmtp.com header.b=Z5oKluK1; arc=none smtp.client-ip=209.85.214.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=fromorbit.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=fromorbit.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fromorbit-com.20230601.gappssmtp.com header.i=@fromorbit-com.20230601.gappssmtp.com header.b="Z5oKluK1" Received: by mail-pl1-f178.google.com with SMTP id d9443c01a7336-224191d92e4so60296065ad.3 for ; Tue, 15 Apr 2025 16:28:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fromorbit-com.20230601.gappssmtp.com; s=20230601; t=1744759724; x=1745364524; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=ilFtG+6+Fot3Brak6oY8Uo8/2ZoDyUWu9EN85DUNHoc=; b=Z5oKluK1D1wu5ywFYpkLpETuVujDsSErtwyO70EpY+kBLxWLws1y/185KqN8nBpQSH 1ommhY+U+UsP5xPKgYUjHJfiRsy+33IXcy1yBRKd4tH4FvjPNek929aA4E2XofqvaJhc u+daV9BM5eBcNM+cQ+P8FwFWFgyxgLg8NimUD4u2C2hDH+HYkXX9CfRqkD7mgontov92 S4xl4gDNUU09/iQwhgyuxtu1/asI5Y6S5HubvHMPFrtk48zarOas3c5p6qxJI0SgHlbx uMo23kKMG/eEbfYjC917UjaU/ejE4H8hpsCcnAMKMsxsNRdpnod0tDf1qjiCIlaGu+NM dGOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1744759724; x=1745364524; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=ilFtG+6+Fot3Brak6oY8Uo8/2ZoDyUWu9EN85DUNHoc=; b=UM/zGHP3nCp5PfUJBDrqN0FyKG68TvXseOgTSTmjfh1NP+PY7AmIeHi9D2wpEvL8H4 2mBdpswK7nAK0g9/7ynNNNWB2C8z60KDHvRKjRaIHNglTHefhajujXERSIzDs9uPd7A1 +FRIsqT63hlvmX27IerkCCetXiAHrb22g7RkrASru/YZOxeGCVNbRk906QMdZz4sqiq1 wX0UcJYgWcwBV6jdr/+aqYshYSRniHnkZ0y+ZAe/KZn7Pt1RLJefXslt0mAV8+8xzTsE 00KqZNdxokA/h/RgXm3ev6VeICdA3C7IfoSN9Gm+iXB3CV95YZbcMYx2dPrKM+Np1olT uVxA== X-Forwarded-Encrypted: i=1; AJvYcCX4nz6ruFWnPO1X0aK5MVVFnV8KGyzDTvWipCqrQt4JuUX7EoTJnLIhGpdUdTO8dPwl0XyvtnMt@vger.kernel.org X-Gm-Message-State: AOJu0YyaEasQs4WgvR3a2Fj0S8DeNZYowlio13104pmh+6wbXoExB4n1 4EL+cySUpflG3ZiNngcNGxIoDvC6A2Z8FnnsvLQFvjLJC93mNEvo4U6+5KyFePk= X-Gm-Gg: ASbGnctaQ/oM4/zRQFgdxkmThbCGeCtHgVCXAE3pL6jLc3d8XQ2PgiE98pXA8peZTnP GpqJZulAW2sxN7KrXicYcNdV2Hcs2eCDM1vR8Owc5XS6F3y+sjCLnxplzu6Imqxn3SB/5KP/kAQ vkFfkYo//fel16Eoh/X9J3PX7ADq5Acz9/c6Skx7Sbu86ZRJuT0hv/Cblek4/CTlECYiz8BLFTv auksgJ9U0GgergwwXDicU3yYr9rF3NgfN+xWNIGvIbX2wz44/ULYkxP4vIm+LTa0uZdna637GeN jEx/aTBgDJ/RQCsfb4EUwxRxdOXail+S85bcmfi3spUWrsoS43l/HM4OFKJPeVGbTPjzVRHcbfb 8MBoruPt09JcKhw== X-Google-Smtp-Source: AGHT+IF5L5SnftugPGiVRbPyMGgy+P7lIDHpuADQTk5vv7bog6oS1bL9N/VLOKpi6CxPVttqXvRzRg== X-Received: by 2002:a17:902:f68c:b0:224:160d:3f5b with SMTP id d9443c01a7336-22c31abfd00mr13818525ad.49.1744759724616; Tue, 15 Apr 2025 16:28:44 -0700 (PDT) Received: from dread.disaster.area (pa49-181-60-96.pa.nsw.optusnet.com.au. [49.181.60.96]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-22c33fe9810sm943025ad.249.2025.04.15.16.28.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 15 Apr 2025 16:28:44 -0700 (PDT) Received: from dave by dread.disaster.area with local (Exim 4.98) (envelope-from ) id 1u4pho-000000095GN-1vHN; Wed, 16 Apr 2025 09:28:40 +1000 Date: Wed, 16 Apr 2025 09:28:40 +1000 From: Dave Chinner To: "Nirjhar Roy (IBM)" Cc: Theodore Ts'o , fstests@vger.kernel.org, linux-ext4@vger.kernel.org, linux-xfs@vger.kernel.org, ritesh.list@gmail.com, ojaswin@linux.ibm.com, djwong@kernel.org, zlang@kernel.org Subject: Re: [PATCH v2 2/3] check: Add -q option to support unconditional looping. Message-ID: References: <762d80d522724f975df087c1e92cdd202fd18cae.1743670253.git.nirjhar.roy.lists@gmail.com> <20250413214858.GA3219283@mit.edu> <9619fb07-1d2c-4f23-8a62-3c73ca37bec3@gmail.com> Precedence: bulk X-Mailing-List: fstests@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9619fb07-1d2c-4f23-8a62-3c73ca37bec3@gmail.com> On Tue, Apr 15, 2025 at 01:02:49PM +0530, Nirjhar Roy (IBM) wrote: > > On 4/14/25 03:18, Theodore Ts'o wrote: > > On Thu, Apr 03, 2025 at 08:58:19AM +0000, Nirjhar Roy (IBM) wrote: > > > This patch adds -q option through which one can run a given test > > > times unconditionally. It also prints pass/fail metrics at the end. > > > > > > The advantage of this over -L and -i/-I is that: > > > a. -L will not re-run a flakey test if the test passes for the first time. > > > b. -I/-i sets up devices during each iteration and hence slower. > > > Note -q will override -L . > > I'm wondering if we need to keep the current behavior of -I/-i. The > > primary difference between them and how your proposed -q works is that > > instead of iterating over the section, your proposed option iterates > > over each test. So for example, if a section contains generic/001 and > > generic/002, iterating using -i 3 will do this: > > Yes, the motivation to introduce -q was to: > > 1. Make the re-run faster and not re-format the device. -i re-formats the > device and hence is slightly slower. Why does -i reformat the test device on every run in your setup? i.e. if the FSTYP is not changing from iteration to iteration, then each iteration should not reformat the test device at all. Unless, of course, you have told it to do so via the RECREATE_TEST_DEV env variable.... Hence it seems to me like this is working around some other setup or section iteration problem here... > 2. To unconditionally loop a test - useful for scenarios when a flaky test > doesn't fail for the first time (something that -L) does. That's what -i does. it will unconditionally loop over the specified tests N times regardless of success or failure. OTOH, -I will abort on first failure. i.e. to enable flakey tests to be run until it eventually fails and leave the corpse behind for debugging. > So, are saying that re-formatting a disk on every run, something that -i > does, doesn't have much value and can be removed? -i does not imply that the test device should be reformatted on every loop. If that is happening, that is likely a result of test config or environment conditions. Can you tell us why the test device is getting reformatted on every iteration in your setup? > > generic/001 > > generic/002 > > generic/001 > > generic/002 > > generic/001 > > generic/002 > > > > While generic -q 3 would do this instead: > > > > generic/001 > > generic/001 > > generic/001 > > generic/002 > > generic/002 > > generic/002 There are arguments both for and against the different iteration orders. However, if there is no overriding reason to change the existing order of test execution, then we should not change the order or test execution.... -Dave. -- Dave Chinner david@fromorbit.com