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 79ACA1BD9E3 for ; Mon, 31 Mar 2025 18:33:27 +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=1743446007; cv=none; b=cFZAVbsGX/e3CLFSdZL7eDdgf6nVKHaZ3OTmIyULHLNZLqhD6YyGPtbckMBic7hMJbwn2C1w85+xoKFAzeJrygU/gGv4J+eaL15QOwibVFBm4O2YEV89JJNwMMC4zlcunbTKXJ06duO0BzfgYGgomkzjgr1G1KtZxpUESYAqbNI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743446007; c=relaxed/simple; bh=vbDZOfo7vO7oNKJfs053azpqgvd10ndEt9BOfyFe8Qc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YzZ7BfyB4Ud9gW6hCd7LiRIIGQ3XCO/9BqtNTFAk82HOSIYQgpXARpHB9JnkVYVF655mDo4QrmwfkAv51vwhnLV0WsWC5Qk6rJ349EZ/iZSbh7KXlRGa1DOIJFM39uJIK9PH1WJHvIHZRBSeM89dOODRDqI/8YRstNprSRCRUy4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=d5yd7LXY; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="d5yd7LXY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4D6A0C4CEE3; Mon, 31 Mar 2025 18:33:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1743446007; bh=vbDZOfo7vO7oNKJfs053azpqgvd10ndEt9BOfyFe8Qc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=d5yd7LXYI6sNnNtwO5yAdwXks6ahx0k1cGLTGT6ocB40Us6uKD0ZrFdn9eqBQvGyZ t1BwMbqeX0SbsqwZjjAX7Z1qk+IrO1X28hH4Yp8+zevIciVdyxvJR9/B/7pl79tCdC dQ30OCTWOz+KD007Mwdq4CvYjFskdY9mbe8eyfULW3jbL0jhZ3zukb0SAjFDt0j0vf 9wgpiXMq+dxuZQvOU9kb8cbw63YINbUBQ3JIrSIrWbQ3wNalfLBMqtXnCP3Vr5yAur VSsYpewFxi/kPxCfUG0Hu6RJjMkYCntfu/dfBs5W1sCSD9fyw21qaAcg6N6AYNBGR4 qgvUlOP7MFy5w== Date: Mon, 31 Mar 2025 11:33:25 -0700 From: Luis Chamberlain To: Scott Mayhew Cc: kdevops@lists.linux.dev Subject: Re: [PATCH 6/6] gen_nodes: ensure kdevops prefix has no dashes Message-ID: References: <20250329230141.3718282-1-mcgrof@kernel.org> <20250329230141.3718282-7-mcgrof@kernel.org> Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Mon, Mar 31, 2025 at 01:35:41PM -0400, Scott Mayhew wrote: > On Sat, 29 Mar 2025, Luis Chamberlain wrote: > > > Folks trying to use kdevops and testing with fstests will quickly > > find out a surprise that their config is not being parsed correctly > > until later. > > > > Fix this by preventing bringup if the prefix has a dash. > > > > We use the dash to help parallelize testing filesystem profiles and > > so the host prefix goes before the filesystem name and test profile. > > Where does that happen? All of my kdevops setups use multiple dashes in > the host prefix (e.g. "kdevops-nfs-fstests-rhel-10-nightly"), so this > breaks my setup, and I'd imagine it breaks Chuck's too. Oh crap, sorry, does the NFS use of fstset not rely on the hostname to infer the target test section? If not then how about this: From a60443671181d889866265899ba8d1bc1d453d67 Mon Sep 17 00:00:00 2001 From: Luis Chamberlain Date: Mon, 31 Mar 2025 11:28:14 -0700 Subject: [PATCH] gen_nodes: make prefix check only for fstests The oscheck script relies on the prefix heuristic to determine the target filesystem test section, but not all users of fstests use this. NFS uses its own heuristics. Fix this by localizing the prefix check for fstests dedicated tests only. Fixes: 2b61c9992d9ee9 ("gen_nodes: ensure kdevops prefix has no dashes") Reported-by: Scott Mayhew Signed-off-by: Luis Chamberlain --- kconfigs/workflows/Kconfig | 1 + playbooks/roles/gen_nodes/defaults/main.yml | 1 + playbooks/roles/gen_nodes/tasks/main.yml | 4 +++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/kconfigs/workflows/Kconfig b/kconfigs/workflows/Kconfig index 4f969c60cab8..3075cbc13a82 100644 --- a/kconfigs/workflows/Kconfig +++ b/kconfigs/workflows/Kconfig @@ -106,6 +106,7 @@ choice config KDEVOPS_WORKFLOW_DEDICATE_FSTESTS bool "fstests" select KDEVOPS_WORKFLOW_ENABLE_FSTESTS + output yaml help This will dedicate your configuration only to fstests. diff --git a/playbooks/roles/gen_nodes/defaults/main.yml b/playbooks/roles/gen_nodes/defaults/main.yml index 8ff9b87993a7..dff556c3b716 100644 --- a/playbooks/roles/gen_nodes/defaults/main.yml +++ b/playbooks/roles/gen_nodes/defaults/main.yml @@ -83,6 +83,7 @@ libvirt_largeio_base_size: 10240 libvirt_largeio_pow_limit: 12 kdevops_workflows_dedicated_workflow: False +kdevops_workflow_dedicate_fstests: False kdevops_workflow_enable_fstests: False kdevops_workflow_enable_blktests: False diff --git a/playbooks/roles/gen_nodes/tasks/main.yml b/playbooks/roles/gen_nodes/tasks/main.yml index 8c6a1f705ee2..f14f5879dc58 100644 --- a/playbooks/roles/gen_nodes/tasks/main.yml +++ b/playbooks/roles/gen_nodes/tasks/main.yml @@ -21,7 +21,9 @@ - name: Fail if kdevops_host_prefix contains a dash fail: msg: "Invalid kdevops_host_prefix '{{ kdevops_host_prefix }}'. The prefix cannot contain a dash ('-')." - when: kdevops_host_prefix is search("-") + when: + - kdevops_workflow_dedicate_fstests|bool + - kdevops_host_prefix is search("-") - name: Create guestfs directory ansible.builtin.file: -- 2.47.2