From patchwork Wed Mar 12 21:42:30 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Mayhew X-Patchwork-Id: 14013945 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (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 D2EC41EC00C for ; Wed, 12 Mar 2025 21:43:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741815784; cv=none; b=B2MKeJcG7jj8dUPlQvCgaIvFRnGTmEIkKM1PFz+JHiGAJ4VTUKMPaNqTj3unM54ujAU82vH48YyM5g3lxvYDLHHz4ByHTkkHNosdS9VdqdJMLWmqCMNZA5+78ruAmkw6UotdR5G4WFh9/g/ZjyVzuyNREbtIKUCE5aWwRi43G+c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741815784; c=relaxed/simple; bh=eYxqfaORVLARfdmiFtzddyrra/HnfmHc3QanMkxF1j0=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:content-type; b=ay848mCDXMyXu0uahhp3koJ3FpgyX3AqKBXn9zq5IAE8SBynnR15t2oXRxPknRafPCQT5tOvP7lXOndbHRmjjbDxRZn00weHd72x4ibpcu/Mysuscv0gIBMEzq5YnpWHtaMXX+8pcmhrHIrmdeQuTy+sG5BhcSRV/H4OWGtGUR4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=gDdBMDL+; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="gDdBMDL+" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1741815781; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=hPl7lS/xp44op1soSvNqWkoR+Uv1iVNv+bX+E+kAfvE=; b=gDdBMDL+darO89yb250clvQQ7HPk2javKpsXeFjRd21R0771mzB3MCwnoQ3bTBMgcr7xh0 FbHkqQKf+oMEe2g6vy4UJ88wqvz299ZtEgaPPTgVTLKwL4IhmUtzyECuLGZzCQg/YtPHh9 1yN1l86x4J+gbzrAymM4MMaj6ThTXNg= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-661-18EWbvG-PT-3LvezM3I_Gw-1; Wed, 12 Mar 2025 17:42:36 -0400 X-MC-Unique: 18EWbvG-PT-3LvezM3I_Gw-1 X-Mimecast-MFC-AGG-ID: 18EWbvG-PT-3LvezM3I_Gw_1741815756 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 0B9A0180AF50 for ; Wed, 12 Mar 2025 21:42:36 +0000 (UTC) Received: from aion.redhat.com (unknown [10.22.80.106]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id D63691828A9F for ; Wed, 12 Mar 2025 21:42:35 +0000 (UTC) Received: from aion.redhat.com (localhost [IPv6:::1]) by aion.redhat.com (Postfix) with ESMTP id E9713338A14 for ; Wed, 12 Mar 2025 17:42:32 -0400 (EDT) From: Scott Mayhew To: kdevops@lists.linux.dev Subject: [PATCH v2 7/9] nfstest: add makefile target to show test results Date: Wed, 12 Mar 2025 17:42:30 -0400 Message-ID: <20250312214232.955450-8-smayhew@redhat.com> In-Reply-To: <20250312214232.955450-1-smayhew@redhat.com> References: <20250312214232.955450-1-smayhew@redhat.com> Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: D3x3m5sY2gI0TGjalfLxCEI68RzplwJY7z_GL-kM5jU_1741815756 X-Mimecast-Originator: redhat.com content-type: text/plain; charset="US-ASCII"; x-default=true Under the hood, it more or less just does 'find ... | xargs cat'. It shows the text results files for the most recent kernel run. You can show the results for a different kernel by overriding the LAST_KERNEL variable, e.g. $ LAST_KERNEL=6.13.4-300.fc41.x86_64 make nfstest-show-results Note that since the nfstest log files have a date and timestamp in the filename, it's possible to accumulate logs from multiple test runs. If you're showing the results from the most recent kernel, then we'll only show the logs from the most recent run (i.e. logs that are in the last-run directory). But if you're showing the results from an older kernel, then we'll show all the logs in that directory (but you can change that by overriding the PATTERN variable). Signed-off-by: Scott Mayhew --- workflows/nfstest/Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/workflows/nfstest/Makefile b/workflows/nfstest/Makefile index 638ec1f..7cac039 100644 --- a/workflows/nfstest/Makefile +++ b/workflows/nfstest/Makefile @@ -53,6 +53,24 @@ NFSTEST_KERNEL_CI_LOOP := scripts/workflows/nfstest/run_kernel_ci.sh NFSTEST_KERNEL_CI_LOOP_KOTD := scripts/workflows/nfstest/run_kernel_ci_kotd.sh endif # CONFIG_KERNEL_CI +ifndef LAST_KERNEL +LAST_KERNEL := $(shell cat workflows/nfstest/results/last-kernel.txt 2>/dev/null) +endif + +ifeq ($(LAST_KERNEL), $(shell cat workflows/nfstest/results/last-kernel.txt 2>/dev/null)) +FIND_PATH := workflows/nfstest/results/last-run +else +FIND_PATH := workflows/nfstest/results/$(LAST_KERNEL) +endif + +ifndef PATTERN +PATTERN := -name "*.log" +endif + +ifndef XARGS_ARGS +XARGS_ARGS := -I {} bash -c 'echo "{}:"; cat {}; echo;' +endif + nfstest: $(Q)ansible-playbook $(ANSIBLE_VERBOSE) -l baseline,dev \ -f 30 -i hosts playbooks/nfstest.yml \ @@ -88,6 +106,11 @@ nfstest-dev-reset: --tags vars,reset \ --extra-vars=@./extra_vars.yaml +nfstest-show-results: + @find $(FIND_PATH) -type f $(PATTERN) \ + | xargs $(XARGS_ARGS) \ + | sed '$${/^$$/d;}' + nfstest-help-menu: @echo "nfstest options:" @echo "nfstest - Git clone nfstest and install it"