From mboxrd@z Thu Jan 1 00:00:00 1970 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 DD5DA7083F for ; Wed, 5 Mar 2025 00:58:01 +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=1741136283; cv=none; b=LKe+NeCnzyQrtaw2u1jmuY9NWrpQ99ucP23T+S0PWuc5GmDg7CuSacL7CkHXvrAo25iZcXlLqu7nuR7/A/JlYP3Pk+ReRQ7nFbnsjaqDf9tf1YdQXEMHDZa1rxuE3KZKuzWHOgYUq6a9huBAxsOMAquBIYdvV4DEYQQoGqGz5ss= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741136283; c=relaxed/simple; bh=rKrwlcZKPZ9Xpy0C85wsOnhEA5L2U8bBa0O6TU+BpmA=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:content-type; b=FKVyjx2wXVawswYuljnQH9DjqNGWULBePoYdpjF0rn/sYfGel5jCjbVbRMccjPmsGA5gul3IWi9MpHC2iHQosuci0Ontt7HS3CgyMEpmmH4EoayVSAdGRrrEcqGyBNrpejsK2p9kNiUOA3FgMhV/KjXir5ieb5ru+ZzDmSIzqb0= 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=KZqYQR9T; 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="KZqYQR9T" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1741136281; 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=Beo/xTuGg1amY0yznWhTC7kl86QwjkpgXVhD/9+ryWo=; b=KZqYQR9T64YlOBj0OK8/zlaMyZ1FGaux3MUm2w27LzPQHgjwEzTHr8cVct7lfPGcQS3MSO 5mB8RD1CpYkNYZUKWKvZQ8fw1e2YOHXyY4JHo4NeBxHJSOB2bB2WzWO3Fst3iHMjMenFqq 4YOpWI12dufyNszRibglLPY6/6Efock= Received: from mx-prod-mc-08.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-675-FCRPDrPuOXG-wNSk_Y99EA-1; Tue, 04 Mar 2025 19:57:59 -0500 X-MC-Unique: FCRPDrPuOXG-wNSk_Y99EA-1 X-Mimecast-MFC-AGG-ID: FCRPDrPuOXG-wNSk_Y99EA_1741136279 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (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-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id E34CA1801A13 for ; Wed, 5 Mar 2025 00:57:58 +0000 (UTC) Received: from aion.redhat.com (unknown [10.22.64.10]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id B2DF8180087D for ; Wed, 5 Mar 2025 00:57:58 +0000 (UTC) Received: from aion.redhat.com (localhost [IPv6:::1]) by aion.redhat.com (Postfix) with ESMTP id D1354337294 for ; Tue, 04 Mar 2025 19:57:55 -0500 (EST) From: Scott Mayhew To: kdevops@lists.linux.dev Subject: [PATCH 8/9] gitr: add makefile target to show test results Date: Tue, 4 Mar 2025 19:57:53 -0500 Message-ID: <20250305005755.697599-10-smayhew@redhat.com> In-Reply-To: <20250305005755.697599-1-smayhew@redhat.com> References: <20250305005755.697599-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.111 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: O5Z-D98iTy_nNzm9hL3P7mEOzjXdMCcQz9H2fKZXyhg_1741136279 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true Under the hood, it more or less just does 'find ... | xargs cat'. By default, the summary files will be shown 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-100.fc40.x86_64 make gitr-show-results You can change the files being shown by overriding the PATTERN variable. For example, to just see the rpc and xprt statisics: $ PATTERN="\( -name \"*.rpc\" -o -name \"*.xprt\" \)" make gitr-show-results Note that since the gitr 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 newer than the timestamp of 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 override that too if you get creative with the PATTERN variable). Signed-off-by: Scott Mayhew --- workflows/gitr/Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/workflows/gitr/Makefile b/workflows/gitr/Makefile index 5432f42..8d64767 100644 --- a/workflows/gitr/Makefile +++ b/workflows/gitr/Makefile @@ -70,6 +70,14 @@ GITR_KERNEL_CI_LOOP := scripts/workflows/gitr/run_kernel_ci.sh GITR_KERNEL_CI_LOOP_KOTD := scripts/workflows/gitr/run_kernel_ci_kotd.sh endif # CONFIG_KERNEL_CI +ifndef LAST_KERNEL +LAST_KERNEL := $(shell cat workflows/gitr/results/last-kernel.txt 2>/dev/null) +endif + +ifndef PATTERN +PATTERN := -name "*.summary" +endif + gitr: $(Q)ansible-playbook $(ANSIBLE_VERBOSE) -l baseline,dev \ -f 30 -i hosts playbooks/gitr.yml \ @@ -103,6 +111,19 @@ gitr-dev-reset: $(Q)ansible-playbook $(ANSIBLE_VERBOSE) \ -f 30 -i hosts -l dev playbooks/gitr.yml --tags vars,reset --extra-vars=@./extra_vars.yaml +gitr-show-results: +ifdef LAST_KERNEL +ifeq ($(LAST_KERNEL), $(shell cat workflows/gitr/results/last-kernel.txt 2>/dev/null)) + @find workflows/gitr/results/$(LAST_KERNEL) -type f $(PATTERN) -newer workflows/gitr/results/last-run \ + | xargs -I {} bash -c 'echo "{}:"; cat {}; echo;' +else + @find workflows/gitr/results/$(LAST_KERNEL) -type f $(PATTERN) \ + | xargs -I {} bash -c 'echo "{}:"; cat {}; echo;' +endif +else + @echo "No results." +endif + gitr-help-menu: @echo "gitr options:" @echo "gitr - Git clone git, build and install it" -- 2.48.1