From patchwork Mon Mar 3 13:09:40 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Mayhew X-Patchwork-Id: 13998819 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 83B79211A0E for ; Mon, 3 Mar 2025 13:10:07 +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=1741007409; cv=none; b=TNNyfb16HvaRP16UezgLZRJI+fBVr3Dj6nEtfrUYNErEy0a8FDWzLApVkOg8YUv4hDPdNSEODZBPdIyMf2Mx2SCKIFHhR/RF2kSDY+IwP2IFMS/M9iEL2MikMld9+SetSDY/vUaFwi9gyKt4UT7QxTZtvgfzmjJfvviQfSgGqGI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741007409; c=relaxed/simple; bh=4udskiICFcXZ1g52AXiOome0ObFjF0JO1m4J4ZNOfrc=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:content-type; b=HXmxiKoo00vWsgHyIaxqJQBn2zaYlKVtGtmXVwrZHBVZsX/IBjXfgDCoPuRp1FcVIOYa6MfHvN5IrEqle2VeOofqQHgyYi7p21GnQWjWIuJZUsgmYrB3+JjVaXTTqKZYLxOWcMpX3RqPk3u3tIm1KRRwVCk4dPogveHiCRkJKC8= 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=DVInWfzY; 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="DVInWfzY" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1741007406; 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=nCynllGFVtbTzIbnIvq33PHTmI5fgQEQ8s6pSjd7uII=; b=DVInWfzYWrVShBD9aEvM04hwlG+dW6jjfFeu6tRZbg+9hJhxqour658ZrjZfxFvuN5R1lm RlOImxQvTejGyFzdHwU+7wIlqakv+P/w84jPoODF65LcD3/K70ck2p0iK7VZKxx0lb8/6E w4be+hXbL65Z5vP0e2Yt8Trb1nlrGtk= Received: from mx-prod-mc-02.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-169-VeK6Kea-PnWk3L3uPcX98A-1; Mon, 03 Mar 2025 08:09:51 -0500 X-MC-Unique: VeK6Kea-PnWk3L3uPcX98A-1 X-Mimecast-MFC-AGG-ID: VeK6Kea-PnWk3L3uPcX98A_1741007390 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-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id A1BC118EB2C3 for ; Mon, 3 Mar 2025 13:09:50 +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 767451800362 for ; Mon, 3 Mar 2025 13:09:50 +0000 (UTC) Received: from aion.redhat.com (localhost [IPv6:::1]) by aion.redhat.com (Postfix) with ESMTP id C1F28336C22 for ; Mon, 03 Mar 2025 08:09:48 -0500 (EST) From: Scott Mayhew To: kdevops@lists.linux.dev Subject: [PATCH 1/9] pynfs: add last-run directory and last-kernel.txt to the results Date: Mon, 3 Mar 2025 08:09:40 -0500 Message-ID: <20250303130948.630029-2-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: c7RhQ4df_YGsO3ocb7Fu_78pWwh4k05DVuv7qVsvp_c_1741007390 X-Mimecast-Originator: redhat.com content-type: text/plain; charset="US-ASCII"; x-default=true Create the last-run directory and last-kernel.txt file in a manner similar to the way the fstests workflow does it. This will make it easier to get at the most recent test results for reporting purposes. Signed-off-by: Scott Mayhew --- playbooks/roles/pynfs/tasks/main.yml | 38 ++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/playbooks/roles/pynfs/tasks/main.yml b/playbooks/roles/pynfs/tasks/main.yml index c6add8e..882dd1c 100644 --- a/playbooks/roles/pynfs/tasks/main.yml +++ b/playbooks/roles/pynfs/tasks/main.yml @@ -12,6 +12,8 @@ - name: Set the path where we collect our local pynfs results set_fact: pynfs_workflow_dir: "../workflows/pynfs" + pynfs_results_full_path: "{{ topdir_path }}/workflows/pynfs/results" + pynfs_results_target: "../workflows/pynfs/results/last-run/" tags: [ 'vars' ] - name: Clean up our localhost results directory and files @@ -127,6 +129,16 @@ delay: 1 until: result.rc == 0 +- name: Clean up our localhost results/last-run directory + local_action: file path="{{ pynfs_results_target }}/" state=absent + run_once: true + tags: [ 'run_tests', 'copy_results', 'clean_local_results' ] + +- name: Create empty last-run directory + local_action: file path="{{ pynfs_results_target }}/" state=directory + run_once: true + tags: [ 'run_tests', 'copy_results', 'clean_local_results' ] + - name: Run pynfs tags: [ 'run_tests' ] script: "{{ pynfs_workflow_dir }}/scripts/run_pynfs.sh" @@ -156,6 +168,11 @@ kernel_rev: "{{ uname_cmd.stdout_lines | regex_replace('\\]') | regex_replace('\\[') | replace(\"'\",'') }}" run_once: true +- name: Document used target kernel version + local_action: "shell echo {{ kernel_rev }} > {{ pynfs_results_target }}/../last-kernel.txt" + tags: [ 'run_tests', 'copy_results', 'print_results' ] + run_once: true + - name: Copy the version-specific results to the control node tags: [ 'copy_results' ] become: yes @@ -163,7 +180,7 @@ become_method: sudo fetch: src: "{{ pynfs_data }}/pynfs-{{ item }}-results.json" - dest: "{{ pynfs_workflow_dir }}/results/{{ kernel_rev }}-v{{ item }}.json" + dest: "{{ pynfs_results_full_path }}/last-run/{{ kernel_rev}}/{{ kernel_rev }}-v{{ item }}.json" flat: yes with_items: - 4.0 @@ -176,9 +193,26 @@ become_method: ansible.builtin.sudo fetch: src: "{{ pynfs_data }}/pynfs-{{ item }}-results.json" - dest: "{{ pynfs_workflow_dir }}/results/{{ kernel_rev }}-v{{ item }}.json" + dest: "{{ pynfs_results_full_path }}/last-run/{{ kernel_rev}}/{{ kernel_rev }}-v{{ item }}.json" flat: true with_items: - block when: - pynfs_pnfs_block|bool + +- name: Verify last-run kernel directory exists + tags: [ 'copy_results' ] + delegate_to: localhost + stat: + path: "{{ pynfs_results_full_path }}/last-run/{{ kernel_rev }}" + register: last_run_kernel_dir + +- name: Copy over the last-run into the results directory for archiving into kdevops + copy: + src: "{{ pynfs_results_full_path }}/last-run/{{ kernel_rev }}" + dest: "{{ pynfs_results_full_path }}/" + run_once: true + tags: [ 'copy_results' ] + delegate_to: localhost + when: + - last_run_kernel_dir.stat.exists From patchwork Mon Mar 3 13:09:41 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Mayhew X-Patchwork-Id: 13998812 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 D84C7212F82 for ; Mon, 3 Mar 2025 13:09:53 +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=1741007396; cv=none; b=J4RBHTK08Vy5XP+hAQ2Wi7GoRX//O+fQl/MIh9AqsJZaztYlLQR7h8QcHPOmMvQ2yFqsooI30glMFdpwY2ZTbk/8T2e4r02FqxdFvk9phj7r0ZmX+mEILGh+wk1eClE3m0wZPGsW/3ZwwDAZx7pq/OV2fqE5dvfFYNbE1Rh9Yy4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741007396; c=relaxed/simple; bh=Np93AYx1IBzjOs2+ShMtVneEcDZgsXJEpouk6UQYrRg=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:content-type; b=j+Nn7Sw5of/E4QxZ/0/ILy/7OaBukVHq54+CJf4tlKTyRRKadnCKdXYtpCp0aGtrqc+R9AElgjt4Mr7wMvhwOLFhjbVI/U5bbor6p6Wj9cZt/xC2K7lTDZkaEsyplVLQdCFtnRfG4aLOzCsKHot0uc3fXFCvISfQ4aQk6oUc65s= 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=b9xE+JeP; 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="b9xE+JeP" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1741007392; 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=br3++1S8R5qJzaQ1J4gH/qENu3cT9CmFUHZ51Pl7GJE=; b=b9xE+JePB4U9kIVPKE6a1mjocrMKlQ0IGOuCpagnWbpUysNjSClBA/+M/gIc2FJVukNa9+ 0CtuvA0nbEEL7nZiS1Fi3nTPJt2bPFVu9CWML0xURzVuBJDhSAxhVjMAFpUz9/I6qMmiIK pR3GVwoqIW7CFkme+rg2Ul6dT9ICMuI= Received: from mx-prod-mc-02.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-462-IbBy7tFxNy6fNoIQsX_nag-1; Mon, 03 Mar 2025 08:09:51 -0500 X-MC-Unique: IbBy7tFxNy6fNoIQsX_nag-1 X-Mimecast-MFC-AGG-ID: IbBy7tFxNy6fNoIQsX_nag_1741007390 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (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-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id AE08718EB2C9 for ; Mon, 3 Mar 2025 13:09:50 +0000 (UTC) Received: from aion.redhat.com (unknown [10.22.64.10]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 7F7F2300019F for ; Mon, 3 Mar 2025 13:09:50 +0000 (UTC) Received: from aion.redhat.com (localhost [IPv6:::1]) by aion.redhat.com (Postfix) with ESMTP id CE0AA336C23 for ; Mon, 03 Mar 2025 08:09:48 -0500 (EST) From: Scott Mayhew To: kdevops@lists.linux.dev Subject: [PATCH 2/9] nfstest: add last-run directory and last-kernel.txt to the results Date: Mon, 3 Mar 2025 08:09:41 -0500 Message-ID: <20250303130948.630029-3-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.4 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: hkKX2LwaHOKQ-8soyqtKvM6gpwgSop0eKyM0DRcKIiw_1741007390 X-Mimecast-Originator: redhat.com content-type: text/plain; charset="US-ASCII"; x-default=true Create the last-run directory and last-kernel.txt file in a manner similar to the way the fstests workflow does it. This will make it easier to get at the most recent test results for reporting purposes. Signed-off-by: Scott Mayhew --- playbooks/roles/nfstest/tasks/main.yml | 60 ++++++++++++++++++++++---- 1 file changed, 52 insertions(+), 8 deletions(-) diff --git a/playbooks/roles/nfstest/tasks/main.yml b/playbooks/roles/nfstest/tasks/main.yml index 8c8db02..bf5cd9f 100644 --- a/playbooks/roles/nfstest/tasks/main.yml +++ b/playbooks/roles/nfstest/tasks/main.yml @@ -131,6 +131,24 @@ tags: - run_tests +- name: Set the pathname of the results directory + ansible.builtin.set_fact: + nfstest_results_full_path: "{{ topdir_path }}/workflows/nfstest/results" + nfstest_results_target: "../workflows/nfstest/results/last-run" + when: + - kdevops_workflows_dedicated_workflow|bool + tags: copy_results + +- name: Clean up our localhost results/last-run directory + local_action: file path="{{ nfstest_results_target }}/" state=absent + run_once: true + tags: [ 'run_tests', 'copy_results', 'clean_local_results' ] + +- name: Create empty last-run directory + local_action: file path="{{ nfstest_results_target }}/" state=directory + run_once: true + tags: [ 'run_tests', 'copy_results', 'clean_local_results' ] + - name: Run the test group script on the target node ansible.builtin.command: cmd: "/tmp/runtest.sh" @@ -138,16 +156,25 @@ - kdevops_workflows_dedicated_workflow|bool tags: run_tests -- name: Set the pathname of the results directory - ansible.builtin.set_fact: - nfstest_results_dir: "../workflows/nfstest/results/{{ ansible_kernel }}" - when: - - kdevops_workflows_dedicated_workflow|bool - tags: copy_results +- name: Get used target kernel version + tags: [ 'copy_results' ] + command: "uname -r" + register: uname_cmd + +- name: Store last kernel variable + tags: [ 'copy_results' ] + set_fact: + last_kernel: "{{ uname_cmd.stdout_lines | regex_replace('\\]') | regex_replace('\\[') | replace(\"'\",'') }}" + run_once: true + +- name: Document used target kernel version + local_action: "shell echo {{ last_kernel }} > {{ nfstest_results_target }}/../last-kernel.txt" + tags: [ 'run_tests', 'copy_results', 'print_results' ] + run_once: true - name: Create the results directory on the control node ansible.builtin.file: - path: "{{ nfstest_results_dir }}" + path: "{{ nfstest_results_full_path }}/last-run/{{ last_kernel }}" state: directory mode: "u=rwx,g=rx,o=rx" delegate_to: localhost @@ -168,7 +195,7 @@ - name: Copy the output logs to the control node ansible.builtin.fetch: src: "{{ item.path }}" - dest: "{{ nfstest_results_dir }}/{{ nfstest_test_group }}/" + dest: "{{ nfstest_results_full_path }}/last-run/{{ last_kernel }}/{{ nfstest_test_group }}/" flat: true with_items: "{{ nfstest_logs.files }}" loop_control: @@ -178,3 +205,20 @@ - kdevops_workflows_dedicated_workflow|bool changed_when: false tags: copy_results + +- name: Verify last-run kernel directory exists + tags: [ 'copy_results' ] + delegate_to: localhost + stat: + path: "{{ nfstest_results_full_path }}/last-run/{{ last_kernel }}" + register: last_run_kernel_dir + +- name: Copy over the last-run into the results directory for archiving into kdevops + copy: + src: "{{ nfstest_results_full_path }}/last-run/{{ last_kernel }}" + dest: "{{ nfstest_results_full_path }}/" + run_once: true + tags: [ 'copy_results' ] + delegate_to: localhost + when: + - last_run_kernel_dir.stat.exists From patchwork Mon Mar 3 13:09:42 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Mayhew X-Patchwork-Id: 13998811 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 D841221128D for ; Mon, 3 Mar 2025 13:09:53 +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=1741007395; cv=none; b=V1lAaS8cqNsfYyAThNhp/KO9Fy3cKelQtiz4Nhs3hy2ExDnzqdzx7tbbcqLbHkHiuaXWtoPPfoSD5mDxnz6RAgPC/P6TuNzSZ3K28Nifc+V3gc1S+JlO5D/czxltPiZkOgAl4yI7aMzb7V8Z4wKGyjg+/poIZmxnV2FVZGfpRB0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741007395; c=relaxed/simple; bh=vEHWO5hpHEqVzurU3NnX5AJG69fbEOlOOgTSngzMEMg=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:content-type; b=dbuAfvB7W55ibaDsIwYauIPpX8BdzX2NGp+L0o6LrJs4Pswq19H8zwxd2QMtLJc6t20Zq05y47oDGz5FKXb6uycJyXIeC889tpjmggR9DwKXmdXWfJyMoV/nE/P3deohGY7j9t1LQCfNTi7dje/BRhC/Na7x4g2iv+nuSh6rHlE= 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=eBzFUBnb; 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="eBzFUBnb" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1741007392; 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=3S0hdtmwe1LIrZXsM+oVYlfiYp3NsVMkM3D0s/kmxOU=; b=eBzFUBnbpMH8p9TKHU1VYphGNpRi2Ub0hX/xLOW4MaYJvmpBOFBNDPHAaZu608WfecyQAn DNVX4RnLQZEQEDrCxaSSwTUMfbQkryjwvdTTAcN9PIOUs1mibSWQBzYQd+wTYw07NHD5kH HApNypYSyWmqfWn8sF+vajK9eYljC2M= 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-578-MD0KcsATM2uaiFh8nfKy6w-1; Mon, 03 Mar 2025 08:09:51 -0500 X-MC-Unique: MD0KcsATM2uaiFh8nfKy6w-1 X-Mimecast-MFC-AGG-ID: MD0KcsATM2uaiFh8nfKy6w_1741007390 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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 C7466180099D for ; Mon, 3 Mar 2025 13:09:50 +0000 (UTC) Received: from aion.redhat.com (unknown [10.22.64.10]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 7499E1956048 for ; Mon, 3 Mar 2025 13:09:50 +0000 (UTC) Received: from aion.redhat.com (localhost [IPv6:::1]) by aion.redhat.com (Postfix) with ESMTP id DA6FF336C24 for ; Mon, 03 Mar 2025 08:09:48 -0500 (EST) From: Scott Mayhew To: kdevops@lists.linux.dev Subject: [PATCH 3/9] gitr: add last-run directory and last-kernel.txt to the results Date: Mon, 3 Mar 2025 08:09:42 -0500 Message-ID: <20250303130948.630029-4-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.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: 3nxxYGlztx1Vc0W5c0Ov17GMqB-OQcwyLEZFHd8pIDM_1741007390 X-Mimecast-Originator: redhat.com content-type: text/plain; charset="US-ASCII"; x-default=true Create the last-run directory and last-kernel.txt file in a manner similar to the way the fstests workflow does it. This will make it easier to get at the most recent test results for reporting purposes. Signed-off-by: Scott Mayhew --- playbooks/roles/gitr/tasks/main.yml | 59 +++++++++++++++++++++++++---- 1 file changed, 51 insertions(+), 8 deletions(-) diff --git a/playbooks/roles/gitr/tasks/main.yml b/playbooks/roles/gitr/tasks/main.yml index 42005d2..f1e7b6c 100644 --- a/playbooks/roles/gitr/tasks/main.yml +++ b/playbooks/roles/gitr/tasks/main.yml @@ -24,17 +24,43 @@ - name: Set the pathname of the local results directory tags: vars ansible.builtin.set_fact: - gitr_results_dir: "../workflows/gitr/results/{{ ansible_kernel }}/{{ gitr_test_group }}/" + gitr_results_full_path: "{{ topdir_path }}/workflows/gitr/results" + gitr_results_target: "../workflows/gitr/results/last-run" gitr_run_uniqifier: "{{ ansible_date_time.iso8601_basic_short }}" +- name: Clean up our localhost results/last-run directory + local_action: file path="{{ gitr_results_target }}/" state=absent + run_once: true + tags: [ 'run_tests', 'copy_results', 'clean_local_results' ] + +- name: Create empty last-run directory + local_action: file path="{{ gitr_results_target }}/" state=directory + run_once: true + tags: [ 'run_tests', 'copy_results', 'clean_local_results' ] + +- name: Get used target kernel version + tags: [ 'copy_results' ] + command: "uname -r" + register: uname_cmd + +- name: Store last kernel variable + tags: [ 'copy_results' ] + set_fact: + last_kernel: "{{ uname_cmd.stdout_lines | regex_replace('\\]') | regex_replace('\\[') | replace(\"'\",'') }}" + run_once: true + +- name: Document used target kernel version + local_action: "shell echo {{ last_kernel }} > {{ gitr_results_target }}/../last-kernel.txt" + tags: [ 'run_tests', 'copy_results', 'print_results' ] + run_once: true + - name: Ensure the local results directory exists tags: copy_results ansible.builtin.file: - path: "{{ gitr_results_dir }}" + path: "{{ gitr_results_full_path }}/last-run/{{ last_kernel }}/{{ gitr_test_group }}" state: directory mode: "u=rwx,g=rx,o=rx" delegate_to: localhost - run_once: true - name: Install dependencies for the git regression tests tags: gitr @@ -303,7 +329,7 @@ tags: copy_results ansible.builtin.fetch: src: "/tmp/{{ gitr_run_uniqifier }}.tgz" - dest: "{{ gitr_results_dir }}" + dest: "{{ gitr_results_full_path }}/last-run/{{ last_kernel }}/{{ gitr_test_group }}/" flat: true validate_checksum: true @@ -311,7 +337,7 @@ tags: copy_results ansible.builtin.fetch: src: "{{ gitr_mnt }}/{{ gitr_run_uniqifier }}.summary" - dest: "{{ gitr_results_dir }}" + dest: "{{ gitr_results_full_path }}/last-run/{{ last_kernel }}/{{ gitr_test_group }}/" flat: true validate_checksum: false @@ -319,7 +345,7 @@ tags: copy_results ansible.builtin.fetch: src: "{{ gitr_mnt }}/{{ gitr_run_uniqifier }}.stderr" - dest: "{{ gitr_results_dir }}" + dest: "{{ gitr_results_full_path }}/last-run/{{ last_kernel }}/{{ gitr_test_group }}/" flat: true validate_checksum: false when: gitr_results.rc != 0 @@ -328,7 +354,7 @@ tags: copy_results ansible.builtin.fetch: src: "{{ gitr_mnt }}/{{ gitr_run_uniqifier }}.rpc" - dest: "{{ gitr_results_dir }}" + dest: "{{ gitr_results_full_path }}/last-run/{{ last_kernel }}/{{ gitr_test_group }}/" flat: true validate_checksum: false when: @@ -339,9 +365,26 @@ tags: copy_results ansible.builtin.fetch: src: "{{ gitr_mnt }}/{{ gitr_run_uniqifier }}.xprt" - dest: "{{ gitr_results_dir }}" + dest: "{{ gitr_results_full_path }}/last-run/{{ last_kernel }}/{{ gitr_test_group }}/" flat: true validate_checksum: false when: - gitr_fstype == "nfs" - ansible_os_family == 'RedHat' + +- name: Verify last-run kernel directory exists + tags: [ 'copy_results' ] + delegate_to: localhost + stat: + path: "{{ gitr_results_full_path }}/last-run/{{ last_kernel }}" + register: last_run_kernel_dir + +- name: Copy over the last-run into the results directory for archiving into kdevops + copy: + src: "{{ gitr_results_full_path }}/last-run/{{ last_kernel }}" + dest: "{{ gitr_results_full_path }}/" + run_once: true + tags: [ 'copy_results' ] + delegate_to: localhost + when: + - last_run_kernel_dir.stat.exists From patchwork Mon Mar 3 13:09:43 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Mayhew X-Patchwork-Id: 13998810 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 D846E211485 for ; Mon, 3 Mar 2025 13:09:53 +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=1741007395; cv=none; b=eCD2sHqBjCpglLXZVTdPBeqwDJn1/O2z2ufqgFV8TkBb+lQ8epxTRLhTSMUAGST18hA+xmDnAYpvjozefbw7q32kNey90n2TU4/QcLNN1gOk2l7601Y3VraDT/OZoOc8Vju0xzDoIBZ/cUZIKdeqwp9dXALoX75iZ7fWScuziQQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741007395; c=relaxed/simple; bh=hwXz9ytn6I0FCeZcCA6FRWdo8dkkG1vn53HdvvBiH0Q=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:content-type; b=PIAH9+/MV9CMzPSxGfkYpxIarva4gv8dywfl2sHBBLDZFaMy9WvDDIo2YEYynWoRXWEx7MtZFT+itEBAgS15XwrKEn21VYKJpFrxJXhr7iobpzC+pbn/DYrbwkGJNHCwEKrs7xgZCj0jUY0EH00pL5KEpUqsn5mVm187NepmUyc= 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=SaNkfAOY; 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="SaNkfAOY" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1741007392; 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=8WLEhrIWnmk0LecjdFnOmoliPPYQatui/wgG+beBqXg=; b=SaNkfAOYCxMcoD2AG3qTY+ZRAzxLgxak9sVucU6wd0AZrS8Pbn/wKXNoh0OvYlzU5SzsSW M6MSHwXVJKeg00qCAJr2F8ePHcj+qnkB9sUlJTBdv/QneqaEvU+iw8u7p6vsw1o4YcaL+q lyM3d7kk0WeEyUVp2T24ImPMNMCuXmM= 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-576--h5moE9aOmShXL-1iTT76Q-1; Mon, 03 Mar 2025 08:09:51 -0500 X-MC-Unique: -h5moE9aOmShXL-1iTT76Q-1 X-Mimecast-MFC-AGG-ID: -h5moE9aOmShXL-1iTT76Q_1741007390 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 9409D1800992 for ; Mon, 3 Mar 2025 13:09:50 +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 697A6180035F for ; Mon, 3 Mar 2025 13:09:50 +0000 (UTC) Received: from aion.redhat.com (localhost [IPv6:::1]) by aion.redhat.com (Postfix) with ESMTP id E6232336C26 for ; Mon, 03 Mar 2025 08:09:48 -0500 (EST) From: Scott Mayhew To: kdevops@lists.linux.dev Subject: [PATCH 4/9] ltp: add last-run directory and last-kernel.txt to the results Date: Mon, 3 Mar 2025 08:09:43 -0500 Message-ID: <20250303130948.630029-5-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: NK3Ao9hzaOcGoxjXRsndQAcxIjyP-ClqlCaWtyP-zsU_1741007390 X-Mimecast-Originator: redhat.com content-type: text/plain; charset="US-ASCII"; x-default=true Create the last-run directory and last-kernel.txt file in a manner similar to the way the fstests workflow does it. This will make it easier to get at the most recent test results for reporting purposes. Signed-off-by: Scott Mayhew --- playbooks/roles/ltp/tasks/main.yml | 60 ++++++++++++++++++++++++++++-- 1 file changed, 56 insertions(+), 4 deletions(-) diff --git a/playbooks/roles/ltp/tasks/main.yml b/playbooks/roles/ltp/tasks/main.yml index 34cae23..71e1541 100644 --- a/playbooks/roles/ltp/tasks/main.yml +++ b/playbooks/roles/ltp/tasks/main.yml @@ -20,17 +20,52 @@ tags: ['vars'] ansible.builtin.set_fact: ltp_test_group: "{{ ansible_host | regex_replace(kdevops_host_prefix + '-') | regex_replace('-dev') }}" - ltp_results_dir: "../workflows/ltp/results/{{ ansible_kernel }}" + ltp_results_full_path: "{{ topdir_path }}/workflows/ltp/results" + ltp_results_target: "../workflows/ltp/results/last-run" - name: Create the local results directory tags: ['first_run'] ansible.builtin.file: - path: "{{ ltp_results_dir }}" + path: "{{ ltp_results_full_path }}" state: directory mode: "u=rwx,g=rx,o=rx" delegate_to: localhost run_once: true +- name: Clean up our localhost results/last-run directory + local_action: file path="{{ ltp_results_target }}/" state=absent + run_once: true + tags: [ 'run_tests', 'copy_results', 'clean_local_results' ] + +- name: Create empty last-run directory + local_action: file path="{{ ltp_results_target }}/" state=directory + run_once: true + tags: [ 'run_tests', 'copy_results', 'clean_local_results' ] + +- name: Get used target kernel version + tags: [ 'copy_results' ] + command: "uname -r" + register: uname_cmd + +- name: Store last kernel variable + tags: [ 'copy_results' ] + set_fact: + last_kernel: "{{ uname_cmd.stdout_lines | regex_replace('\\]') | regex_replace('\\[') | replace(\"'\",'') }}" + run_once: true + +- name: Document used target kernel version + local_action: "shell echo {{ last_kernel }} > {{ ltp_results_target }}/../last-kernel.txt" + tags: [ 'run_tests', 'copy_results', 'print_results' ] + run_once: true + +- name: Ensure the local results directory exists + tags: copy_results + ansible.builtin.file: + path: "{{ ltp_results_full_path }}/last-run/{{ last_kernel }}/{{ ltp_test_group }}" + state: directory + mode: "u=rwx,g=rx,o=rx" + delegate_to: localhost + - name: Set OS-specific variables ansible.builtin.include_vars: "{{ lookup('ansible.builtin.first_found', params) }}" vars: @@ -194,7 +229,7 @@ tags: ['copy_results'] ansible.builtin.fetch: src: "{{ item.path }}" - dest: "{{ ltp_results_dir }}/{{ ltp_test_group }}/" + dest: "{{ ltp_results_full_path }}/last-run/{{ last_kernel }}/{{ ltp_test_group }}/" flat: true validate_checksum: false with_items: "{{ results_files.files }}" @@ -216,7 +251,7 @@ tags: ['copy_results'] ansible.builtin.fetch: src: "{{ item.path }}" - dest: "{{ ltp_results_dir }}/{{ ltp_test_group }}/" + dest: "{{ ltp_results_full_path }}/last-run/{{ last_kernel }}/{{ ltp_test_group }}/" flat: true validate_checksum: false with_items: "{{ output_files.files }}" @@ -224,3 +259,20 @@ - output_files.matched > 0 loop_control: label: "Copying {{ item.path | basename }} ..." + +- name: Verify last-run kernel directory exists + tags: [ 'copy_results' ] + delegate_to: localhost + stat: + path: "{{ ltp_results_full_path }}/last-run/{{ last_kernel }}" + register: last_run_kernel_dir + +- name: Copy over the last-run into the results directory for archiving into kdevops + copy: + src: "{{ ltp_results_full_path }}/last-run/{{ last_kernel }}" + dest: "{{ ltp_results_full_path }}/" + run_once: true + tags: [ 'copy_results' ] + delegate_to: localhost + when: + - last_run_kernel_dir.stat.exists From patchwork Mon Mar 3 13:09:44 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Mayhew X-Patchwork-Id: 13998814 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 19201211A12 for ; Mon, 3 Mar 2025 13:09:56 +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=1741007399; cv=none; b=oEp1rpkm6ZPBQz/+AEnwbZTLLb5VFLOBg6WHWMCxO9H4PmgiW0vLBfavoq35avaiNxIXQ/pFdHmvBwtO/saHAY3TgiDcyNluYL2rso5ZuDr+FqD1j7rKW444FZSK+6vgAv4jk7u7laZPOPnkuQOilfi3nGxwvNoz6mrkThJFRss= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741007399; c=relaxed/simple; bh=58xaHljBL6vmD+qUmTAc2iv/O4qBPyNROxD0RleU8rg=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:content-type; b=O6zLskpDfHeR8zd48j5gl04FibxsiqLAcPZfOyTrZ5n5DBlXEz+YsHx2Kx7LS7gowVxWbppWLt5BAHdcpzJiiES2OoFAQssYW05gQbwnBDs+5mZBlD+l19ToEKWiv88uB6pKfc9xe0QsO+jaigNham1yI0FO5wGrgv42k78zlVs= 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=JYtYMt/a; 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="JYtYMt/a" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1741007395; 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=O3Gkz74zmh/cPjMcMDDJc9D+ZMn4WMJbYytF2Sdo2hU=; b=JYtYMt/a5JdrdQY7ePte0d3F19okg9D6QtDHAiLrdEKqPNE4+RjGOL8rumVjY91TYl7EUx 7wRR+6xDAYBUe9IjuVQrVR37fWfnSHT4vbVWdNDfwRyP/AffApaM61/xwPRanJeGsavvF8 59U7fEUlSuyyP1Od5GfM1Bh3F0WO9EA= 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-10-1hV4iiB3MO6ymzAoajiKlQ-1; Mon, 03 Mar 2025 08:09:53 -0500 X-MC-Unique: 1hV4iiB3MO6ymzAoajiKlQ-1 X-Mimecast-MFC-AGG-ID: 1hV4iiB3MO6ymzAoajiKlQ_1741007392 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 3D1231801A18 for ; Mon, 3 Mar 2025 13:09:52 +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 1302B180176A 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 F21FA336C27 for ; Mon, 03 Mar 2025 08:09:48 -0500 (EST) From: Scott Mayhew To: kdevops@lists.linux.dev Subject: [PATCH 5/9] fstests: add makefile target to show test results Date: Mon, 3 Mar 2025 08:09:44 -0500 Message-ID: <20250303130948.630029-6-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.111 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: r-ygJ0-rYu0egXFI308YO8JRphTbBPHSNUvgejyK0O4_1741007392 X-Mimecast-Originator: redhat.com content-type: text/plain; charset="US-ASCII"; x-default=true Add 'fstests-show-results' makefile target to show test results. Under the hood, it more or less just does 'find ... | xargs cat'. By default, the result.xml 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-300.fc41.x86_64 make fstests-show-results You can change the files being shown by overriding the PATTERN variable. For example, to just see the summary: $ PATTERN="\( -name xunit_results.txt \)" make fstests-show-results or to see the summary and the bad results: $ PATTERN="\( -name xunit_results.txt -o -name \"*.bad\" \)" make fstests-show-results or you can do any combination thereof, e.g. $ LAST_KERNEL=6.13.4-300.fc41.x86_64 PATTERN="\( -name xunit_results.txt \)" make fstests-show-results Signed-off-by: Scott Mayhew --- workflows/fstests/Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/workflows/fstests/Makefile b/workflows/fstests/Makefile index 344a1f8..ef9c0fa 100644 --- a/workflows/fstests/Makefile +++ b/workflows/fstests/Makefile @@ -115,6 +115,14 @@ ifneq (,$(COUNT)) FSTESTS_DYNAMIC_RUNTIME_VARS += , "oscheck_extra_args": "-I $(COUNT)" endif +ifndef LAST_KERNEL +LAST_KERNEL := $(shell cat workflows/fstests/results/last-kernel.txt 2>/dev/null) +endif + +ifndef PATTERN +PATTERN := -name result.xml +endif + fstests: $(FSTESTS_BASELINE_EXTRA) $(Q)ansible-playbook $(ANSIBLE_VERBOSE) -l localhost,baseline,dev \ -f 30 -i hosts playbooks/fstests.yml --skip-tags run_tests,copy_results $(LIMIT_HOSTS) @@ -218,6 +226,14 @@ fstests-dev-results: $(KDEVOPS_EXTRA_VARS) --extra-vars=@./extra_vars.yaml \ $(LIMIT_HOSTS) +fstests-show-results: +ifdef LAST_KERNEL + @find workflows/fstests/results/$(LAST_KERNEL) -type f $(PATTERN) \ + | xargs -I {} bash -c 'echo "{}:"; cat {}; echo;' +else + @echo "No results." +endif + fstests-help-menu: @echo "fstests options:" @echo "fstests - Git clones fstests, builds and install it" 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" From patchwork Mon Mar 3 13:09:46 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Mayhew X-Patchwork-Id: 13998818 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 96804211485 for ; Mon, 3 Mar 2025 13:10:05 +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=1741007407; cv=none; b=ZjMRYohUCb2r/v65VG1Il1xVSPWQWw8XTPb3vFDs84qKCg8wra7yQWMKTFn5B83manUPmVP6f5bYkoUpG7ZRtIO0FLKDgkeJoqrVxGmwX1+cLTbx8Qp4cJmknuXYYm2xn+XqKjALszZqBa+ShDkVeK4op3miYGIJYNleadlSpDA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741007407; c=relaxed/simple; bh=OcCZPK7fWgjS6X+2bgwsWOiH5mJ3GTafCrDpFNvFP6k=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:content-type; b=n95FWUZFTpYcWMGxA6krCh/hamwuZ2q+NgmaIMFkxqkm/UsCk2ZM3jLndpGpsKPb7uAOn82e8CnRtc3n/xAHelOX/t9UdSJ8XlWQQcT85jaLCeJZ5j+5d60APrWZVH704ZDwFS6upRRCOWMQhp+/yeiPi5scqVRJi17p6aDuhoU= 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=GUXnvLJg; 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="GUXnvLJg" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1741007404; 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=dtyoK3QQd58UW20Zed6eIq2nOKnva3l3svkFxu3s0bM=; b=GUXnvLJg4ljdXm3el1q7U0EEIEOu3Xu/0FW+6/VCPau14Zg2L5zp/k6l/Uzgsq85Shsj3+ IYNqHh+G/5WV/ydlRFWkP5u9gZNh5US3RfttEYeBahtMUgnFqAiMukru980hc4/HUgpEyZ 4rXuezbFh34DjRlX9yTrpJEBJ63prkw= Received: from mx-prod-mc-02.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-84-LoWKdEUYM8yzv7g9kh8FAw-1; Mon, 03 Mar 2025 08:09:53 -0500 X-MC-Unique: LoWKdEUYM8yzv7g9kh8FAw-1 X-Mimecast-MFC-AGG-ID: LoWKdEUYM8yzv7g9kh8FAw_1741007392 Received: from mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.15]) (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-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 5E09F18EB2C9 for ; Mon, 3 Mar 2025 13:09:52 +0000 (UTC) Received: from aion.redhat.com (unknown [10.22.64.10]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 32E8E1956094 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 15DEC336C29 for ; Mon, 03 Mar 2025 08:09:49 -0500 (EST) From: Scott Mayhew To: kdevops@lists.linux.dev Subject: [PATCH 7/9] nfstest: add makefile target to show test results Date: Mon, 3 Mar 2025 08:09:46 -0500 Message-ID: <20250303130948.630029-8-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.0 on 10.30.177.15 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: Z11_000kxgd3rVVuwNm3utK0JhY2YagRviiloJmEBEU_1741007392 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 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 change that by overriding the PATTERN variable). Signed-off-by: Scott Mayhew --- workflows/nfstest/Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/workflows/nfstest/Makefile b/workflows/nfstest/Makefile index 638ec1f..2e645ce 100644 --- a/workflows/nfstest/Makefile +++ b/workflows/nfstest/Makefile @@ -53,6 +53,10 @@ 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 + nfstest: $(Q)ansible-playbook $(ANSIBLE_VERBOSE) -l baseline,dev \ -f 30 -i hosts playbooks/nfstest.yml \ @@ -88,6 +92,19 @@ nfstest-dev-reset: --tags vars,reset \ --extra-vars=@./extra_vars.yaml +nfstest-show-results: +ifdef LAST_KERNEL +ifeq ($(LAST_KERNEL), $(shell cat workflows/nfstest/results/last-kernel.txt 2>/dev/null)) + @find workflows/nfstest/results/$(LAST_KERNEL) -type f $(PATTERN) -newer workflows/nfstest/results/last-run \ + | xargs -I {} bash -c 'echo "{}:"; cat {}; echo;' +else + @find workflows/nfstest/results/$(LAST_KERNEL) -type f $(PATTERN) \ + | xargs -I {} bash -c 'echo "{}:"; cat {}; echo;' +endif +else + @echo "No results." +endif + nfstest-help-menu: @echo "nfstest options:" @echo "nfstest - Git clone nfstest and install it" From patchwork Mon Mar 3 13:09:47 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Mayhew X-Patchwork-Id: 13998817 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 9A89B211A13 for ; Mon, 3 Mar 2025 13:10:00 +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=1741007402; cv=none; b=Fgx/5Zhkf1TqyBDZm0xBVHeAHNUjZ4KfRnsHC5y5c03MIouW5HIWy7XwmseeOogkjjf5Sp3E+iSM1lKYezCtIHkZqSJ+1NJSkBv4Y7zABAV4jse2iggfr8oBhttFm8uZOElZY0UOstPfEQPe+DlUSTYiDwKZ10qAI30J6ZUSaTQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741007402; c=relaxed/simple; bh=rKrwlcZKPZ9Xpy0C85wsOnhEA5L2U8bBa0O6TU+BpmA=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:content-type; b=AkjDMkymI1Ba22pnc6JE4W5fZKqp7spg72jcp3CPpZ1Q66PMhER+VNK6s9lWWuDVYrV631VlrlYCUr1VQAPCaLq50Fyh+0g+1UbHD9mN6wbYjHN1rRDnGRv59DhrGFrNSvOyoGksl6uADmKA4pltga9Rldlamirgk8K5Qtr/41I= 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=Ugy89d+N; 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="Ugy89d+N" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1741007399; 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=Ugy89d+NcfTGtlkxNgeTB0iuQz/JdqOY9/oq2KLYo7UWVbgzPBmX3cEysmjgvOZEUirmUd u+EdLP15w72CSWwOk+P/P1fB8auqFFhs+jyDKoPfhRYXKctRBnF2FFVq+4A3lZrP5zoikK fEEkTiyM/ngUZT6gUrvyy8ybP04wJWA= 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-133-0tZyAFfqMU6rkGIMEMUldQ-1; Mon, 03 Mar 2025 08:09:53 -0500 X-MC-Unique: 0tZyAFfqMU6rkGIMEMUldQ-1 X-Mimecast-MFC-AGG-ID: 0tZyAFfqMU6rkGIMEMUldQ_1741007392 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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 3D35E1801A1E for ; Mon, 3 Mar 2025 13:09:52 +0000 (UTC) Received: from aion.redhat.com (unknown [10.22.64.10]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 0F0371956048 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 21F59336C2A for ; Mon, 03 Mar 2025 08:09:49 -0500 (EST) From: Scott Mayhew To: kdevops@lists.linux.dev Subject: [PATCH 8/9] gitr: add makefile target to show test results Date: Mon, 3 Mar 2025 08:09:47 -0500 Message-ID: <20250303130948.630029-9-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.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: bcJlq6UEzX4pNvci6TpmisczlYSbWuy45Mr3ZqJqZQU_1741007392 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'. 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" From patchwork Mon Mar 3 13:09:48 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Mayhew X-Patchwork-Id: 13998816 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 79C9D211A12 for ; Mon, 3 Mar 2025 13:10:00 +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=1741007402; cv=none; b=JVXnF2W4aY4X/z58zp3Lw3iUcokn6bt50YEcg7WrybA28xJeRBCIkvNZ7hrgoJjY7Vyt8kzO7d+X4VcKDTFdztQ4XliuI4tOEJjWuEiGQys1KNdmwBNrLHYBKAToTMcsLlEYNkHAdeL+wid0Xn4UxiR9S1MkYUh/KCa32o71mNU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741007402; c=relaxed/simple; bh=FbzVrdMAZUQ8zQS6jCj8dwn6KXOD6y4lIJQ1AAwZm0Q=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:content-type; b=WYo4w9yFDPOed44nr1oZbP1U7Gxeuyj262FTrnBnFbsPzyOZgrv0eQBzkTvsW1lbD6xejc8vXZIrhRMInTxXsbWE6qkGjSPkkqUU8kZ9ZxD7Iiar/zhQLdGi3CNCz/M5MihADbvub60ZnwdwQcXQCJv9F503OJ7gL6+ZDPuuVFY= 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=G+70W83+; 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="G+70W83+" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1741007399; 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=SlpW1qlYd6QkfsXVIjVn4WIAfHnx8Q1t4Wd/7bZQkrA=; b=G+70W83+J4x4SqtOdaJ3qA39kgBllMS2EJ1hoBCjLQdgD2u8Lwb7lFyMvSfmRKmXuq6S0+ Z0Pp9miPGnUwaTX2NV3oHZFRdflHirvF6qhGDQWe5xBTKyBWqYbRbFXIi1myPKIOYYxACs hXp3FjTm5Nx0Sh+7fzmwcOuzkD4kjoc= Received: from mx-prod-mc-01.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-349-duOwI7P8Pv68QbmaIZXYvw-1; Mon, 03 Mar 2025 08:09:53 -0500 X-MC-Unique: duOwI7P8Pv68QbmaIZXYvw-1 X-Mimecast-MFC-AGG-ID: duOwI7P8Pv68QbmaIZXYvw_1741007392 Received: from mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.40]) (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-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 3AF9C1944CD1 for ; Mon, 3 Mar 2025 13:09:52 +0000 (UTC) Received: from aion.redhat.com (unknown [10.22.64.10]) by mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 0DF0519560AA 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 2E844336C2B for ; Mon, 03 Mar 2025 08:09:49 -0500 (EST) From: Scott Mayhew To: kdevops@lists.linux.dev Subject: [PATCH 9/9] ltp: add makefile target to show test results Date: Mon, 3 Mar 2025 08:09:48 -0500 Message-ID: <20250303130948.630029-10-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.0 on 10.30.177.40 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: -2tjrWKCOgkjWR7zxY-89wKate3Z3VfNFLwT65-bxKs_1741007392 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'. By default, the "*.failed" 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.11.9-100.fc39.x86_64 make ltp-show-results You can change the files being shown by overriding the PATTERN variable. For example, to just see the full test logs: $ PATTERN="-name \"*.log\"" make ltp-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/ltp/Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/workflows/ltp/Makefile b/workflows/ltp/Makefile index 4e439da..8de76a0 100644 --- a/workflows/ltp/Makefile +++ b/workflows/ltp/Makefile @@ -96,6 +96,14 @@ LTP_KERNEL_CI_LOOP := scripts/workflows/ltp/run_kernel_ci.sh LTP_KERNEL_CI_LOOP_KOTD := scripts/workflows/ltp/run_kernel_ci_kotd.sh endif # CONFIG_KERNEL_CI +ifndef LAST_KERNEL +LAST_KERNEL := $(shell cat workflows/ltp/results/last-kernel.txt 2>/dev/null) +endif + +ifndef PATTERN +PATTERN := -name "*.failed" +endif + ltp: $(Q)ansible-playbook $(ANSIBLE_VERBOSE) -l baseline,dev \ -f 30 -i hosts playbooks/ltp.yml --skip-tags run_tests,copy_results @@ -128,6 +136,19 @@ ltp-dev-reset: -f 30 -i hosts -l dev playbooks/ltp.yml \ --tags vars,reset --extra-vars=@./extra_vars.yaml +ltp-show-results: +ifdef LAST_KERNEL +ifeq ($(LAST_KERNEL), $(shell cat workflows/ltp/results/last-kernel.txt 2>/dev/null)) + find workflows/ltp/results/$(LAST_KERNEL) -type f $(PATTERN) -newer workflows/ltp/results/last-run \ + | xargs -I {} bash -c 'echo "{}:"; cat {}; echo;' +else + @find workflows/ltp/results/$(LAST_KERNEL) -type f $(PATTERN) \ + | xargs -I {} bash -c 'echo "{}:"; cat {}; echo;' +endif +else + @echo "No results." +endif + ltp-help-menu: @echo "ltp options:" @echo "ltp - Git clone ltp, build and install it"