Skip to contentSkip to conversation

fstests: collect ${seq}.*.fsx{good,bad,log} results too

PATCH New Luis Chamberlain 1 participant 1 message Apr 18, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fstests: collect ${seq}.*.fsx{good,bad,log} results too

Ted suggests to collect these files too.

---

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(+)
playbooks/roles/fstests/tasks/main.yml +26 -0
index eab35fba026c..e134ee1043dd 100644
@@ -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
Signature · 1 line
2.47.2