From patchwork Mon Mar 3 13:09:45 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Mayhew X-Patchwork-Id: 13998813 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.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 75D4F212FA6 for ; Mon, 3 Mar 2025 13:09:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741007397; cv=none; b=uOH6roiZNDfVA+76HRJZ4q2p9kBPzTfnuBFk+KDpBF1bt28JAIY0J57VW0I9O2cvvh4TkoswQStWG56fysj0i33zHdMzqu5Nc1n7kYZYZvcLtyocwdHZqt1LmMLqQEsZte9c/cPFDRnhNWsZrMWFuyd1c+fvKQ1ocFazY2UtdTM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741007397; c=relaxed/simple; bh=Nl77tN+j2QBoIlhuvP6xAzsOixyk7o/q5H5GBPD5j+E=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:content-type; b=dN25ZGSbk8pjwaj/kRSirHmlXL116rs95QaevYXytZ47l1930lyByywAIKnyBlgEdoLxx10tjm7Gi8bFMTn6/j0bMtUuyhWGH1g5YKGEBjBWyUTc/RAxMnE4tUwmrOgNpyAcrcDBBFFm/YwYuzHYGRQacTmgVBU+0nGfZjqHLco= 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=depUZ9uu; arc=none smtp.client-ip=170.10.133.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="depUZ9uu" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1741007394; 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=pj9MalmQDBX6vW2xuB8n5xyoB8y1D3b3bEYs4rnGdBo=; b=depUZ9uu0WC9UkcnE5tNkk5GTfjD5KgUDHVZpc+iedb6xox4dS9qEt+7Vl7n1JGYi31Kui BAhFa0CYCYIe1Ebj9mnfQvtwhuXrRyatLKOHclriCj5ro6iZSHsSyochgT0pRib+ccd/01 aJGOWwPs1h7F/NWEzVIxRRH1W8Cxm4g= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-2-z6c4pkkZNeS1cm4DX0rdUQ-1; Mon, 03 Mar 2025 08:09:53 -0500 X-MC-Unique: z6c4pkkZNeS1cm4DX0rdUQ-1 X-Mimecast-MFC-AGG-ID: z6c4pkkZNeS1cm4DX0rdUQ_1741007392 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-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 393E91944F06 for ; Mon, 3 Mar 2025 13:09:52 +0000 (UTC) Received: from aion.redhat.com (unknown [10.22.64.10]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 0E307180035F for ; Mon, 3 Mar 2025 13:09:52 +0000 (UTC) Received: from aion.redhat.com (localhost [IPv6:::1]) by aion.redhat.com (Postfix) with ESMTP id 09B2C336C28 for ; Mon, 03 Mar 2025 08:09:49 -0500 (EST) From: Scott Mayhew To: kdevops@lists.linux.dev Subject: [PATCH 6/9] pynfs: add makefile target to show test results Date: Mon, 3 Mar 2025 08:09:45 -0500 Message-ID: <20250303130948.630029-7-smayhew@redhat.com> In-Reply-To: <20250303130948.630029-1-smayhew@redhat.com> References: <20250303130948.630029-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: A-HZamEJ3CnbiamenSYr4IaaMKDlLZM_FcZ5Gxwx9nU_1741007392 X-Mimecast-Originator: redhat.com content-type: text/plain; charset="US-ASCII"; x-default=true Add 'pynfs-show-results' makefile target to show test results. Under the hood, it more or less just does 'find ... | xargs cat'. It shows the json results files for the most recent kernel run. You can show the results for a differnt kernel by overriding the LAST_KERNEL variable, e.g. $ LAST_KERNEL=6.13.4-300.fc41.x86_64 make pynfs-show-results Signed-off-by: Scott Mayhew --- workflows/pynfs/Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/workflows/pynfs/Makefile b/workflows/pynfs/Makefile index 75a4b6a..253a222 100644 --- a/workflows/pynfs/Makefile +++ b/workflows/pynfs/Makefile @@ -24,6 +24,10 @@ PYNFS_KERNEL_CI_LOOP := scripts/workflows/pynfs/run_kernel_ci.sh PYNFS_KERNEL_CI_LOOP_KOTD := scripts/workflows/pynfs/run_kernel_ci_kotd.sh endif # CONFIG_KERNEL_CI +ifndef LAST_KERNEL +LAST_KERNEL := $(shell cat workflows/pynfs/results/last-kernel.txt 2>/dev/null) +endif + # Makefile for pynfs targets pynfs: $(Q)ansible-playbook $(ANSIBLE_VERBOSE) -l baseline,dev \ @@ -63,6 +67,14 @@ pynfs-dev-reset: $(Q)ansible-playbook $(ANSIBLE_VERBOSE) \ -f 30 -i hosts -l dev playbooks/pynfs.yml --tags vars,reset --extra-vars=@./extra_vars.yaml +pynfs-show-results: +ifdef LAST_KERNEL + @find workflows/pynfs/results/$(LAST_KERNEL) -type f \ + | xargs -I {} bash -c 'echo "{}:"; cat {}; echo -e "\n";' +else + @echo "No results." +endif + pynfs-help-menu: @echo "pynfs options:" @echo "pynfs - Git clone pynfs, build and install it"