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 6060411713 for ; Fri, 5 Sep 2025 13:22:03 +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=1757078523; cv=none; b=l1A1FZQlp6StYsKNgO3kSzdEpuwbPOlRRwrnw75URODNYU8CLbNsc6W0b1hxDfOqyuse0PcxFyaL9EHVsDk/rKQKFpIP4p1NgRK1OFvy5QvUyh/HlagFDw/FumdiS6InzolBUO4YIsiKDsV9AeOGVVAY/6AzOy/AyL6wQU2w5y4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757078523; c=relaxed/simple; bh=XMwYqUmbRZLz+ti70AcqGoNp/znISwyWGqqcdE8vDYk=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ZezS/N0LQkCmP1HBuvdLaMlvr7BJMKbn9RwD63izHL9vfot3zyc/XTNSzUEjMedtmBYjPHBqsF+fAxkHg/kLpCAvf2UhL5cNsysWLAjwaAYmr5fSALfF/Ma3J+ySZiNiaGQmK53JcO2qcHxzGv7hu3ctF1qH/cKPX8N6Sp1s1dE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=iUe5t9Qv; 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="iUe5t9Qv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02D91C4CEF5; Fri, 5 Sep 2025 13:22:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1757078522; bh=XMwYqUmbRZLz+ti70AcqGoNp/znISwyWGqqcdE8vDYk=; h=Date:Reply-To:Subject:To:Cc:References:From:In-Reply-To:From; b=iUe5t9QvY6rKaZGKWDXQ9Okrjg6GOHojVuu+e/UBg2VSlEUkRCqyvgZhqyl4yJQw9 X78Nqbh2PDwmWVlTMJ7e7golitlWHVtFyvNkRAw7g2+rkMYBQf3dQmyBctkwStwl8l 8ydobBVdMnR9xYUthLF5uP/moOiPbhsBVB8/QyOPyvmxDjK3E1GR7CQXg1+quN0F2Q i4hakWZ1U43sjr8bOUMS+xvCxJT02zvJTvZjvduiDrDrBWtvS3/zmFiLsqS433EUGa fBQrGASjLAJaTFHjgPC0Us+m55pBAGQWG+HI8qKhp76n+QhT686EVh9QFdJJVhip1u tECjfmSfcLyVg== Message-ID: <4c0a5a62-642a-4612-aeab-f29ebefd0eac@kernel.org> Date: Fri, 5 Sep 2025 15:21:59 +0200 Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Reply-To: Daniel Gomez Subject: Re: [PATCH v3 36/36] inventory: generate the inventory pathname dynamically To: Chuck Lever , kdevops@lists.linux.dev Cc: Chuck Lever , Luis Chamberlain References: <20250904151526.1596282-1-cel@kernel.org> <20250904151526.1596282-37-cel@kernel.org> Content-Language: en-US From: Daniel Gomez Organization: kernel.org In-Reply-To: <20250904151526.1596282-37-cel@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 04/09/2025 17.15, Chuck Lever wrote: > From: Chuck Lever > > My CI workflows need the inventory location to be determined at run > time, not set by the kdevops .config file, so the .configs can be > portable amongst test runners and test branches. > > Reviewed-by: Luis Chamberlain > Signed-off-by: Chuck Lever > --- > Makefile | 8 ++++++++ > kconfigs/Kconfig.ansible_cfg | 12 ++++++++++++ > 2 files changed, 20 insertions(+) > > diff --git a/Makefile b/Makefile > index 3c48fea1421e..082e5744fc63 100644 > --- a/Makefile > +++ b/Makefile > @@ -35,7 +35,12 @@ else > ANSIBLE_CFG_FILE := $(TOPDIR_PATH)/ansible.cfg > export ANSIBLE_CONFIG := $(ANSIBLE_CFG_FILE) > endif > + > +ifeq (y,$(CONFIG_ANSIBLE_CFG_INVENTORY_CUSTOM)) > ANSIBLE_INVENTORY_FILE := $(shell echo $(CONFIG_ANSIBLE_CFG_INVENTORY) | tr --delete '"') > +else > +ANSIBLE_INVENTORY_FILE := $(TOPDIR_PATH)/hosts > +endif Sandboxing patches will likely change this. As noted earlier, sandboxing lets kdevops users choose where to place the inventory file (hosts) and other artifacts (.config, *vars*.yaml, etc). To support this, kdevops sources and artifacts must be decoupled from TOPDIR. Earlier cleanups and inventory customization were steps toward enabling this. Hope I'm not missing any possible incompatible path between this enablement and sandboxing. Reviewed-by: Daniel Gomez