From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 86A464A07 for ; Thu, 20 Nov 2025 03:15:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763608540; cv=none; b=b1Pb4PyMDpUP+IP+eZkFrJEtLiYD1eCj7jwNdHvTSLTdeEdzKsCt/1iO2dWF6FQRRAQpNQTyvxb0pk5sdLR7bRmsV9hGTmnMIp+dz4hS7RTgSMKcSK/eO24BzRWIMcYapa5Tr1HDKRB8cvlWqmNoJR/epZaP8zt/6jZeH5T6bJg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763608540; c=relaxed/simple; bh=RozxYtYzFkpOu/LqjteL5WXJAl71DTq+TOH+sc4D2iU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RyqQE+i3W9WhIwjZ1H1Ke77QdE/wodvr7fN7iq68FRLkPcjiD7RRv4BBWShLlkqzEQPAKkvcROuq7B1UrSiFxPlwM/XNOwrokoLCMdEvLDYIOn91iJwiNHyFiz9KkrFlUswlBsXRUAXTK/4AOvsOtIqiGd5aElrV7FMUJWkMm98= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=kernel.org; spf=none smtp.mailfrom=infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=t/NxCrZK; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=infradead.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="t/NxCrZK" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Sender:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description; bh=6lX83ai8Zk4LfVZ5I0XWhvUm7SFL/8fUbZf5w0UGiIQ=; b=t/NxCrZKVKIozqycIC8iHbXV+S QCqMBo8/PgOJjA6TEVqtVohZxqsdPijiPnVgdMmYbiwmE3ybetvoMIlMR0FF50qRxD1q/uEHBuUuE zEegME/dw6HNByw169n/9e5xZegczkDPOGSEAqQy/hpSmAP2N5ipe0wl+wnMKCFAkaqE0NQnAMtnM 7yw6HqjRgbHk/x6QTwkf3rFnMoTxeNcZUJ8NqXwG23kHJCewMT6WTzwiWwA57Z+b4jL9VHmlgHq+K 5CgUodY8gjjxzL5lbFPY8qVyRaPJX0/eQqZ6XsVpt9ZqJcI23PMg1XLIPeFmbzZTUlrvhXcKqbuth 5uz9O33w==; Received: from mcgrof by bombadil.infradead.org with local (Exim 4.98.2 #2 (Red Hat Linux)) id 1vLv90-000000062Yp-0qDW; Thu, 20 Nov 2025 03:15:38 +0000 From: Luis Chamberlain To: Chuck Lever , Daniel Gomez , kdevops@lists.linux.dev Cc: Luis Chamberlain Subject: [PATCH 2/3] fio-tets: add DECLARE_HOSTS support Date: Wed, 19 Nov 2025 19:15:25 -0800 Message-ID: <20251120031530.1439748-3-mcgrof@kernel.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20251120031530.1439748-1-mcgrof@kernel.org> References: <20251120031530.1439748-1-mcgrof@kernel.org> Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: Luis Chamberlain Declared hosts support enables testing on bare metal servers, pre-provisioned VMs, or any pre-existing infrastructure with SSH access. The fio-tests workflow can now be used with declared hosts for both single filesystem and multi-filesystem testing scenarios. The implementation removes the KDEVOPS_USE_DECLARED_HOSTS restriction and extends the declared-hosts template to properly handle fio-tests multi-filesystem sections. Signed-off-by: Luis Chamberlain --- kconfigs/workflows/Kconfig | 1 - .../templates/workflows/declared-hosts.j2 | 41 +++++++++++++++++++ 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/kconfigs/workflows/Kconfig b/kconfigs/workflows/Kconfig index 1b583094..a1ea4944 100644 --- a/kconfigs/workflows/Kconfig +++ b/kconfigs/workflows/Kconfig @@ -219,7 +219,6 @@ config KDEVOPS_WORKFLOW_DEDICATE_MMTESTS config KDEVOPS_WORKFLOW_DEDICATE_FIO_TESTS bool "fio-tests" - depends on !KDEVOPS_USE_DECLARED_HOSTS select KDEVOPS_WORKFLOW_ENABLE_FIO_TESTS help This will dedicate your configuration to running only the diff --git a/playbooks/roles/gen_hosts/templates/workflows/declared-hosts.j2 b/playbooks/roles/gen_hosts/templates/workflows/declared-hosts.j2 index 7d7975c7..f0517c45 100644 --- a/playbooks/roles/gen_hosts/templates/workflows/declared-hosts.j2 +++ b/playbooks/roles/gen_hosts/templates/workflows/declared-hosts.j2 @@ -78,6 +78,21 @@ ansible_python_interpreter = "{{ kdevops_python_interpreter }}" [fio_tests:vars] ansible_python_interpreter = "{{ kdevops_python_interpreter }}" +{# Add per-section groups for multi-filesystem testing #} +{% if fio_tests_multi_filesystem|default(false)|bool %} +{% for host in parsed_hosts %} +{% set section = host | regex_replace('^.*-fio-tests-', '') | regex_replace('-dev$', '') %} +{% if section != host %} +[fio_tests_{{ section | replace('-', '_') }}] +{{ host }} + +[fio_tests_{{ section | replace('-', '_') }}:vars] +ansible_python_interpreter = "{{ kdevops_python_interpreter }}" + +{% endif %} +{% endfor %} +{% endif %} + {% elif kdevops_workflow_enable_fstests %} [fstests] {% for host in parsed_hosts %} @@ -230,6 +245,32 @@ ansible_python_interpreter = "{{ kdevops_python_interpreter }}" {% endfor %} {% endif %} +{# For non-dedicated workflows (mix mode), add fio-tests group if enabled #} +{% if kdevops_workflow_enable_fio_tests %} +[fio_tests] +{% for host in parsed_hosts %} +{{ host }} +{% endfor %} + +[fio_tests:vars] +ansible_python_interpreter = "{{ kdevops_python_interpreter }}" + +{# Add per-section groups for multi-filesystem testing #} +{% if fio_tests_multi_filesystem|default(false)|bool %} +{% for host in parsed_hosts %} +{% set section = host | regex_replace('^.*-fio-tests-', '') | regex_replace('-dev$', '') %} +{% if section != host %} +[fio_tests_{{ section | replace('-', '_') }}] +{{ host }} + +[fio_tests_{{ section | replace('-', '_') }}:vars] +ansible_python_interpreter = "{{ kdevops_python_interpreter }}" + +{% endif %} +{% endfor %} +{% endif %} +{% endif %} + {% endif %} [service] -- 2.51.0