From patchwork Wed Mar 12 21:42:24 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Mayhew X-Patchwork-Id: 14013937 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 B56441E9B03 for ; Wed, 12 Mar 2025 21:42:37 +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=1741815759; cv=none; b=ZL9iDdqPr1sh9vJcZqrrWHZvBqloDwX4fLjPAVr91wbEwq3wD9O18TrraPDdQGskRvhIFAR68t8+9/dfVbfNb9OmMX176wHCv5EfS4H3R32j2sVUk9mg9muq0PwOJlx4I4V4GeXZKly1tfWA9ePLlG6YEVZhTN7Kw7jlSv9U9BU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741815759; c=relaxed/simple; bh=4udskiICFcXZ1g52AXiOome0ObFjF0JO1m4J4ZNOfrc=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:content-type; b=NS1Ya+2NUk7Ya8OGsYHqNOEDkrHecsNdNNsz0Xsb2KZi9V8gINyadcnYIXZMcKecDU164C3nggYoeR4tWgkuYfLnYb5O8e3ejpiMGril8hqTqqBb+Q4tMUb+uPgb2SwW/TaPQVXCQvlpKWlaQb5YsCTPq4gGX6tn+OhmGWEADW0= 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=W2yPcJGV; 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="W2yPcJGV" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1741815756; 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=W2yPcJGVQcM/eIsizD3ePaJ8PbP0i3cIcF6wJAvcvHrtzR/1EvGRcdPyZXJz53BhJA9xhI FaPHVgZM6UVBVmENSShPDyTrpXYP07ju8p5wj87JkANBD86wIXjkICAecbiJ9kEEg6zaBG +XD5E8p9QXkpfwgl+9Ge9SJY+3Dkk/4= 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-593-skR7kNwlPN2Vli4VLRfTQw-1; Wed, 12 Mar 2025 17:42:35 -0400 X-MC-Unique: skR7kNwlPN2Vli4VLRfTQw-1 X-Mimecast-MFC-AGG-ID: skR7kNwlPN2Vli4VLRfTQw_1741815754 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-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 95A381828ACF for ; Wed, 12 Mar 2025 21:42:34 +0000 (UTC) Received: from aion.redhat.com (unknown [10.22.80.106]) by mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 5C41319560AB for ; Wed, 12 Mar 2025 21:42:34 +0000 (UTC) Received: from aion.redhat.com (localhost [IPv6:::1]) by aion.redhat.com (Postfix) with ESMTP id 9D6FF338A0E for ; Wed, 12 Mar 2025 17:42:32 -0400 (EDT) From: Scott Mayhew To: kdevops@lists.linux.dev Subject: [PATCH v2 1/9] pynfs: add last-run directory and last-kernel.txt to the results Date: Wed, 12 Mar 2025 17:42:24 -0400 Message-ID: <20250312214232.955450-2-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.0 on 10.30.177.40 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: nBOLSvwSw5P23ZV6xWzKFz49VyGROSxi6Q091c5dz0g_1741815754 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 Wed Mar 12 21:42:25 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Mayhew X-Patchwork-Id: 14013939 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 B55E61D5175 for ; Wed, 12 Mar 2025 21:42:37 +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=1741815760; cv=none; b=e6aKK8R7UWi978WUemQzdADCLaC5zYVpd2C90CpWHcNUMzbk4NzIPBsC+qZ5QIIsxjXgMqDCGwKfS4Mhz1OeMGA8T4brDiqqBSUURGsQBTGt1/M5jl7zVVZO2Gd76oDPjR9m7XqQeQrynq97cL7myRXXq6q+FRb6SCYTh6spMIk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741815760; c=relaxed/simple; bh=Np93AYx1IBzjOs2+ShMtVneEcDZgsXJEpouk6UQYrRg=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:content-type; b=mbDvA3WMXs6GG8sqOZL0yu0vKoQlrVYm0rT0yrxcC3juprAGxqbwaxkQxzkuHrJU72oVyR4DPkw6DUr0AzV41NVJAAiaVloi6MUeV4weWHUBmM+KN+J6vAGccsOvpzUYt1i0NPktREN4GU+H7OkVE23m5aQ3bpxS7b1G8mbnuN4= 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=BgufqGLC; 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="BgufqGLC" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1741815756; 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=BgufqGLChMQzYutM79LWH2BSz82asXLhmw375rXMwXSQYw11rQN5CVQePHBmo83IEOtlVk ssv1rCHqCqTolBPuoDTK3yUJX0fjuCg/RTrXvvig8ZeaThBPrWsUN8vzSVVfR48nlMQc2N LPD2eg91QxmCUknZoeGcXjvSOGLxAFs= Received: from mx-prod-mc-04.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-593-PQT4ixDSNxezwXyC1jZh0A-1; Wed, 12 Mar 2025 17:42:35 -0400 X-MC-Unique: PQT4ixDSNxezwXyC1jZh0A-1 X-Mimecast-MFC-AGG-ID: PQT4ixDSNxezwXyC1jZh0A_1741815754 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-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 8BE211955D81 for ; Wed, 12 Mar 2025 21:42:34 +0000 (UTC) Received: from aion.redhat.com (unknown [10.22.80.106]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 596601955BFE for ; Wed, 12 Mar 2025 21:42:34 +0000 (UTC) Received: from aion.redhat.com (localhost [IPv6:::1]) by aion.redhat.com (Postfix) with ESMTP id A9DB0338A0F for ; Wed, 12 Mar 2025 17:42:32 -0400 (EDT) From: Scott Mayhew To: kdevops@lists.linux.dev Subject: [PATCH v2 2/9] nfstest: add last-run directory and last-kernel.txt to the results Date: Wed, 12 Mar 2025 17:42:25 -0400 Message-ID: <20250312214232.955450-3-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.0 on 10.30.177.15 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: KRWLj7uSB4DV2nzqxV7kUqCMQeZst2Dfxder9ttL8r0_1741815754 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 Wed Mar 12 21:42:26 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Mayhew X-Patchwork-Id: 14013942 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 D74201EF0AD for ; Wed, 12 Mar 2025 21:42:42 +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=1741815764; cv=none; b=oJmzqhPmt3oce6C9kMwJ0aSsdtj/4BAlcNyX0H/V/xy5xwU0xoNmg+NS40FaytIH4fmBi25kOJJ6ztPET4HB1cVM7onepvLHLtQH7ugz2uz0Z2kxjAF6fGhpcAwtjKArjmujQsvInr/dfCEGkkVG9PtRjPSXUBHhbi/RuX8oLqI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741815764; c=relaxed/simple; bh=vEHWO5hpHEqVzurU3NnX5AJG69fbEOlOOgTSngzMEMg=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:content-type; b=qL3gotnubOtNGxEJs6ithPdRD953sxTgSE3QdLVeUQbIhUHLA26g9U/ZB7LXXtdtDlsvrxi42YEUmXgsNmd1hNI8ODn/oyf7u1BMbmOgjcTOo4EHgMkOdUqiCUbhJStjnCWg4lA6dUqdlOGoX6L87e3MDBCu3QBbhMHUkrvKG64= 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=RkCKn6CW; 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="RkCKn6CW" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1741815762; 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=RkCKn6CWMlVq1xYzLm6hQTc/31fLwUUCUloKugMY1psPnyQE9uoqbAJ39A4nPSyF+iywDV VWTtaN3ra6XUF5e+hNVgJr2WxJxN7oz3nt9EMkmls0naMY6rOFrO5TUPxQyZKsY6tdGrTr wCe4VJqP4ymVVN/6YGq5UeIl/CaE7w4= 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-80-KuO0Vs_zPuifB6R2x-86hw-1; Wed, 12 Mar 2025 17:42:35 -0400 X-MC-Unique: KuO0Vs_zPuifB6R2x-86hw-1 X-Mimecast-MFC-AGG-ID: KuO0Vs_zPuifB6R2x-86hw_1741815754 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (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 8C0831954B3B for ; Wed, 12 Mar 2025 21:42:34 +0000 (UTC) Received: from aion.redhat.com (unknown [10.22.80.106]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 3D9711955BCB for ; Wed, 12 Mar 2025 21:42:34 +0000 (UTC) Received: from aion.redhat.com (localhost [IPv6:::1]) by aion.redhat.com (Postfix) with ESMTP id B6A53338A10 for ; Wed, 12 Mar 2025 17:42:32 -0400 (EDT) From: Scott Mayhew To: kdevops@lists.linux.dev Subject: [PATCH v2 3/9] gitr: add last-run directory and last-kernel.txt to the results Date: Wed, 12 Mar 2025 17:42:26 -0400 Message-ID: <20250312214232.955450-4-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.0 on 10.30.177.12 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: ChxUdhral9xvvb5RiOC1S8-pAoLJY2G2-grc5EmXpDM_1741815754 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 Wed Mar 12 21:42:27 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Mayhew X-Patchwork-Id: 14013938 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 97BCC7083C for ; Wed, 12 Mar 2025 21:42:38 +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=1741815760; cv=none; b=iy3BbmSPcvS8ziNNf8ubTIMqDvd4JJMCCHlOMXs7wGQRJ5EEtqan+9yBiys0sAjuIbIcYDzzOX9tv1xMXXpreGjl2YU7p0Dw9ULvTC+dpAcPYBs2rVe9ABUc54qas/dVzfh0ViAgBLM6BLuew/UChhbtYGv6OrK9IjzRnYYKoGg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741815760; c=relaxed/simple; bh=TGibZaf/X0jWpfy1jl14eFdIEidmu0so3sx2XJ+B17g=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:content-type; b=tXr2kWbb22GPsFkrMIRh/OWEy57WhEo9Lq0j7Q2EyYEPWzTHDhBYYVjvcOfRIv6ms6SrAxHQDxtJz5ky9eecf5m1+UKzkT8cYh0sFLrZSD7C/mi5iK5OUvyRuqHe1z8k6o85SdskHxBnyMy4nPr4pAL9JkZJcu7pEqKrZD2R9Qk= 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=BfOXjZN0; 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="BfOXjZN0" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1741815757; 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=r6eH+8cgm9VqXdWFjgi+SuWINVG2NR00exgxZp7NxXU=; b=BfOXjZN09LKYSGjBTR5AzfAtJam8XEsol4VPfKn1nn7+fUZEPZW4RfkaoCSMrwhZFQcZdk HL8vxI+wBtydN/u3sf/Rnn3lZBErpzKvJdEph8GO5PmFqOctdWC42+bp79SRiVEOkZdA0R hzvS4KRQ/C0Y6n9D8PQy48MvanJYxNs= 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-102-zYi1CjnBMZGrUxxaPKeT7g-1; Wed, 12 Mar 2025 17:42:35 -0400 X-MC-Unique: zYi1CjnBMZGrUxxaPKeT7g-1 X-Mimecast-MFC-AGG-ID: zYi1CjnBMZGrUxxaPKeT7g_1741815755 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-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id D3A8B180AF57 for ; Wed, 12 Mar 2025 21:42:34 +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 9BCEF1828ABC for ; Wed, 12 Mar 2025 21:42:34 +0000 (UTC) Received: from aion.redhat.com (localhost [IPv6:::1]) by aion.redhat.com (Postfix) with ESMTP id C3BA0338A11 for ; Wed, 12 Mar 2025 17:42:32 -0400 (EDT) From: Scott Mayhew To: kdevops@lists.linux.dev Subject: [PATCH v2 4/9] ltp: add last-run directory and last-kernel.txt to the results Date: Wed, 12 Mar 2025 17:42:27 -0400 Message-ID: <20250312214232.955450-5-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: 1M8YhCoAmoVLQF_B0_BCmod7alrRghdx6gChAkZvskM_1741815755 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 b15f87d..8baa47f 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: @@ -195,7 +230,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 }}" @@ -217,7 +252,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 }}" @@ -225,3 +260,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 Wed Mar 12 21:42:28 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Mayhew X-Patchwork-Id: 14013946 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 9464F1D5175 for ; Wed, 12 Mar 2025 21:43:02 +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=1741815785; cv=none; b=bOFt4CUHW6uSXgwvZZR9DDJRNPaeZqgHIjfmAcqcPT8xQUa1g+znnyd6IMIlzXReMYJ6iBO5+waZ2Xw+Yr3QajNR7qLZyIb8Jo71PkiOO7/TQ4f7XhV9hICrBK2Rax0WoviUK5ZvHjH1PNBDbHT6fhBtIuRNtIytVstmur1dWlY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741815785; c=relaxed/simple; bh=D/QFywUijAYQd4e5cWsffOKIu8CsTzBsjTEtqJxKqhk=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:content-type; b=i07VvjZC4GisBfGfHJ22PbfnNHRy/mKn41dLttoyKYiAOvn3iRD8UyJEL+1b0SR10Hsv9fE7vae6VFL44Syx1ZNJ+Uww7FX+nveWyr7Br5exB/FAQtwtRtgMNSZDYlOstT/MwfB4tAhip5CTo9e472ZCAz7EiFJZKEdSPChCbwo= 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=a3o81CG1; 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="a3o81CG1" 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=6p1Lo9RrzflfGo2W+9XJAzv7BNhC34bMAaOmlUCg2yg=; b=a3o81CG1/ZpYqmFJqyMwJks3OMOj/5T47iXEfHdSqY7qiwI33+3KD551seC/y3CVa5mTc5 fopwwAoen8h5Edd1ipzXy3D46yWiG3AkoPhbODCVEQ3WpREObKyPogHUMN2ERPWtIkdP/J Ikil1EHiWImIftEgGvN//Wtxeddzp20= 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-661-KICMYtlrMj-CdrwkDjl1Kg-1; Wed, 12 Mar 2025 17:42:36 -0400 X-MC-Unique: KICMYtlrMj-CdrwkDjl1Kg-1 X-Mimecast-MFC-AGG-ID: KICMYtlrMj-CdrwkDjl1Kg_1741815756 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 DFB471828A83 for ; Wed, 12 Mar 2025 21:42:35 +0000 (UTC) Received: from aion.redhat.com (unknown [10.22.80.106]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id B7F2118001DE 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 D066E338A12 for ; Wed, 12 Mar 2025 17:42:32 -0400 (EDT) From: Scott Mayhew To: kdevops@lists.linux.dev Subject: [PATCH v2 5/9] fstests: add makefile target to show test results Date: Wed, 12 Mar 2025 17:42:28 -0400 Message-ID: <20250312214232.955450-6-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.111 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: CkYAL6mlqfazppHfCuqsSAx-uxIVJCM1K3ClWKR3Jv8_1741815756 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 xunit_result.txt file 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 xml output files: $ PATTERN="-name \"*.xml\"" make fstests-show-results or to see the xunit_results.txt 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 \"*.bad\"" make fstests-show-results Finally, note that if you override the PATTERN variable, then the output will also include the filename... otherwise it the output will not include the filename. The reason I did it this way for this workflow specifically is so that Luis can use 'make fstests-show-results' in his github workflow and he should get exactly the same output as he does today. Signed-off-by: Scott Mayhew Reviewed-by: Luis Chamberlain --- workflows/fstests/Makefile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/workflows/fstests/Makefile b/workflows/fstests/Makefile index 344a1f8..40629fd 100644 --- a/workflows/fstests/Makefile +++ b/workflows/fstests/Makefile @@ -115,6 +115,28 @@ 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 + +ifeq ($(LAST_KERNEL), $(shell cat workflows/fstests/results/last-kernel.txt 2>/dev/null)) +FIND_PATH := workflows/fstests/results/last-run +else +FIND_PATH := workflows/fstests/results/$(LAST_KERNEL) +endif + +ifndef PATTERN +PATTERN := -name xunit_results.txt +endif + +ifndef XARGS_ARGS +ifeq (-name xunit_results.txt,$(PATTERN)) +XARGS_ARGS := cat +else +XARGS_ARGS := -I {} bash -c 'echo "{}:"; cat {}; echo;' +endif +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 +240,11 @@ fstests-dev-results: $(KDEVOPS_EXTRA_VARS) --extra-vars=@./extra_vars.yaml \ $(LIMIT_HOSTS) +fstests-show-results: + @find $(FIND_PATH) -type f $(PATTERN) \ + | xargs $(XARGS_ARGS) \ + | sed '$${/^$$/d;}' + fstests-help-menu: @echo "fstests options:" @echo "fstests - Git clones fstests, builds and install it" From patchwork Wed Mar 12 21:42:29 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Mayhew X-Patchwork-Id: 14013944 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 946A51E9B03 for ; Wed, 12 Mar 2025 21:43:02 +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=1741815784; cv=none; b=rvKr/7fYAclNUzswvfVgTntyz44X6pUn/JyY2QWocVic+GQVLN2IWjkyA/hviEwOcdh4Rz9dBSFKzlTgI/xvisq+KQ1XGkjEkKVdUYTDPCKvJIgXAyz2Xtc8YJeukH5W6Nhnt3n0UHFZ8R6s2kWHiDKDBTuGcAbBaBqZhBihQUA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741815784; c=relaxed/simple; bh=KZlJFQjjkU6VmQ0Hklyq8rFSNuLAFWKHxDbV81KZg/M=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:content-type; b=M2NB5yijL/9dkQUpajWHZWCP6zAG9vHPYp4Eo6xY6eTG1u75RpIPfi2h7zB7NjhwXyIFpPlygoXa43F7W2wq9VryNl23+HEAsJ/e1Znvv26iFI+5f9t5i5DYM2jhEfP+/zG3GuJg1p6o/3/3qorkctIqKuMVarQAzJ3uNgghgEY= 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=NdBCHfxq; 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="NdBCHfxq" 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=jI8T8kM1xAF8wOdoW4qEm48PJ7LHkZcXH3CG7+XvEj0=; b=NdBCHfxqTZT3OgnJ7RxZcrZiNTVfA2qnM6+r0/uo3UHfs7a4eSoC/t7vd3ugVEZM+mqDHG GCvq/LkYPgipX75vI/KuIaxZZ4dV9H7YOxOb05vyUeeDSMN1GZXNhxBRlctihHwc6rJ9jq 70Iffd65OE7FGgfNNiR3luHy7k3MvOM= 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-661-7nR_9tgzMoyQNuKKjqGm8w-1; Wed, 12 Mar 2025 17:42:36 -0400 X-MC-Unique: 7nR_9tgzMoyQNuKKjqGm8w-1 X-Mimecast-MFC-AGG-ID: 7nR_9tgzMoyQNuKKjqGm8w_1741815756 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-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id EC6F91956060 for ; Wed, 12 Mar 2025 21:42:35 +0000 (UTC) Received: from aion.redhat.com (unknown [10.22.80.106]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id C19BB1801758 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 DD0DE338A13 for ; Wed, 12 Mar 2025 17:42:32 -0400 (EDT) From: Scott Mayhew To: kdevops@lists.linux.dev Subject: [PATCH v2 6/9] pynfs: add makefile target to show test results Date: Wed, 12 Mar 2025 17:42:29 -0400 Message-ID: <20250312214232.955450-7-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.111 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: VRVwrDdMcQHnfkxenyeaLPdrB2r5IbNQD8g62dPzE5U_1741815756 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 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/workflows/pynfs/Makefile b/workflows/pynfs/Makefile index 75a4b6a..c69b804 100644 --- a/workflows/pynfs/Makefile +++ b/workflows/pynfs/Makefile @@ -24,6 +24,24 @@ 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 + +ifeq ($(LAST_KERNEL), $(shell cat workflows/pynfs/results/last-kernel.txt 2>/dev/null)) +FIND_PATH := workflows/pynfs/results/last-run +else +FIND_PATH := workflows/pynfs/results/$(LAST_KERNEL) +endif + +ifndef PATTERN +PATTERN := -name "*.json" +endif + +ifndef XARGS_ARGS +XARGS_ARGS := -I {} bash -c 'echo "{}:"; cat {}; echo;' +endif + # Makefile for pynfs targets pynfs: $(Q)ansible-playbook $(ANSIBLE_VERBOSE) -l baseline,dev \ @@ -63,6 +81,11 @@ 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: + @find $(FIND_PATH) -type f $(PATTERN) \ + | xargs $(XARGS_ARGS) \ + | sed '$${/^$$/d;}' + pynfs-help-menu: @echo "pynfs options:" @echo "pynfs - Git clone pynfs, build and install it" 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" From patchwork Wed Mar 12 21:42:31 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Mayhew X-Patchwork-Id: 14013940 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 A9F311EE03C for ; Wed, 12 Mar 2025 21:42:39 +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=1741815761; cv=none; b=rNQI7v3P8P5ltIt3dvTgjz3aQgptIh6stQQW38j/71SQvv0GawH9kPMxdVfCwQ0M59ytlxkl6QDi49IINPHbMK1RmRhLW9c+fReGjhpBcngicK2WFWk9snh8WZ0AjmM//lWtnwskHcwTid1UBq6Qz0jhApUtgfEATi/CGNIj3kI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741815761; c=relaxed/simple; bh=F4IKsnhrptD/pgvmkII6gzO+4t0cog1TKRM+pZYPekY=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:content-type; b=NyS0S79Nb58CFsnWaaMdWgxY3yWBwgJICa8ZD1ZltGxMxfrCCgMwjOHrS8K9i0Q5h3d05y1umFGrk9sjHZPDGWR3swt20c5d1TFYQKeEL+0z4UXKPP0vfy6FtD6xGw200SKc5+Q+/v5ob8h9ciouKh+eiiqpesr9S8vyAiNTWvA= 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=FlWPQKFt; 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="FlWPQKFt" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1741815758; 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=wCVrJSOM6t9X4q0isYesLefyukmAz+DNezfARWodi2c=; b=FlWPQKFtUm1ISsm1FyGgQwww5x0DAGygrJRGvkSHuFNhMPj5nISpWH3VT50G+4SxRRTBuT TOIMOzR5gCm2CRrNnpzzHeUPmVKycdeZ9eIzcMROIIloziiGeEfkPa+rDm+97TWO7qKQBg OOSG1wOxA3x/wVmV8WGxFIWYW+9way0= 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-643-mrbxwmjKOlesGw5jyzJLwQ-1; Wed, 12 Mar 2025 17:42:37 -0400 X-MC-Unique: mrbxwmjKOlesGw5jyzJLwQ-1 X-Mimecast-MFC-AGG-ID: mrbxwmjKOlesGw5jyzJLwQ_1741815756 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-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 1B3B11955F2D for ; Wed, 12 Mar 2025 21:42:36 +0000 (UTC) Received: from aion.redhat.com (unknown [10.22.80.106]) by mx-prod-int-04.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id E6A7D19560AB 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 01FEC338A15 for ; Wed, 12 Mar 2025 17:42:33 -0400 (EDT) From: Scott Mayhew To: kdevops@lists.linux.dev Subject: [PATCH v2 8/9] gitr: add makefile target to show test results Date: Wed, 12 Mar 2025 17:42:31 -0400 Message-ID: <20250312214232.955450-9-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.0 on 10.30.177.40 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: pFwNVoBSKzBWbe63EgrLeqzMu32SANY6qWRL0hqZmMQ_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'. 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 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 override that too if you get creative with the PATTERN variable). Signed-off-by: Scott Mayhew --- workflows/gitr/Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/workflows/gitr/Makefile b/workflows/gitr/Makefile index 5432f42..59c6dd5 100644 --- a/workflows/gitr/Makefile +++ b/workflows/gitr/Makefile @@ -70,6 +70,24 @@ 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 + +ifeq ($(LAST_KERNEL), $(shell cat workflows/gitr/results/last-kernel.txt 2>/dev/null)) +FIND_PATH := workflows/gitr/results/last-run +else +FIND_PATH := workflows/gitr/results/$(LAST_KERNEL) +endif + +ifndef PATTERN +PATTERN := -name "*.summary" +endif + +ifndef XARGS_ARGS +XARGS_ARGS := -I {} bash -c 'echo "{}:"; cat {}; echo;' +endif + gitr: $(Q)ansible-playbook $(ANSIBLE_VERBOSE) -l baseline,dev \ -f 30 -i hosts playbooks/gitr.yml \ @@ -103,6 +121,11 @@ 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: + @find $(FIND_PATH) -type f $(PATTERN) \ + | xargs $(XARGS_ARGS) \ + | sed '$${/^$$/d;}' + gitr-help-menu: @echo "gitr options:" @echo "gitr - Git clone git, build and install it" From patchwork Wed Mar 12 21:42:32 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Scott Mayhew X-Patchwork-Id: 14013943 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 53BB37083C 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=1741815783; cv=none; b=Nkg7lBJ361KP+UmnQwqIIYYEXeAM3vlLJ/qmm38EOCJW050UY6dq3U7KQJXKVruTbXbld9+QS5MKKwQJCwgg1dTRAdhtnpPSX5hfV+bLNpmHZN7LJNinjrl1s05bjW/b7aLfKJ0rM56QeBy9F7P2sppBy8Fh2HhOlrmcO7GnLyc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741815783; c=relaxed/simple; bh=8OFcO2FQYJTBFmCv+z+wPBcHX4PkcLIEk/hHdqRNcao=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:content-type; b=oKJN3KB0cV/ktotzhPWzBXmfgClg2LwI42bIWyQmK4czTiI8eDEO4AOFp/7XqC5Rf68ywcFyPsPH3JC16WIDlqf3Zuv+hXn8vPK5tVd9MCi5csa3dnE/jar6pOC8tqRrLWDX6o748qDX6rISWoVvWF2rnd5UNftuwztdf1JNT44= 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=ETktKFg7; 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="ETktKFg7" 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=XKWUwDLlABoDXiTFifKSXhGDSQkHX1r9lJI9ES0JLF8=; b=ETktKFg7xz8cgA7eJU5FPxk/2bWu07ljxZBwi/yIdR6JmADO03FNop2VL8DyeUmON9/laa LqBSB4qfXELxi7Sl2+Q1EJaxUMGbvYU/yXB+tzMwQYArLe0EcErgMMdSUddgCFLdw5qXtg kvwX4j+quR5irW5CE4CltekYcR+N9iY= 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-661-8mK8Dtx0NRC_KNa-0t4dXQ-1; Wed, 12 Mar 2025 17:42:36 -0400 X-MC-Unique: 8mK8Dtx0NRC_KNa-0t4dXQ-1 X-Mimecast-MFC-AGG-ID: 8mK8Dtx0NRC_KNa-0t4dXQ_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-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 0CA6D1955DE4 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 D77561828AA1 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 0E6D8338A16 for ; Wed, 12 Mar 2025 17:42:33 -0400 (EDT) From: Scott Mayhew To: kdevops@lists.linux.dev Subject: [PATCH v2 9/9] ltp: add makefile target to show test results Date: Wed, 12 Mar 2025 17:42:32 -0400 Message-ID: <20250312214232.955450-10-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: c1kwtvyi-YhI-KKHowWrftb16AB3qaItnWOSi1L7p2M_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'. By default, the "*.log" 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 failures: $ PATTERN="-name \"*.failed\"" make ltp-show-results Note that since the ltp 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 override that too if you get creative with the PATTERN variable). Signed-off-by: Scott Mayhew --- workflows/ltp/Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/workflows/ltp/Makefile b/workflows/ltp/Makefile index 4e439da..e946be7 100644 --- a/workflows/ltp/Makefile +++ b/workflows/ltp/Makefile @@ -96,6 +96,24 @@ 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 + +ifeq ($(LAST_KERNEL), $(shell cat workflows/ltp/results/last-kernel.txt 2>/dev/null)) +FIND_PATH := workflows/ltp/results/last-run +else +FIND_PATH := workflows/ltp/results/$(LAST_KERNEL) +endif + +ifndef PATTERN +PATTERN := -name "*.log" +endif + +ifndef XARGS_ARGS +XARGS_ARGS := -I {} bash -c 'echo "{}:"; cat {}; echo;' +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 +146,11 @@ ltp-dev-reset: -f 30 -i hosts -l dev playbooks/ltp.yml \ --tags vars,reset --extra-vars=@./extra_vars.yaml +ltp-show-results: + @find $(FIND_PATH) -type f $(PATTERN) \ + | xargs $(XARGS_ARGS) \ + | sed '$${/^$$/d;}' + ltp-help-menu: @echo "ltp options:" @echo "ltp - Git clone ltp, build and install it"