Message ID | 20240215-lp-selftests-fixes-v1-1-89f4a6f5cddc@suse.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-67477-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:c619:b0:108:e6aa:91d0 with SMTP id hn25csp28607dyb; Thu, 15 Feb 2024 10:13:29 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCVN9T+f4TdKUOF9XwdJxzZbwciS5sVMhZYRpC8iEh8l/QSzeekM3UHZMWPyPdm181qYDVceiGwo/tWAIVPYS4QLa0WrXQ== X-Google-Smtp-Source: AGHT+IF9mEWWNMfXAX5fP92WWMSnNV8sxi0siDca1PaVfJd63NGOR2AB50oF3N1K9gAnn6zc//Ol X-Received: by 2002:ac8:7f14:0:b0:42c:4707:54a0 with SMTP id f20-20020ac87f14000000b0042c470754a0mr8376902qtk.18.1708020809112; Thu, 15 Feb 2024 10:13:29 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708020809; cv=pass; d=google.com; s=arc-20160816; b=Nfd7EkYYqIDqwls8SseFctkAeYnos7bLUrjEqx6RRxoqF3sRRWi2Q7nUoz3XiOX11G b6PTNEPaYmtbrM8HddTYSxL7wgJum33A6XKuoopbr4e0LCkRas/S4E9lHAzIwqmRaDRA W9Ty2hOfrx/2eBKj3omIRneWCMqArx87qtYIYTlQcUzMKmHsrxtLBrXMHTBe+64BFiiT nceNk4t1BTZeYKgDk3xKtbTctF3dUPTUmDywaQPMWMONkWz1RySteMaE9/hRPiNUf9Ep jSTKbyqFVzHXa44x28U6nMRxCT0R/PhIyywg1/GBV+gIsO1/CRDpZVdjnax4vZGJEq27 lr1A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :subject:date:from; bh=HbqZhhOJX07boxoLLJUyilhs4tb4nw42hQC6B37FTkA=; fh=oGTeheTGtJi/O2KL90xHksAdkswU33tM/8rayu80xMU=; b=tOryZ08NfbclnKGzJ1Y33SZ0h1zTFkA2ItJZEkQ/SZmb2XG3Ps2KRhT7y6h58QTxs6 QhbdZBlcps7l5xLm9J6ZgcyAXZc8FiZtqbsfp6WcM/CIQo7gHW1KCbbmEfX5l3C71HyR 8kPazAKgeW97GyqeyK97eY5MKJojtz9+wTOM29ctbqjbW1Y5OkduT0PpCmZP+Qhkd5an 5JXbIeGIBWSBQqGT6sTBCQsFj/CfC4MsuhsSf64rV8GGmbBHEHT4AuXdXbBdVteuXZ/8 38izys5jadji4MuaGEgMLUc5ZB9PJEGnGIHzKoQPZMGk1Vlu7n8LGPKwUig9OYsc5kof ZlUA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-67477-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67477-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id v30-20020a05622a189e00b0042c44c065e6si2098856qtc.733.2024.02.15.10.13.28 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 10:13:29 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67477-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=suse.com dmarc=pass fromdomain=suse.com); spf=pass (google.com: domain of linux-kernel+bounces-67477-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67477-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=suse.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id A66A41C21CB1 for <ouuuleilei@gmail.com>; Thu, 15 Feb 2024 18:13:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DC4AA139592; Thu, 15 Feb 2024 18:12:47 +0000 (UTC) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (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 46F3A1386D3; Thu, 15 Feb 2024 18:12:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708020766; cv=none; b=acFNgWezsgKmi2HOSdu2Qk4BkowvMoMXygURiWZVbgi2sJBAWBOvg9yI7fWMUwkLV9OaYhGKYLxD5GZiIjfoHW4vHvYpmQX90WuEF83eH1Ulc0I9uBc9BGvu7OIzI4rNWlKISW6jHjZLNiTcjl4K+xlTLKh6kakAGjN+LwyPHew= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708020766; c=relaxed/simple; bh=/oVRt9J85nXIjb42Ew5A1lAd/g3N6kuHuj8z2sOBZ30=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=e51HBobAaj8LedVohBYpcKWOEZCI5mpFbhjloCBKbnBR72X6Brl20woKcpu8ysKobJSozp8rredySWvowZ5aG2UIhPi+QGRvNYcapEkLRXWfcicHgG2WuaKPX3iEKxevlfV681ZW4sA0klX7kkKRq6y3kPBHUkYvZC9e01Lo2a8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Received: from imap2.dmz-prg2.suse.org (imap2.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:98]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 8681B1F8CD; Thu, 15 Feb 2024 18:12:41 +0000 (UTC) Received: from imap2.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap2.dmz-prg2.suse.org (Postfix) with ESMTPS id 1320F1346A; Thu, 15 Feb 2024 18:12:40 +0000 (UTC) Received: from dovecot-director2.suse.de ([10.150.64.162]) by imap2.dmz-prg2.suse.org with ESMTPSA id z3IGMhhUzmXvVwAAn2gu4w (envelope-from <mpdesouza@suse.com>); Thu, 15 Feb 2024 18:12:40 +0000 From: Marcos Paulo de Souza <mpdesouza@suse.com> Date: Thu, 15 Feb 2024 15:12:20 -0300 Subject: [PATCH 1/3] selftests: lib.mk: Do not process TEST_GEN_MODS_DIR Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20240215-lp-selftests-fixes-v1-1-89f4a6f5cddc@suse.com> References: <20240215-lp-selftests-fixes-v1-0-89f4a6f5cddc@suse.com> In-Reply-To: <20240215-lp-selftests-fixes-v1-0-89f4a6f5cddc@suse.com> To: Shuah Khan <shuah@kernel.org>, Josh Poimboeuf <jpoimboe@kernel.org>, Jiri Kosina <jikos@kernel.org>, Miroslav Benes <mbenes@suse.cz>, Petr Mladek <pmladek@suse.com>, Joe Lawrence <joe.lawrence@redhat.com> Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, live-patching@vger.kernel.org, Marcos Paulo de Souza <mpdesouza@suse.com> X-Mailer: b4 0.13-dev X-Developer-Signature: v=1; a=ed25519-sha256; t=1708020755; l=1247; i=mpdesouza@suse.com; s=20231031; h=from:subject:message-id; bh=/oVRt9J85nXIjb42Ew5A1lAd/g3N6kuHuj8z2sOBZ30=; b=YduZ53j14sbJDbhmCGu4WTRZjknj6Xx1QU8RIrIyDhEQUzAt38wSKhIT6yVyu0HOtdP10BtSp FgMIbf8PKKFACY5KwcgUjCI3NIcgM9EtBpSF6FlbSSjAXyQOF/l/4U1 X-Developer-Key: i=mpdesouza@suse.com; a=ed25519; pk=/Ni/TsKkr69EOmdZXkp1Q/BlzDonbOBRsfPa18ySIwU= Authentication-Results: smtp-out2.suse.de; none X-Spamd-Result: default: False [-4.00 / 50.00]; REPLY(-4.00)[] X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Rspamd-Queue-Id: 8681B1F8CD X-Spam-Level: X-Spam-Score: -4.00 X-Spam-Flag: NO X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790989627862411809 X-GMAIL-MSGID: 1790989627862411809 |
Series |
Improvements to livepatch kselftests on top of kselftest-next
|
|
Commit Message
Marcos Paulo de Souza
Feb. 15, 2024, 6:12 p.m. UTC
The directory itself doesn't need have path handling, since it's only to
mean where is the directory that contains modules to be built.
Signed-off-by: Marcos Paulo de Souza <mpdesouza@suse.com>
---
tools/testing/selftests/lib.mk | 3 ---
1 file changed, 3 deletions(-)
Comments
Hi Marcos,
kernel test robot noticed the following build errors:
[auto build test ERROR on 345e8abe4c355bc24bab3f4a5634122e55be8665]
url: https://github.com/intel-lab-lkp/linux/commits/Marcos-Paulo-de-Souza/selftests-lib-mk-Do-not-process-TEST_GEN_MODS_DIR/20240216-021601
base: 345e8abe4c355bc24bab3f4a5634122e55be8665
patch link: https://lore.kernel.org/r/20240215-lp-selftests-fixes-v1-1-89f4a6f5cddc%40suse.com
patch subject: [PATCH 1/3] selftests: lib.mk: Do not process TEST_GEN_MODS_DIR
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240219/202402191417.XULH88Ct-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202402191417.XULH88Ct-lkp@intel.com/
All errors (new ones prefixed by >>):
>> make[3]: *** /lib/modules/5.9.0-2-amd64/build: No such file or directory. Stop.
On Mon, 19 Feb 2024 14:35:16 +0800 kernel test robot <lkp@intel.com> wrote: > Hi Marcos, > > kernel test robot noticed the following build errors: > > [auto build test ERROR on 345e8abe4c355bc24bab3f4a5634122e55be8665] > > url: https://github.com/intel-lab-lkp/linux/commits/Marcos-Paulo-de-Souza/selftests-lib-mk-Do-not-process-TEST_GEN_MODS_DIR/20240216-021601 > base: 345e8abe4c355bc24bab3f4a5634122e55be8665 > patch link: https://lore.kernel.org/r/20240215-lp-selftests-fixes-v1-1-89f4a6f5cddc%40suse.com > patch subject: [PATCH 1/3] selftests: lib.mk: Do not process TEST_GEN_MODS_DIR > compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240219/202402191417.XULH88Ct-lkp@intel.com/reproduce) > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > the same patch/commit), kindly add following tags > | Reported-by: kernel test robot <lkp@intel.com> > | Closes: https://lore.kernel.org/oe-kbuild-all/202402191417.XULH88Ct-lkp@intel.com/ > > All errors (new ones prefixed by >>): > > >> make[3]: *** /lib/modules/5.9.0-2-amd64/build: No such file or directory. Stop. We should ask the kernel test robot machine owners to install kernel-devel package in order to have this fixed. > > -- > 0-DAY CI Kernel Test Service > https://github.com/intel/lkp-tests/wiki
On Mon, 19 Feb 2024 09:15:15 -0300 Marcos Paulo de Souza <mpdesouza@suse.com> wrote: > On Mon, 19 Feb 2024 14:35:16 +0800 kernel test robot <lkp@intel.com> wrote: > > > Hi Marcos, > > > > kernel test robot noticed the following build errors: > > > > [auto build test ERROR on 345e8abe4c355bc24bab3f4a5634122e55be8665] > > > > url: https://github.com/intel-lab-lkp/linux/commits/Marcos-Paulo-de-Souza/selftests-lib-mk-Do-not-process-TEST_GEN_MODS_DIR/20240216-021601 > > base: 345e8abe4c355bc24bab3f4a5634122e55be8665 > > patch link: https://lore.kernel.org/r/20240215-lp-selftests-fixes-v1-1-89f4a6f5cddc%40suse.com > > patch subject: [PATCH 1/3] selftests: lib.mk: Do not process TEST_GEN_MODS_DIR > > compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 > > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240219/202402191417.XULH88Ct-lkp@intel.com/reproduce) > > > > If you fix the issue in a separate patch/commit (i.e. not just a new version of > > the same patch/commit), kindly add following tags > > | Reported-by: kernel test robot <lkp@intel.com> > > | Closes: https://lore.kernel.org/oe-kbuild-all/202402191417.XULH88Ct-lkp@intel.com/ > > > > All errors (new ones prefixed by >>): > > > > >> make[3]: *** /lib/modules/5.9.0-2-amd64/build: No such file or directory. Stop. > > We should ask the kernel test robot machine owners to install kernel-devel > package in order to have this fixed. Or maybe ask them to change the reproducer to specify KDIR to the git tree, instead of /lib/modules/? > > > > > -- > > 0-DAY CI Kernel Test Service > > https://github.com/intel/lkp-tests/wiki
On 2/19/24 06:53, Marcos Paulo de Souza wrote: > On Mon, 19 Feb 2024 09:15:15 -0300 Marcos Paulo de Souza <mpdesouza@suse.com> wrote: > >> On Mon, 19 Feb 2024 14:35:16 +0800 kernel test robot <lkp@intel.com> wrote: >> >>> Hi Marcos, >>> >>> kernel test robot noticed the following build errors: >>> >>> [auto build test ERROR on 345e8abe4c355bc24bab3f4a5634122e55be8665] >>> >>> url: https://github.com/intel-lab-lkp/linux/commits/Marcos-Paulo-de-Souza/selftests-lib-mk-Do-not-process-TEST_GEN_MODS_DIR/20240216-021601 >>> base: 345e8abe4c355bc24bab3f4a5634122e55be8665 >>> patch link: https://lore.kernel.org/r/20240215-lp-selftests-fixes-v1-1-89f4a6f5cddc%40suse.com >>> patch subject: [PATCH 1/3] selftests: lib.mk: Do not process TEST_GEN_MODS_DIR >>> compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 >>> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240219/202402191417.XULH88Ct-lkp@intel.com/reproduce) >>> >>> If you fix the issue in a separate patch/commit (i.e. not just a new version of >>> the same patch/commit), kindly add following tags >>> | Reported-by: kernel test robot <lkp@intel.com> >>> | Closes: https://lore.kernel.org/oe-kbuild-all/202402191417.XULH88Ct-lkp@intel.com/ >>> >>> All errors (new ones prefixed by >>): >>> >>>>> make[3]: *** /lib/modules/5.9.0-2-amd64/build: No such file or directory. Stop. >> >> We should ask the kernel test robot machine owners to install kernel-devel >> package in order to have this fixed. > > Or maybe ask them to change the reproducer to specify KDIR to the git tree, > instead of /lib/modules/? > This would be a regression to automated test rings. Do you have any other solutions? We could remove livepatch from default test until these changes are made to test ring environments? thanks, -- Shuah
On Tue, 20 Feb 2024 17:19:54 -0700 Shuah Khan <skhan@linuxfoundation.org> wrote: > On 2/19/24 06:53, Marcos Paulo de Souza wrote: > > On Mon, 19 Feb 2024 09:15:15 -0300 Marcos Paulo de Souza <mpdesouza@suse.com> wrote: > > > >> On Mon, 19 Feb 2024 14:35:16 +0800 kernel test robot <lkp@intel.com> wrote: > >> > >>> Hi Marcos, > >>> > >>> kernel test robot noticed the following build errors: > >>> > >>> [auto build test ERROR on 345e8abe4c355bc24bab3f4a5634122e55be8665] > >>> > >>> url: https://github.com/intel-lab-lkp/linux/commits/Marcos-Paulo-de-Souza/selftests-lib-mk-Do-not-process-TEST_GEN_MODS_DIR/20240216-021601 > >>> base: 345e8abe4c355bc24bab3f4a5634122e55be8665 > >>> patch link: https://lore.kernel.org/r/20240215-lp-selftests-fixes-v1-1-89f4a6f5cddc%40suse.com > >>> patch subject: [PATCH 1/3] selftests: lib.mk: Do not process TEST_GEN_MODS_DIR > >>> compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 > >>> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240219/202402191417.XULH88Ct-lkp@intel.com/reproduce) > >>> > >>> If you fix the issue in a separate patch/commit (i.e. not just a new version of > >>> the same patch/commit), kindly add following tags > >>> | Reported-by: kernel test robot <lkp@intel.com> > >>> | Closes: https://lore.kernel.org/oe-kbuild-all/202402191417.XULH88Ct-lkp@intel.com/ > >>> > >>> All errors (new ones prefixed by >>): > >>> > >>>>> make[3]: *** /lib/modules/5.9.0-2-amd64/build: No such file or directory. Stop. > >> > >> We should ask the kernel test robot machine owners to install kernel-devel > >> package in order to have this fixed. > > > > Or maybe ask them to change the reproducer to specify KDIR to the git tree, > > instead of /lib/modules/? > > > > This would be a regression to automated test rings. Do you have any other > solutions? I would say that we could skip the these tests if kernel-devel package is not installed. Would it be acceptable? At least we would avoid such issues like this in the future as well. > > We could remove livepatch from default test until these changes are made > to test ring environments? > > thanks, > -- Shuah
On 2/21/24 05:26, Marcos Paulo de Souza wrote: > On Tue, 20 Feb 2024 17:19:54 -0700 Shuah Khan <skhan@linuxfoundation.org> wrote: > >> On 2/19/24 06:53, Marcos Paulo de Souza wrote: >>> On Mon, 19 Feb 2024 09:15:15 -0300 Marcos Paulo de Souza <mpdesouza@suse.com> wrote: >>> >>>> On Mon, 19 Feb 2024 14:35:16 +0800 kernel test robot <lkp@intel.com> wrote: >>>> >>>>> Hi Marcos, >>>>> >>>>> kernel test robot noticed the following build errors: >>>>> >>>>> [auto build test ERROR on 345e8abe4c355bc24bab3f4a5634122e55be8665] >>>>> >>>>> url: https://github.com/intel-lab-lkp/linux/commits/Marcos-Paulo-de-Souza/selftests-lib-mk-Do-not-process-TEST_GEN_MODS_DIR/20240216-021601 >>>>> base: 345e8abe4c355bc24bab3f4a5634122e55be8665 >>>>> patch link: https://lore.kernel.org/r/20240215-lp-selftests-fixes-v1-1-89f4a6f5cddc%40suse.com >>>>> patch subject: [PATCH 1/3] selftests: lib.mk: Do not process TEST_GEN_MODS_DIR >>>>> compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 >>>>> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240219/202402191417.XULH88Ct-lkp@intel.com/reproduce) >>>>> >>>>> If you fix the issue in a separate patch/commit (i.e. not just a new version of >>>>> the same patch/commit), kindly add following tags >>>>> | Reported-by: kernel test robot <lkp@intel.com> >>>>> | Closes: https://lore.kernel.org/oe-kbuild-all/202402191417.XULH88Ct-lkp@intel.com/ >>>>> >>>>> All errors (new ones prefixed by >>): >>>>> >>>>>>> make[3]: *** /lib/modules/5.9.0-2-amd64/build: No such file or directory. Stop. >>>> >>>> We should ask the kernel test robot machine owners to install kernel-devel >>>> package in order to have this fixed. >>> >>> Or maybe ask them to change the reproducer to specify KDIR to the git tree, >>> instead of /lib/modules/? >>> >> >> This would be a regression to automated test rings. Do you have any other >> solutions? > > I would say that we could skip the these tests if kernel-devel package is not > installed. Would it be acceptable? At least we would avoid such issues like this > in the future as well. > We have to check and skip build. Something we could do in the livepatch Makefile. Can you send patch for this - I will oull this in for next so we don't break test rings. thanks, -- Shuah
On Wed, 21 Feb 2024 14:12:00 -0700 Shuah Khan <skhan@linuxfoundation.org> wrote: > On 2/21/24 05:26, Marcos Paulo de Souza wrote: > > On Tue, 20 Feb 2024 17:19:54 -0700 Shuah Khan <skhan@linuxfoundation.org> wrote: > > > >> On 2/19/24 06:53, Marcos Paulo de Souza wrote: > >>> On Mon, 19 Feb 2024 09:15:15 -0300 Marcos Paulo de Souza <mpdesouza@suse.com> wrote: > >>> > >>>> On Mon, 19 Feb 2024 14:35:16 +0800 kernel test robot <lkp@intel.com> wrote: > >>>> > >>>>> Hi Marcos, > >>>>> > >>>>> kernel test robot noticed the following build errors: > >>>>> > >>>>> [auto build test ERROR on 345e8abe4c355bc24bab3f4a5634122e55be8665] > >>>>> > >>>>> url: https://github.com/intel-lab-lkp/linux/commits/Marcos-Paulo-de-Souza/selftests-lib-mk-Do-not-process-TEST_GEN_MODS_DIR/20240216-021601 > >>>>> base: 345e8abe4c355bc24bab3f4a5634122e55be8665 > >>>>> patch link: https://lore.kernel.org/r/20240215-lp-selftests-fixes-v1-1-89f4a6f5cddc%40suse.com > >>>>> patch subject: [PATCH 1/3] selftests: lib.mk: Do not process TEST_GEN_MODS_DIR > >>>>> compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 > >>>>> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240219/202402191417.XULH88Ct-lkp@intel.com/reproduce) > >>>>> > >>>>> If you fix the issue in a separate patch/commit (i.e. not just a new version of > >>>>> the same patch/commit), kindly add following tags > >>>>> | Reported-by: kernel test robot <lkp@intel.com> > >>>>> | Closes: https://lore.kernel.org/oe-kbuild-all/202402191417.XULH88Ct-lkp@intel.com/ > >>>>> > >>>>> All errors (new ones prefixed by >>): > >>>>> > >>>>>>> make[3]: *** /lib/modules/5.9.0-2-amd64/build: No such file or directory. Stop. > >>>> > >>>> We should ask the kernel test robot machine owners to install kernel-devel > >>>> package in order to have this fixed. > >>> > >>> Or maybe ask them to change the reproducer to specify KDIR to the git tree, > >>> instead of /lib/modules/? > >>> > >> > >> This would be a regression to automated test rings. Do you have any other > >> solutions? > > > > I would say that we could skip the these tests if kernel-devel package is not > > installed. Would it be acceptable? At least we would avoid such issues like this > > in the future as well. > > > > We have to check and skip build. Something we could do in the livepatch > Makefile. Can you send patch for this - I will oull this in for next > so we don't break test rings. I added a new patch in the same patchset that would cover this, skipping the build and test if kernel-devel is not installed. The patchset was sent earlier today. Please check if the new patch fixes things on the build robot. Thanks in advance, Marcos > > thanks, > -- Shuah
On Wed, Feb 21, 2024 at 07:04:03PM -0300, Marcos Paulo de Souza wrote: > On Wed, 21 Feb 2024 14:12:00 -0700 Shuah Khan <skhan@linuxfoundation.org> wrote: > > > On 2/21/24 05:26, Marcos Paulo de Souza wrote: > > > On Tue, 20 Feb 2024 17:19:54 -0700 Shuah Khan <skhan@linuxfoundation.org> wrote: > > > > > >> On 2/19/24 06:53, Marcos Paulo de Souza wrote: > > >>> On Mon, 19 Feb 2024 09:15:15 -0300 Marcos Paulo de Souza <mpdesouza@suse.com> wrote: > > >>> > > >>>> On Mon, 19 Feb 2024 14:35:16 +0800 kernel test robot <lkp@intel.com> wrote: > > >>>> > > >>>>> Hi Marcos, > > >>>>> > > >>>>> kernel test robot noticed the following build errors: > > >>>>> > > >>>>> [auto build test ERROR on 345e8abe4c355bc24bab3f4a5634122e55be8665] > > >>>>> > > >>>>> url: https://github.com/intel-lab-lkp/linux/commits/Marcos-Paulo-de-Souza/selftests-lib-mk-Do-not-process-TEST_GEN_MODS_DIR/20240216-021601 > > >>>>> base: 345e8abe4c355bc24bab3f4a5634122e55be8665 > > >>>>> patch link: https://lore.kernel.org/r/20240215-lp-selftests-fixes-v1-1-89f4a6f5cddc%40suse.com > > >>>>> patch subject: [PATCH 1/3] selftests: lib.mk: Do not process TEST_GEN_MODS_DIR > > >>>>> compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 > > >>>>> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240219/202402191417.XULH88Ct-lkp@intel.com/reproduce) > > >>>>> > > >>>>> If you fix the issue in a separate patch/commit (i.e. not just a new version of > > >>>>> the same patch/commit), kindly add following tags > > >>>>> | Reported-by: kernel test robot <lkp@intel.com> > > >>>>> | Closes: https://lore.kernel.org/oe-kbuild-all/202402191417.XULH88Ct-lkp@intel.com/ > > >>>>> > > >>>>> All errors (new ones prefixed by >>): > > >>>>> > > >>>>>>> make[3]: *** /lib/modules/5.9.0-2-amd64/build: No such file or directory. Stop. > > >>>> > > >>>> We should ask the kernel test robot machine owners to install kernel-devel > > >>>> package in order to have this fixed. > > >>> > > >>> Or maybe ask them to change the reproducer to specify KDIR to the git tree, > > >>> instead of /lib/modules/? > > >>> > > >> > > >> This would be a regression to automated test rings. Do you have any other > > >> solutions? > > > > > > I would say that we could skip the these tests if kernel-devel package is not > > > installed. Would it be acceptable? At least we would avoid such issues like this > > > in the future as well. > > > > > > > We have to check and skip build. Something we could do in the livepatch > > Makefile. Can you send patch for this - I will oull this in for next > > so we don't break test rings. > > I added a new patch in the same patchset that would cover this, skipping the > build and test if kernel-devel is not installed. The patchset was sent earlier > today. Please check if the new patch fixes things on the build robot. Hi Shuah, Hi Marcos, Sorry for this wrong report. The files are organized in a different way in the bot and cause this issue. We have fixed the bot to explicitly set KDIR to the correct path before building the selftests. The patch [1] can also work well in bot's environment. [1] https://lore.kernel.org/all/20240221-lp-selftests-fixes-v2-2-a19be1e029a7@suse.com/ Best Regards, Yujie
On Thu, 22 Feb 2024 09:28:19 +0800 Yujie Liu <yujie.liu@intel.com> wrote: > On Wed, Feb 21, 2024 at 07:04:03PM -0300, Marcos Paulo de Souza wrote: > > On Wed, 21 Feb 2024 14:12:00 -0700 Shuah Khan <skhan@linuxfoundation.org> wrote: > > > > > On 2/21/24 05:26, Marcos Paulo de Souza wrote: > > > > On Tue, 20 Feb 2024 17:19:54 -0700 Shuah Khan <skhan@linuxfoundation.org> wrote: > > > > > > > >> On 2/19/24 06:53, Marcos Paulo de Souza wrote: > > > >>> On Mon, 19 Feb 2024 09:15:15 -0300 Marcos Paulo de Souza <mpdesouza@suse.com> wrote: > > > >>> > > > >>>> On Mon, 19 Feb 2024 14:35:16 +0800 kernel test robot <lkp@intel.com> wrote: > > > >>>> > > > >>>>> Hi Marcos, > > > >>>>> > > > >>>>> kernel test robot noticed the following build errors: > > > >>>>> > > > >>>>> [auto build test ERROR on 345e8abe4c355bc24bab3f4a5634122e55be8665] > > > >>>>> > > > >>>>> url: https://github.com/intel-lab-lkp/linux/commits/Marcos-Paulo-de-Souza/selftests-lib-mk-Do-not-process-TEST_GEN_MODS_DIR/20240216-021601 > > > >>>>> base: 345e8abe4c355bc24bab3f4a5634122e55be8665 > > > >>>>> patch link: https://lore.kernel.org/r/20240215-lp-selftests-fixes-v1-1-89f4a6f5cddc%40suse.com > > > >>>>> patch subject: [PATCH 1/3] selftests: lib.mk: Do not process TEST_GEN_MODS_DIR > > > >>>>> compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 > > > >>>>> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240219/202402191417.XULH88Ct-lkp@intel.com/reproduce) > > > >>>>> > > > >>>>> If you fix the issue in a separate patch/commit (i.e. not just a new version of > > > >>>>> the same patch/commit), kindly add following tags > > > >>>>> | Reported-by: kernel test robot <lkp@intel.com> > > > >>>>> | Closes: https://lore.kernel.org/oe-kbuild-all/202402191417.XULH88Ct-lkp@intel.com/ > > > >>>>> > > > >>>>> All errors (new ones prefixed by >>): > > > >>>>> > > > >>>>>>> make[3]: *** /lib/modules/5.9.0-2-amd64/build: No such file or directory. Stop. > > > >>>> > > > >>>> We should ask the kernel test robot machine owners to install kernel-devel > > > >>>> package in order to have this fixed. > > > >>> > > > >>> Or maybe ask them to change the reproducer to specify KDIR to the git tree, > > > >>> instead of /lib/modules/? > > > >>> > > > >> > > > >> This would be a regression to automated test rings. Do you have any other > > > >> solutions? > > > > > > > > I would say that we could skip the these tests if kernel-devel package is not > > > > installed. Would it be acceptable? At least we would avoid such issues like this > > > > in the future as well. > > > > > > > > > > We have to check and skip build. Something we could do in the livepatch > > > Makefile. Can you send patch for this - I will oull this in for next > > > so we don't break test rings. > > > > I added a new patch in the same patchset that would cover this, skipping the > > build and test if kernel-devel is not installed. The patchset was sent earlier > > today. Please check if the new patch fixes things on the build robot. > > Hi Shuah, Hi Marcos, > > Sorry for this wrong report. The files are organized in a different way > in the bot and cause this issue. We have fixed the bot to explicitly > set KDIR to the correct path before building the selftests. The patch > [1] can also work well in bot's environment. > > [1] https://lore.kernel.org/all/20240221-lp-selftests-fixes-v2-2-a19be1e029a7@suse.com/ Hi Yujie, thanks for letting us know that the bot had different settings. Either way the patch you mentioned should help to reduce noise in the future on bot's that doesn't have kernel-devel installed. Again, thanks a lot for fixing the issue! Marcos > > Best Regards, > Yujie
On 2/21/24 15:04, Marcos Paulo de Souza wrote: > On Wed, 21 Feb 2024 14:12:00 -0700 Shuah Khan <skhan@linuxfoundation.org> wrote: > >> On 2/21/24 05:26, Marcos Paulo de Souza wrote: >>> On Tue, 20 Feb 2024 17:19:54 -0700 Shuah Khan <skhan@linuxfoundation.org> wrote: >>> >>>> On 2/19/24 06:53, Marcos Paulo de Souza wrote: >>>>> On Mon, 19 Feb 2024 09:15:15 -0300 Marcos Paulo de Souza <mpdesouza@suse.com> wrote: >>>>> >>>>>> On Mon, 19 Feb 2024 14:35:16 +0800 kernel test robot <lkp@intel.com> wrote: >>>>>> >>>>>>> Hi Marcos, >>>>>>> >>>>>>> kernel test robot noticed the following build errors: >>>>>>> >>>>>>> [auto build test ERROR on 345e8abe4c355bc24bab3f4a5634122e55be8665] >>>>>>> >>>>>>> url: https://github.com/intel-lab-lkp/linux/commits/Marcos-Paulo-de-Souza/selftests-lib-mk-Do-not-process-TEST_GEN_MODS_DIR/20240216-021601 >>>>>>> base: 345e8abe4c355bc24bab3f4a5634122e55be8665 >>>>>>> patch link: https://lore.kernel.org/r/20240215-lp-selftests-fixes-v1-1-89f4a6f5cddc%40suse.com >>>>>>> patch subject: [PATCH 1/3] selftests: lib.mk: Do not process TEST_GEN_MODS_DIR >>>>>>> compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 >>>>>>> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240219/202402191417.XULH88Ct-lkp@intel.com/reproduce) >>>>>>> >>>>>>> If you fix the issue in a separate patch/commit (i.e. not just a new version of >>>>>>> the same patch/commit), kindly add following tags >>>>>>> | Reported-by: kernel test robot <lkp@intel.com> >>>>>>> | Closes: https://lore.kernel.org/oe-kbuild-all/202402191417.XULH88Ct-lkp@intel.com/ >>>>>>> >>>>>>> All errors (new ones prefixed by >>): >>>>>>> >>>>>>>>> make[3]: *** /lib/modules/5.9.0-2-amd64/build: No such file or directory. Stop. >>>>>> >>>>>> We should ask the kernel test robot machine owners to install kernel-devel >>>>>> package in order to have this fixed. >>>>> >>>>> Or maybe ask them to change the reproducer to specify KDIR to the git tree, >>>>> instead of /lib/modules/? >>>>> >>>> >>>> This would be a regression to automated test rings. Do you have any other >>>> solutions? >>> >>> I would say that we could skip the these tests if kernel-devel package is not >>> installed. Would it be acceptable? At least we would avoid such issues like this >>> in the future as well. >>> >> >> We have to check and skip build. Something we could do in the livepatch >> Makefile. Can you send patch for this - I will oull this in for next >> so we don't break test rings. > > I added a new patch in the same patchset that would cover this, skipping the > build and test if kernel-devel is not installed. The patchset was sent earlier > today. Please check if the new patch fixes things on the build robot. > Did you send the patch to me so I can apply it on top of what I have in next? thanks, -- Shuah
On 2/21/24 19:04, Marcos Paulo de Souza wrote: > On Thu, 22 Feb 2024 09:28:19 +0800 Yujie Liu <yujie.liu@intel.com> wrote: > >> On Wed, Feb 21, 2024 at 07:04:03PM -0300, Marcos Paulo de Souza wrote: >>> On Wed, 21 Feb 2024 14:12:00 -0700 Shuah Khan <skhan@linuxfoundation.org> wrote: >>> >>>> On 2/21/24 05:26, Marcos Paulo de Souza wrote: >>>>> On Tue, 20 Feb 2024 17:19:54 -0700 Shuah Khan <skhan@linuxfoundation.org> wrote: >>>>> >>>>>> On 2/19/24 06:53, Marcos Paulo de Souza wrote: >>>>>>> On Mon, 19 Feb 2024 09:15:15 -0300 Marcos Paulo de Souza <mpdesouza@suse.com> wrote: >>>>>>> >>>>>>>> On Mon, 19 Feb 2024 14:35:16 +0800 kernel test robot <lkp@intel.com> wrote: >>>>>>>> >>>>>>>>> Hi Marcos, >>>>>>>>> >>>>>>>>> kernel test robot noticed the following build errors: >>>>>>>>> >>>>>>>>> [auto build test ERROR on 345e8abe4c355bc24bab3f4a5634122e55be8665] >>>>>>>>> >>>>>>>>> url: https://github.com/intel-lab-lkp/linux/commits/Marcos-Paulo-de-Souza/selftests-lib-mk-Do-not-process-TEST_GEN_MODS_DIR/20240216-021601 >>>>>>>>> base: 345e8abe4c355bc24bab3f4a5634122e55be8665 >>>>>>>>> patch link: https://lore.kernel.org/r/20240215-lp-selftests-fixes-v1-1-89f4a6f5cddc%40suse.com >>>>>>>>> patch subject: [PATCH 1/3] selftests: lib.mk: Do not process TEST_GEN_MODS_DIR >>>>>>>>> compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 >>>>>>>>> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240219/202402191417.XULH88Ct-lkp@intel.com/reproduce) >>>>>>>>> >>>>>>>>> If you fix the issue in a separate patch/commit (i.e. not just a new version of >>>>>>>>> the same patch/commit), kindly add following tags >>>>>>>>> | Reported-by: kernel test robot <lkp@intel.com> >>>>>>>>> | Closes: https://lore.kernel.org/oe-kbuild-all/202402191417.XULH88Ct-lkp@intel.com/ >>>>>>>>> >>>>>>>>> All errors (new ones prefixed by >>): >>>>>>>>> >>>>>>>>>>> make[3]: *** /lib/modules/5.9.0-2-amd64/build: No such file or directory. Stop. >>>>>>>> >>>>>>>> We should ask the kernel test robot machine owners to install kernel-devel >>>>>>>> package in order to have this fixed. >>>>>>> >>>>>>> Or maybe ask them to change the reproducer to specify KDIR to the git tree, >>>>>>> instead of /lib/modules/? >>>>>>> >>>>>> >>>>>> This would be a regression to automated test rings. Do you have any other >>>>>> solutions? >>>>> >>>>> I would say that we could skip the these tests if kernel-devel package is not >>>>> installed. Would it be acceptable? At least we would avoid such issues like this >>>>> in the future as well. >>>>> >>>> >>>> We have to check and skip build. Something we could do in the livepatch >>>> Makefile. Can you send patch for this - I will oull this in for next >>>> so we don't break test rings. >>> >>> I added a new patch in the same patchset that would cover this, skipping the >>> build and test if kernel-devel is not installed. The patchset was sent earlier >>> today. Please check if the new patch fixes things on the build robot. >> >> Hi Shuah, Hi Marcos, >> >> Sorry for this wrong report. The files are organized in a different way >> in the bot and cause this issue. We have fixed the bot to explicitly >> set KDIR to the correct path before building the selftests. The patch >> [1] can also work well in bot's environment. >> >> [1] https://lore.kernel.org/all/20240221-lp-selftests-fixes-v2-2-a19be1e029a7@suse.com/ > > Hi Yujie, thanks for letting us know that the bot had different settings. Either > way the patch you mentioned should help to reduce noise in the future on > bot's that doesn't have kernel-devel installed. > Marcos, If you send me the patch, I will apply it to linux-kselftest next. > Again, thanks a lot for fixing the issue! > Marcos > Thank you Yujie thanks, --- Shuah
On Fri, 23 Feb 2024 15:07:20 -0700 Shuah Khan <skhan@linuxfoundation.org> wrote: > On 2/21/24 15:04, Marcos Paulo de Souza wrote: > > On Wed, 21 Feb 2024 14:12:00 -0700 Shuah Khan <skhan@linuxfoundation.org> wrote: > > > >> On 2/21/24 05:26, Marcos Paulo de Souza wrote: > >>> On Tue, 20 Feb 2024 17:19:54 -0700 Shuah Khan <skhan@linuxfoundation.org> wrote: > >>> > >>>> On 2/19/24 06:53, Marcos Paulo de Souza wrote: > >>>>> On Mon, 19 Feb 2024 09:15:15 -0300 Marcos Paulo de Souza <mpdesouza@suse.com> wrote: > >>>>> > >>>>>> On Mon, 19 Feb 2024 14:35:16 +0800 kernel test robot <lkp@intel.com> wrote: > >>>>>> > >>>>>>> Hi Marcos, > >>>>>>> > >>>>>>> kernel test robot noticed the following build errors: > >>>>>>> > >>>>>>> [auto build test ERROR on 345e8abe4c355bc24bab3f4a5634122e55be8665] > >>>>>>> > >>>>>>> url: https://github.com/intel-lab-lkp/linux/commits/Marcos-Paulo-de-Souza/selftests-lib-mk-Do-not-process-TEST_GEN_MODS_DIR/20240216-021601 > >>>>>>> base: 345e8abe4c355bc24bab3f4a5634122e55be8665 > >>>>>>> patch link: https://lore.kernel.org/r/20240215-lp-selftests-fixes-v1-1-89f4a6f5cddc%40suse.com > >>>>>>> patch subject: [PATCH 1/3] selftests: lib.mk: Do not process TEST_GEN_MODS_DIR > >>>>>>> compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 > >>>>>>> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240219/202402191417.XULH88Ct-lkp@intel.com/reproduce) > >>>>>>> > >>>>>>> If you fix the issue in a separate patch/commit (i.e. not just a new version of > >>>>>>> the same patch/commit), kindly add following tags > >>>>>>> | Reported-by: kernel test robot <lkp@intel.com> > >>>>>>> | Closes: https://lore.kernel.org/oe-kbuild-all/202402191417.XULH88Ct-lkp@intel.com/ > >>>>>>> > >>>>>>> All errors (new ones prefixed by >>): > >>>>>>> > >>>>>>>>> make[3]: *** /lib/modules/5.9.0-2-amd64/build: No such file or directory. Stop. > >>>>>> > >>>>>> We should ask the kernel test robot machine owners to install kernel-devel > >>>>>> package in order to have this fixed. > >>>>> > >>>>> Or maybe ask them to change the reproducer to specify KDIR to the git tree, > >>>>> instead of /lib/modules/? > >>>>> > >>>> > >>>> This would be a regression to automated test rings. Do you have any other > >>>> solutions? > >>> > >>> I would say that we could skip the these tests if kernel-devel package is not > >>> installed. Would it be acceptable? At least we would avoid such issues like this > >>> in the future as well. > >>> > >> > >> We have to check and skip build. Something we could do in the livepatch > >> Makefile. Can you send patch for this - I will oull this in for next > >> so we don't break test rings. > > > > I added a new patch in the same patchset that would cover this, skipping the > > build and test if kernel-devel is not installed. The patchset was sent earlier > > today. Please check if the new patch fixes things on the build robot. > > > > Did you send the patch to me so I can apply it on top of what I have in next? Yes, I have sent the patchset. The message id is https://lore.kernel.org/linux-kselftest/20240221-lp-selftests-fixes-v2-0-a19be1e029a7@suse.com/T/#t BTW, you can skip the last patch, since it introduced a warning when running furex selftests. The rest is ok per Yujie. > > thanks, > -- Shuah
diff --git a/tools/testing/selftests/lib.mk b/tools/testing/selftests/lib.mk index 0d8b7db92715..286ce0ee102b 100644 --- a/tools/testing/selftests/lib.mk +++ b/tools/testing/selftests/lib.mk @@ -54,12 +54,9 @@ endif # TEST_PROGS are for test shell scripts. # TEST_CUSTOM_PROGS and TEST_PROGS will be run by common run_tests # and install targets. Common clean doesn't touch them. -# TEST_GEN_MODS_DIR is used to specify a directory with modules to be built -# before the test executes. These modules are cleaned on the clean target as well. TEST_GEN_PROGS := $(patsubst %,$(OUTPUT)/%,$(TEST_GEN_PROGS)) TEST_GEN_PROGS_EXTENDED := $(patsubst %,$(OUTPUT)/%,$(TEST_GEN_PROGS_EXTENDED)) TEST_GEN_FILES := $(patsubst %,$(OUTPUT)/%,$(TEST_GEN_FILES)) -TEST_GEN_MODS_DIR := $(patsubst %,$(OUTPUT)/%,$(TEST_GEN_MODS_DIR)) all: $(TEST_GEN_PROGS) $(TEST_GEN_PROGS_EXTENDED) $(TEST_GEN_FILES) \ $(if $(TEST_GEN_MODS_DIR),gen_mods_dir)