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