From patchwork Wed Mar 5 00:57: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: 14001731 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 0569D4D8D1 for ; Wed, 5 Mar 2025 00:58:19 +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=1741136301; cv=none; b=DHaJulKYcw72B2Ezgm80nebxkm5GRMb1BHLg70ym7CTXeRfCtHYdMfDqr8SdbBXHhsjYlPSBS2zcy8358urycovTqENB+oxpeY8qRuHwX6sow+VQB2CchPIpWMB6mrdOCMYktx2T8pnSldSlwQ8518x1KYTwH4cQNRuF9ZkShxM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741136301; c=relaxed/simple; bh=4udskiICFcXZ1g52AXiOome0ObFjF0JO1m4J4ZNOfrc=; h=From:To:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:content-type; b=OKlUs2MMOLFqukTJClcC+hSFDG+SyNmjTyYhmAJQbtxMAHJknPdW7A6mea3XV/pTjofazRtHJc27NiciYgO1Oml4ypkjZuGi7pdj7l3TolxbJj07LTXv8nDqZlPSEEku2cOHcVYp3jMSYyNohF1jvvzs4XogJsXFbTAH9e22ZMU= 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=QclkCzhG; 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="QclkCzhG" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1741136298; 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=QclkCzhGeLQz+hl1CIGLf18lpPPcQ/yXDBA9XESaGdWubtX5GEXceenZpez9CLALDd7b7g S2xa9YsU/pTsFPINh6/9tctq7Zc415vIZxtHW56y6qMjOt5+CtXQAj1qRyouNU9OVqGYqN iIaDgbeO147ZHoe3OMS4VTniFuNVQxk= 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-609-a94-wshYO9mDF9V3316y8g-1; Tue, 04 Mar 2025 19:57:58 -0500 X-MC-Unique: a94-wshYO9mDF9V3316y8g-1 X-Mimecast-MFC-AGG-ID: a94-wshYO9mDF9V3316y8g_1741136277 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-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 40A7D1954B20 for ; Wed, 5 Mar 2025 00:57:57 +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 13243180094C for ; Wed, 5 Mar 2025 00:57:56 +0000 (UTC) Received: from aion.redhat.com (localhost [IPv6:::1]) by aion.redhat.com (Postfix) with ESMTP id 7C7FC33728D for ; Tue, 04 Mar 2025 19:57:55 -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: Tue, 4 Mar 2025 19:57:46 -0500 Message-ID: <20250305005755.697599-3-smayhew@redhat.com> In-Reply-To: <20250305005755.697599-1-smayhew@redhat.com> References: <20250305005755.697599-1-smayhew@redhat.com> Precedence: bulk X-Mailing-List: kdevops@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: n25GhAyBczw2D0XbiFfvzoIQP38hCPLrBrootAEFlnQ_1741136277 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