tweak results organization and reporting
cover tweak results organization and reporting
I do most of my kdevops runs under buildbot. Currently I don't have an easy way to view test results in buildbot's web interface.
The first four patches implement a "last-run" directory and "last-kernel.txt" file similar to what the fstests workflow already has. This is mainly to facilitate the remaining patches, but I think it will also make it easier for me to feed my test results into other tooling in the future.
The remaining patches add a "<workflow>-show-results" makefile target, which basically print the test results to the standard output. The results for the most recent run are printed by default, but that can be changed by overriding the LAST_KERNEL variable. The results printed varies from workflow to workflow, and can be overidden via the PATTERN variable.
Scott Mayhew (9):
pynfs: add last-run directory and last-kernel.txt to the results
nfstest: add last-run directory and last-kernel.txt to the results
gitr: add last-run directory and last-kernel.txt to the results
ltp: add last-run directory and last-kernel.txt to the results
fstests: add makefile target to show test results
pynfs: add makefile target to show test results
nfstest: add makefile target to show test results
gitr: add makefile target to show test results
ltp: add makefile target to show test results
playbooks/roles/gitr/tasks/main.yml | 59 +++++++++++++++++++++---- playbooks/roles/ltp/tasks/main.yml | 60 ++++++++++++++++++++++++-- playbooks/roles/nfstest/tasks/main.yml | 60 ++++++++++++++++++++++---- playbooks/roles/pynfs/tasks/main.yml | 38 +++++++++++++++- workflows/fstests/Makefile | 16 +++++++ workflows/gitr/Makefile | 21 +++++++++ workflows/ltp/Makefile | 21 +++++++++ workflows/nfstest/Makefile | 17 ++++++++ workflows/pynfs/Makefile | 12 ++++++ 9 files changed, 282 insertions(+), 22 deletions(-)
Signature · 1 line
2.48.1
PATCH 1/9 pynfs: add last-run directory and last-kernel.txt to the results
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.
--- playbooks/roles/pynfs/tasks/main.yml | 38 ++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-)
playbooks/roles/pynfs/tasks/main.yml +36 -2
@@ -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
Signature · 1 line
2.48.1
PATCH 2/9 nfstest: add last-run directory and last-kernel.txt to the results
In reply to Scott MayhewCreate 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.
--- playbooks/roles/nfstest/tasks/main.yml | 60 ++++++++++++++++++++++---- 1 file changed, 52 insertions(+), 8 deletions(-)
playbooks/roles/nfstest/tasks/main.yml +52 -8
@@ -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
Signature · 1 line
2.48.1
PATCH 3/9 gitr: add last-run directory and last-kernel.txt to the results
In reply to Scott MayhewCreate 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.
--- playbooks/roles/gitr/tasks/main.yml | 59 +++++++++++++++++++++++++---- 1 file changed, 51 insertions(+), 8 deletions(-)
playbooks/roles/gitr/tasks/main.yml +51 -8
@@ -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
Signature · 1 line
2.48.1
PATCH 4/9 ltp: add last-run directory and last-kernel.txt to the results
In reply to Scott MayhewCreate 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.
--- playbooks/roles/ltp/tasks/main.yml | 60 ++++++++++++++++++++++++++++-- 1 file changed, 56 insertions(+), 4 deletions(-)
playbooks/roles/ltp/tasks/main.yml +56 -4
@@ -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:
@@ -194,7 +229,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 }}"
@@ -216,7 +251,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 }}"
@@ -224,3 +259,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
Signature · 1 line
2.48.1
PATCH 5/9 fstests: add makefile target to show test results
In reply to Scott MayhewAdd 'fstests-show-results' makefile target to show test results.
Under the hood, it more or less just does 'find ... | xargs cat'.
By default, the result.xml 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-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 summary:
$ PATTERN="\( -name xunit_results.txt \)" make fstests-show-results
or to see the summary 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 xunit_results.txt \)" make fstests-show-results
--- workflows/fstests/Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
workflows/fstests/Makefile +16 -0
@@ -115,6 +115,14 @@ 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 + +ifndef PATTERN +PATTERN := -name result.xml +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 +226,14 @@ fstests-dev-results: $(KDEVOPS_EXTRA_VARS) --extra-vars=@./extra_vars.yaml \ $(LIMIT_HOSTS) +fstests-show-results: +ifdef LAST_KERNEL + @find workflows/fstests/results/$(LAST_KERNEL) -type f $(PATTERN) \ + | xargs -I {} bash -c 'echo "{}:"; cat {}; echo;' +else + @echo "No results." +endif + fstests-help-menu: @echo "fstests options:" @echo "fstests - Git clones fstests, builds and install it"
Signature · 1 line
2.48.1
Re: [PATCH 5/9] fstests: add makefile target to show test results
Quoted 1 line · Scott Mayhew
Add 'fstests-show-results' makefile target to show test results.
Yay!
Quoted 42 lines
Under the hood, it more or less just does 'find ... | xargs cat'.
By default, the result.xml files will be shown for the most recent kernel run. You can show the results for a different kernel by overriding the
LAST_KERNELvariable, e.g.$ LAST_KERNEL=6.13.4-300.fc41.x86_64 make fstests-show-resultsYou can change the files being shown by overriding the PATTERN variable. For example, to just see the summary:
$ PATTERN="\( -name xunit_results.txt \)" make fstests-show-resultsor to see the summary and the bad results:
$ PATTERN="\( -name xunit_results.txt -o -name \"*.bad\" \)" make fstests-show-resultsor you can do any combination thereof, e.g.
$ LAST_KERNEL=6.13.4-300.fc41.x86_64 PATTERN="\( -name xunit_results.txt \)" make fstests-show-resultsSigned-off-by Scott Mayhew <[email protected]>--- workflows/fstests/Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)workflows/fstests/Makefile +8
-0@@ -115,6 +115,14 @@ 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 + +ifndef PATTERN +PATTERN := -name result.xml +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)
workflows/fstests/Makefile fstests-dev-results: $(KDEVOPS_EXTRA_VARS) · line 232
Quoted 7 lines
workflows/fstests/Makefile +4
-0@@ -218,6 +226,14 @@ fstests-dev-results: $(KDEVOPS_EXTRA_VARS) --extra-vars=@./extra_vars.yaml \ $(LIMIT_HOSTS) +fstests-show-results: +ifdef LAST_KERNEL + @find workflows/fstests/results/$(LAST_KERNEL) -type f $(PATTERN) \ + | xargs -I {} bash -c 'echo "{}:"; cat {}; echo;'
xml results are not human-friendly, and we already do post processing to unify each of the guest sections to one human friendly output into the file xunit_results.txt.
Which is why to support kdevops-ci [0] for fstests we have an "xfs" branch [1] which uses this file to output to the ci.commit_extra file when we run tests on kdevops's github runners to test XFS. The kdevops repo has a kdevops_archive role for which its main task file, playbooks/roles/kdevops_archive/tasks/main.yml looks for this ci.commit_extra file, if present will use it to commit the results into the results repo kdevops-results-archive [1]. The page for ci for fstests to kdevops [3] documents how the github runners work, and the XFS specific documentaiton page [4] has links to the persistent kevops-results-archive results such as, which is essentially a way to easily see commits into kdevops-results-archive related to XFS testing. Sadly I don't see that propagating well but previous results do have it such as [6] and [7] on the commit log. Since we rotate kdevops-results-archive by epoch once the archive fills to capacity we rotate to a new empty results archive so older results are in epoch archives.
The xunit_results.txt is built by kdevops playbooks/roles/fstests/tasks/main.yml task:
- name: Print fstests results to xunit_results.txt on localhost if xunit xml file was found
local_action: "shell ./python/workflows/fstests/gen_results_summary --results_file result.xml --print_section --output_file {{ fstests_results_target }}/{{ last_kernel }}/xunit_results.txt {{ fstests_results_target }}/"
tags: [ 'oscheck', 'fstests', 'copy_results', 'print_results', 'augment_expunge_list' ]
when:
- xunit_files.matched > 0
run_once: true
That python script is in playbooks/python/workflows/fstests/gen_results_summary
Essentially this is something like what should aim to get back as results:
Detailed test report:
KERNEL: 6.13.0-rc6+ CPUS: 8
xfs_crc_logdev: 1154 tests, 22 failures, 452 skipped, 13924 seconds
Failures: generic/042 generic/054 generic/055 generic/081
generic/108 generic/361 generic/459 generic/704 generic/730
generic/731 generic/741 generic/746 xfs/078 xfs/157 xfs/158
xfs/160 xfs/161 xfs/188 xfs/294 xfs/597 xfs/598 xfs/604
xfs_crc_rtdev_extsize_28k: 1154 tests, 10 failures, 508 skipped, 14096 seconds
Failures: generic/741 xfs/078 xfs/185 xfs/188 xfs/597 xfs/598
xfs/629 xfs/630 xfs/631 xfs/632
xfs_nocrc: 1154 tests, 10 failures, 431 skipped, 14585 seconds
Failures: generic/741 generic/753 xfs/078 xfs/188 xfs/189 xfs/348
xfs/597 xfs/598 xfs/803 xfs/804
xfs_nocrc_4k: 1154 tests, 11 failures, 432 skipped, 14613 seconds
Failures: generic/741 generic/753 xfs/078 xfs/188 xfs/189 xfs/301
xfs/348 xfs/597 xfs/598 xfs/803 xfs/804xfs_crc: 1154 tests, 5 failures, 419 skipped, 14778 seconds
Failures: generic/741 xfs/078 xfs/188 xfs/597 xfs/598xfs_crc_rtdev_extsize_64k: 1154 tests, 7 failures, 481 skipped, 14890 seconds
Failures: generic/741 xfs/078 xfs/188 xfs/597 xfs/598 xfs/629
xfs/632
xfs_crc_rtdev: 1154 tests, 5 failures, 477 skipped, 14897 seconds
Failures: generic/741 xfs/078 xfs/188 xfs/597 xfs/598xfs_crc_logdev_rtdev: 1154 tests, 19 failures, 482 skipped, 15098 seconds
Failures: generic/042 generic/054 generic/081 generic/108
generic/361 generic/459 generic/704 generic/730 generic/731
generic/741 generic/746 xfs/002 xfs/078 xfs/157 xfs/188 xfs/294
xfs/597 xfs/598 xfs/604
xfs_nocrc_2k: 1154 tests, 9 failures, 432 skipped, 15504 seconds
Failures: generic/741 xfs/078 xfs/188 xfs/189 xfs/348 xfs/597
xfs/598 xfs/803 xfs/804
xfs_nocrc_1k: 1154 tests, 10 failures, 435 skipped, 16748 seconds
Failures: generic/741 xfs/078 xfs/188 xfs/189 xfs/348 xfs/597
xfs/598 xfs/629 xfs/803 xfs/804
xfs_nocrc_512: 1154 tests, 14 failures, 438 skipped, 18325 seconds
Failures: generic/219 generic/741 xfs/008 xfs/071 xfs/078 xfs/188
xfs/189 xfs/301 xfs/348 xfs/597 xfs/598 xfs/629 xfs/803 xfs/804
xfs_reflink_8k_4ks: 1154 tests, 7 failures, 143 skipped, 20860 seconds
Failures: generic/741 xfs/078 xfs/157 xfs/188 xfs/529 xfs/597
xfs/598
xfs_reflink_normapbt: 1154 tests, 8 failures, 142 skipped, 21048 seconds
Failures: generic/741 xfs/059 xfs/078 xfs/157 xfs/188 xfs/301
xfs/597 xfs/598
xfs_reflink_logdev: 1154 tests, 19 failures, 150 skipped, 21990 seconds
Failures: generic/042 generic/054 generic/055 generic/081
generic/108 generic/361 generic/459 generic/704 generic/730
generic/731 generic/741 generic/746 xfs/078 xfs/188 xfs/294
xfs/507 xfs/597 xfs/598 xfs/604
xfs_reflink_16k_4ks: 1154 tests, 7 failures, 143 skipped, 22088 seconds
Failures: generic/102 generic/741 xfs/078 xfs/157 xfs/188 xfs/597
xfs/598xfs_reflink: 1154 tests, 6 failures, 121 skipped, 22144 seconds
Failures: generic/741 xfs/078 xfs/157 xfs/188 xfs/597 xfs/598xfs_reflink_4k: 1154 tests, 6 failures, 137 skipped, 22209 seconds
Failures: generic/741 xfs/078 xfs/157 xfs/188 xfs/597 xfs/598xfs_reflink_nrext64: 1154 tests, 7 failures, 121 skipped, 22240 seconds
Failures: generic/670 generic/741 xfs/078 xfs/157 xfs/188 xfs/597
xfs/598
xfs_reflink_dir_bsize_8k: 1154 tests, 6 failures, 121 skipped, 22526 seconds
Failures: generic/741 xfs/078 xfs/157 xfs/188 xfs/597 xfs/598xfs_reflink_stripe_len: 1154 tests, 7 failures, 123 skipped, 22714 seconds
Failures: generic/741 xfs/059 xfs/078 xfs/157 xfs/188 xfs/597
xfs/598
xfs_reflink_2k: 1154 tests, 6 failures, 138 skipped, 23596 seconds
Failures: generic/741 xfs/078 xfs/157 xfs/188 xfs/597 xfs/598xfs_reflink_32k_4ks: 1154 tests, 8 failures, 146 skipped, 23850 seconds
Failures: generic/102 generic/172 generic/741 xfs/078 xfs/157
xfs/188 xfs/597 xfs/598
xfs_reflink_1024: 1154 tests, 8 failures, 125 skipped, 26285 seconds
Failures: generic/741 xfs/078 xfs/157 xfs/168 xfs/188 xfs/597
xfs/598 xfs/629
xfs_reflink_64k_4ks: 1154 tests, 26 failures, 147 skipped, 27644 seconds
Failures: generic/048 generic/102 generic/133 generic/172
generic/251 generic/299 generic/347 generic/459 generic/562
generic/741 xfs/009 xfs/066 xfs/078 xfs/129 xfs/139 xfs/140
xfs/157 xfs/169 xfs/188 xfs/229 xfs/234 xfs/236 xfs/503 xfs/508
xfs/597 xfs/598Totals: 27696 tests, 6744 skipped, 243 failures, 0 errors, 429867s
So if you add support for fstests-show-results to use this, I can just modify the kdevops-ci xfs branch like this:
.github/workflows/kdevops-fstests.yml +1 -1
@@ -1715,7 +1715,7 @@ jobs: sleep 60 done - find workflows/fstests/results/last-run -name xunit_results.txt -type f -exec cat {} \; > ci.commit_extra || true + make fstests-show-results > ci.commit_extra if ! grep -E "failures, [1-9]|errors, [1-9]" ci.commit_extra; then echo "ok" > ci.result fi
workflows/fstests/Makefile fstests-dev-results: $(KDEVOPS_EXTRA_VARS) · line 235
Quoted 3 lines
workflows/fstests/Makefile +3
-0+else + @echo "No results." +endif
Notice though that if $(make fstests-show-results) fails the CI will fail so I think the above is fine as it does not return non-zero if the results file is not present.
[0] https://github.com/linux-kdevops/kdevops/blob/main/docs/kernel-ci/README.md
[1] https://github.com/linux-kdevops/kdevops-ci/tree/xfs
[2] https://github.com/linux-kdevops/kdevops-results-archive
[3] https://github.com/linux-kdevops/kdevops/blob/main/docs/kernel-ci/linux-filesystems-kdevops-CI-testing.md
[4] https://github.com/linux-kdevops/kdevops/blob/main/docs/kernel-ci/linux-xfs-kdevops-ci.md
[5] https://github.com/search?q=repo%3Alinux-kdevops%2Fkdevops-results-archive+is%3Acommit+%22linux-xfs-kpd%3A%22&type=commits
[6] https://github.com/linux-kdevops/kdevops-results-archive-2025-05/commit/d105803b5f1e9db44078dac149b285917a3aecaf
[7] https://github.com/linux-kdevops/kdevops-results-archive-2025-05/commit/1b94c7227e58c0fb8e3f6362fd59e482d373c433
Luis
PATCH 6/9 pynfs: add makefile target to show test results
In reply to Scott MayhewAdd '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
--- workflows/pynfs/Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+)
workflows/pynfs/Makefile +12 -0
@@ -24,6 +24,10 @@ 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 + # Makefile for pynfs targets pynfs: $(Q)ansible-playbook $(ANSIBLE_VERBOSE) -l baseline,dev \
@@ -63,6 +67,14 @@ 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: +ifdef LAST_KERNEL + @find workflows/pynfs/results/$(LAST_KERNEL) -type f \ + | xargs -I {} bash -c 'echo "{}:"; cat {}; echo -e "\n";' +else + @echo "No results." +endif + pynfs-help-menu: @echo "pynfs options:" @echo "pynfs - Git clone pynfs, build and install it"
Signature · 1 line
2.48.1
PATCH 7/9 nfstest: add makefile target to show test results
In reply to Scott MayhewUnder 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 newer than the timestamp of 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).
--- workflows/nfstest/Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
workflows/nfstest/Makefile +17 -0
@@ -53,6 +53,10 @@ 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 + nfstest: $(Q)ansible-playbook $(ANSIBLE_VERBOSE) -l baseline,dev \ -f 30 -i hosts playbooks/nfstest.yml \
@@ -88,6 +92,19 @@ nfstest-dev-reset: --tags vars,reset \ --extra-vars=@./extra_vars.yaml +nfstest-show-results: +ifdef LAST_KERNEL +ifeq ($(LAST_KERNEL), $(shell cat workflows/nfstest/results/last-kernel.txt 2>/dev/null)) + @find workflows/nfstest/results/$(LAST_KERNEL) -type f $(PATTERN) -newer workflows/nfstest/results/last-run \ + | xargs -I {} bash -c 'echo "{}:"; cat {}; echo;' +else + @find workflows/nfstest/results/$(LAST_KERNEL) -type f $(PATTERN) \ + | xargs -I {} bash -c 'echo "{}:"; cat {}; echo;' +endif +else + @echo "No results." +endif + nfstest-help-menu: @echo "nfstest options:" @echo "nfstest - Git clone nfstest and install it"
Signature · 1 line
2.48.1
PATCH 8/9 gitr: add makefile target to show test results
In reply to Scott MayhewUnder 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 newer than the timestamp of 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).
--- workflows/gitr/Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)
workflows/gitr/Makefile +21 -0
@@ -70,6 +70,14 @@ 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 + +ifndef PATTERN +PATTERN := -name "*.summary" +endif + gitr: $(Q)ansible-playbook $(ANSIBLE_VERBOSE) -l baseline,dev \ -f 30 -i hosts playbooks/gitr.yml \
@@ -103,6 +111,19 @@ 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: +ifdef LAST_KERNEL +ifeq ($(LAST_KERNEL), $(shell cat workflows/gitr/results/last-kernel.txt 2>/dev/null)) + @find workflows/gitr/results/$(LAST_KERNEL) -type f $(PATTERN) -newer workflows/gitr/results/last-run \ + | xargs -I {} bash -c 'echo "{}:"; cat {}; echo;' +else + @find workflows/gitr/results/$(LAST_KERNEL) -type f $(PATTERN) \ + | xargs -I {} bash -c 'echo "{}:"; cat {}; echo;' +endif +else + @echo "No results." +endif + gitr-help-menu: @echo "gitr options:" @echo "gitr - Git clone git, build and install it"
Signature · 1 line
2.48.1
PATCH 9/9 ltp: add makefile target to show test results
In reply to Scott MayhewUnder the hood, it more or less just does 'find ... | xargs cat'.
By default, the "*.failed" 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 full test logs:
$ PATTERN="-name \"*.log\"" make ltp-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 newer than the timestamp of 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).
--- workflows/ltp/Makefile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)
workflows/ltp/Makefile +21 -0
@@ -96,6 +96,14 @@ 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 + +ifndef PATTERN +PATTERN := -name "*.failed" +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 +136,19 @@ ltp-dev-reset: -f 30 -i hosts -l dev playbooks/ltp.yml \ --tags vars,reset --extra-vars=@./extra_vars.yaml +ltp-show-results: +ifdef LAST_KERNEL +ifeq ($(LAST_KERNEL), $(shell cat workflows/ltp/results/last-kernel.txt 2>/dev/null)) + find workflows/ltp/results/$(LAST_KERNEL) -type f $(PATTERN) -newer workflows/ltp/results/last-run \ + | xargs -I {} bash -c 'echo "{}:"; cat {}; echo;' +else + @find workflows/ltp/results/$(LAST_KERNEL) -type f $(PATTERN) \ + | xargs -I {} bash -c 'echo "{}:"; cat {}; echo;' +endif +else + @echo "No results." +endif + ltp-help-menu: @echo "ltp options:" @echo "ltp - Git clone ltp, build and install it"
Signature · 1 line
2.48.1
Quoted 27 lines · Scott Mayhew
I do most of my kdevops runs under buildbot. Currently I don't have an easy way to view test results in buildbot's web interface.
The first four patches implement a "last-run" directory and "last-kernel.txt" file similar to what the fstests workflow already has. This is mainly to facilitate the remaining patches, but I think it will also make it easier for me to feed my test results into other tooling in the future.
The remaining patches add a "<workflow>-show-results" makefile target, which basically print the test results to the standard output. The results for the most recent run are printed by default, but that can be changed by overriding the
LAST_KERNELvariable. The results printed varies from workflow to workflow, and can be overidden via the PATTERN variable.Scott Mayhew (9):
pynfs: add last-run directory and last-kernel.txt to the results
nfstest: add last-run directory and last-kernel.txt to the results
gitr: add last-run directory and last-kernel.txt to the results
ltp: add last-run directory and last-kernel.txt to the results
fstests: add makefile target to show test results
pynfs: add makefile target to show test results
nfstest: add makefile target to show test results
gitr: add makefile target to show test results
ltp: add makefile target to show test results
Quoted 11 lines
playbooks/roles/gitr/tasks/main.yml | 59 +++++++++++++++++++++---- playbooks/roles/ltp/tasks/main.yml | 60 ++++++++++++++++++++++++-- playbooks/roles/nfstest/tasks/main.yml | 60 ++++++++++++++++++++++---- playbooks/roles/pynfs/tasks/main.yml | 38 +++++++++++++++- workflows/fstests/Makefile | 16 +++++++ workflows/gitr/Makefile | 21 +++++++++ workflows/ltp/Makefile | 21 +++++++++ workflows/nfstest/Makefile | 17 ++++++++ workflows/pynfs/Makefile | 12 ++++++ 9 files changed, 282 insertions(+), 22 deletions(-)
Thanks for tackling this.
Adding a "last-run" directory for the newer workflows makes sense to me.
I think we can refine the report format over time, if needed (I haven't looked to closely at those). The main ingredients there are brevity and human-readability. IMO, displaying XML/JSON/YAML in those reports is probably the opposite of brief and readable. ;-) Since the xxML format reports are already available, I don't think we need to be concerned about "backwards compatibility" for the human-consumed reports, so it shouldn't be forbidden to alter the reports fairly freely.
Signature · 1 line
Chuck Lever
Quoted 44 lines · Chuck Lever
Quoted 27 lines · Scott Mayhew
I do most of my kdevops runs under buildbot. Currently I don't have an easy way to view test results in buildbot's web interface.
The first four patches implement a "last-run" directory and "last-kernel.txt" file similar to what the fstests workflow already has. This is mainly to facilitate the remaining patches, but I think it will also make it easier for me to feed my test results into other tooling in the future.
The remaining patches add a "<workflow>-show-results" makefile target, which basically print the test results to the standard output. The results for the most recent run are printed by default, but that can be changed by overriding the
LAST_KERNELvariable. The results printed varies from workflow to workflow, and can be overidden via the PATTERN variable.Scott Mayhew (9):
pynfs: add last-run directory and last-kernel.txt to the results
nfstest: add last-run directory and last-kernel.txt to the results
gitr: add last-run directory and last-kernel.txt to the results
ltp: add last-run directory and last-kernel.txt to the results
fstests: add makefile target to show test results
pynfs: add makefile target to show test results
nfstest: add makefile target to show test results
gitr: add makefile target to show test results
ltp: add makefile target to show test resultsQuoted 11 lines
playbooks/roles/gitr/tasks/main.yml | 59 +++++++++++++++++++++---- playbooks/roles/ltp/tasks/main.yml | 60 ++++++++++++++++++++++++-- playbooks/roles/nfstest/tasks/main.yml | 60 ++++++++++++++++++++++---- playbooks/roles/pynfs/tasks/main.yml | 38 +++++++++++++++- workflows/fstests/Makefile | 16 +++++++ workflows/gitr/Makefile | 21 +++++++++ workflows/ltp/Makefile | 21 +++++++++ workflows/nfstest/Makefile | 17 ++++++++ workflows/pynfs/Makefile | 12 ++++++ 9 files changed, 282 insertions(+), 22 deletions(-)Thanks for tackling this.
Adding a "last-run" directory for the newer workflows makes sense to me.
Quoted 7 lines
I think we can refine the report format over time, if needed (I haven't looked to closely at those). The main ingredients there are brevity and human-readability. IMO, displaying XML/JSON/YAML in those reports is probably the opposite of brief and readable. ;-) Since the xxML format reports are already available, I don't think we need to be concerned about "backwards compatibility" for the human-consumed reports, so it shouldn't be forbidden to alter the reports fairly freely.
Then ... wait for it... later in the future we just parse all this to kidcb and boom, kernel-ci integration.
https://docs.kernelci.org/kcidb/submitter_guide/
Luis