public inbox for kdevops@lists.linux.dev
 help / color / mirror / Atom feed
* [PATCH] fstests: collect ${seq}.*.fsx{good,bad,log} results too
@ 2025-04-18 19:02 Luis Chamberlain
  0 siblings, 0 replies; only message in thread
From: Luis Chamberlain @ 2025-04-18 19:02 UTC (permalink / raw)
  To: Chuck Lever, Daniel Gomez, kdevops; +Cc: tytso, Luis Chamberlain

Ted suggests to collect these files too.

Suggested-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
---

I'll let the automatic kdevops CI which will run this after it hits
patchwork run this and see if it works. If it does, then we can apply it.
Every single patch posted to kdevops list triggers a simple fstests
test, and a hit to the kdevops-results-archive --> dashboard.

 playbooks/roles/fstests/tasks/main.yml | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/playbooks/roles/fstests/tasks/main.yml b/playbooks/roles/fstests/tasks/main.yml
index eab35fba026c..e134ee1043dd 100644
--- a/playbooks/roles/fstests/tasks/main.yml
+++ b/playbooks/roles/fstests/tasks/main.yml
@@ -1377,6 +1377,17 @@
     patterns: "*.out.bad"
   register: failed_tests
 
+- name: Look for all other test attribute files
+  tags: [ 'oscheck', 'fstests', 'copy_results', 'test_artifacts' ]
+  become: yes
+  become_flags: 'su - -c'
+  become_method: sudo
+  find:
+    paths: "{{ fstests_data_target }}"
+    recurse: yes
+    patterns: "*.fsx{good,bad,log}"
+  register: test_artifacts
+
 - name: Look for TFB results files
   tags: [ 'copy_results', 'failed_tests', 'tfb' ]
   become: yes
@@ -1472,6 +1483,21 @@
     - not fstests_tfp_copy_enable_list|bool
     - failed_tests.matched > 0
 
+- name: Copy over all other test attribute files for test results
+  tags: [ 'oscheck', 'fstests', 'copy_results', 'copy_final', 'test_artifacts', 'tfb' ]
+  vars:
+    item_path_without_host: "{{ item.path | regex_replace('results') | regex_replace(ansible_host) }}"
+  fetch:
+    src: "{{ item.path }}"
+    dest: "{{ fstests_results_target }}/{{ item_path_without_host | regex_replace(fstests_data_target | regex_escape()) | regex_replace('^/', '') }}"
+    flat: yes
+    validate_checksum: False
+  with_items: "{{ test_artifacts.files }}"
+  loop_control:
+    label: "{{ item.path | regex_replace(fstests_data_target | regex_escape()) | regex_replace('^/', '') }}"
+  when:
+    - test_artifacts.matched > 0
+
 - name: Check if respective bad full file exists
   tags: [ 'oscheck', 'fstests', 'copy_results', 'failed_tests' ]
   become: yes
-- 
2.47.2


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2025-04-18 19:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-18 19:02 [PATCH] fstests: collect ${seq}.*.fsx{good,bad,log} results too Luis Chamberlain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox