From b21bdc5e501bc2244e3e487827ffba79075f6642 Mon Sep 17 00:00:00 2001 From: Noel Georgi Date: Thu, 16 Jan 2025 15:25:31 +0530 Subject: [PATCH] chore(ci): save csi tests fio results Save the CSI tests fio results as GitHub artifacts. Signed-off-by: Noel Georgi --- .github/workflows/ci.yaml | 5 ++++- .github/workflows/integration-qemu-csi-longhorn-cron.yaml | 3 ++- .github/workflows/integration-qemu-csi-openebs-cron.yaml | 3 ++- .github/workflows/integration-qemu-csi-rook-ceph-cron.yaml | 3 ++- .kres.yaml | 3 +++ internal/integration/base/k8s.go | 4 ++++ 6 files changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index bf7361da03..aecb8eae3d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,6 +1,6 @@ # THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT. # -# Generated on 2025-01-16T04:17:04Z by kres 3b3f992. +# Generated on 2025-01-16T11:00:37Z by kres 3b3f992. name: default concurrency: @@ -2959,6 +2959,7 @@ jobs: path: |- /tmp/logs-*.tar.gz /tmp/support-*.zip + /tmp/fio-*.json retention-days: "5" integration-qemu-csi-openebs: permissions: @@ -3060,6 +3061,7 @@ jobs: path: |- /tmp/logs-*.tar.gz /tmp/support-*.zip + /tmp/fio-*.json retention-days: "5" integration-qemu-csi-rook-ceph: permissions: @@ -3160,6 +3162,7 @@ jobs: path: |- /tmp/logs-*.tar.gz /tmp/support-*.zip + /tmp/fio-*.json retention-days: "5" integration-qemu-encrypted-vip: permissions: diff --git a/.github/workflows/integration-qemu-csi-longhorn-cron.yaml b/.github/workflows/integration-qemu-csi-longhorn-cron.yaml index 7c81a0fdc7..463b4853ef 100644 --- a/.github/workflows/integration-qemu-csi-longhorn-cron.yaml +++ b/.github/workflows/integration-qemu-csi-longhorn-cron.yaml @@ -1,6 +1,6 @@ # THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT. # -# Generated on 2024-11-28T13:53:18Z by kres 232fe63. +# Generated on 2025-01-16T11:00:37Z by kres 3b3f992. name: integration-qemu-csi-longhorn-cron concurrency: @@ -122,4 +122,5 @@ jobs: path: |- /tmp/logs-*.tar.gz /tmp/support-*.zip + /tmp/fio-*.json retention-days: "5" diff --git a/.github/workflows/integration-qemu-csi-openebs-cron.yaml b/.github/workflows/integration-qemu-csi-openebs-cron.yaml index 2768faea38..4c687275ea 100644 --- a/.github/workflows/integration-qemu-csi-openebs-cron.yaml +++ b/.github/workflows/integration-qemu-csi-openebs-cron.yaml @@ -1,6 +1,6 @@ # THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT. # -# Generated on 2025-01-16T04:17:04Z by kres 3b3f992. +# Generated on 2025-01-16T11:00:37Z by kres 3b3f992. name: integration-qemu-csi-openebs-cron concurrency: @@ -101,4 +101,5 @@ jobs: path: |- /tmp/logs-*.tar.gz /tmp/support-*.zip + /tmp/fio-*.json retention-days: "5" diff --git a/.github/workflows/integration-qemu-csi-rook-ceph-cron.yaml b/.github/workflows/integration-qemu-csi-rook-ceph-cron.yaml index 547d259895..0474b74302 100644 --- a/.github/workflows/integration-qemu-csi-rook-ceph-cron.yaml +++ b/.github/workflows/integration-qemu-csi-rook-ceph-cron.yaml @@ -1,6 +1,6 @@ # THIS FILE WAS AUTOMATICALLY GENERATED, PLEASE DO NOT EDIT. # -# Generated on 2024-11-28T13:53:18Z by kres 232fe63. +# Generated on 2025-01-16T11:00:37Z by kres 3b3f992. name: integration-qemu-csi-rook-ceph-cron concurrency: @@ -100,4 +100,5 @@ jobs: path: |- /tmp/logs-*.tar.gz /tmp/support-*.zip + /tmp/fio-*.json retention-days: "5" diff --git a/.kres.yaml b/.kres.yaml index 179b5441d5..bbda8368d7 100644 --- a/.kres.yaml +++ b/.kres.yaml @@ -1356,6 +1356,7 @@ spec: artifactPath: /tmp/logs-*.tar.gz additionalArtifacts: - "/tmp/support-*.zip" + - "/tmp/fio-*.json" - name: integration-qemu-csi-longhorn buildxOptions: enabled: true @@ -1436,6 +1437,7 @@ spec: artifactPath: /tmp/logs-*.tar.gz additionalArtifacts: - "/tmp/support-*.zip" + - "/tmp/fio-*.json" - name: integration-qemu-csi-openebs buildxOptions: enabled: true @@ -1496,6 +1498,7 @@ spec: artifactPath: /tmp/logs-*.tar.gz additionalArtifacts: - "/tmp/support-*.zip" + - "/tmp/fio-*.json" - name: integration-images buildxOptions: enabled: true diff --git a/internal/integration/base/k8s.go b/internal/integration/base/k8s.go index 184ef0bcdd..ec7c8f1c57 100644 --- a/internal/integration/base/k8s.go +++ b/internal/integration/base/k8s.go @@ -639,6 +639,10 @@ func (k8sSuite *K8sSuite) WaitForResource(ctx context.Context, namespace, group, // RunFIOTest runs the FIO test with the given storage class and size using kubestr. func (k8sSuite *K8sSuite) RunFIOTest(ctx context.Context, storageClasss, size string) error { args := []string{ + "--outfile", + fmt.Sprintf("/tmp/fio-%s.json", storageClasss), + "--output", + "json", "fio", "--storageclass", storageClasss,