Upload full logs instead of only the results junit

This includes all pod logs and systemd logs.
It increases the filesize significantly:
3.3MB for a quickrun with 5 nodes.
This commit is contained in:
Otto Bittner 2022-11-29 10:49:10 +01:00
parent 176dae317f
commit e9ec9f2f29
2 changed files with 9 additions and 4 deletions

View File

@ -2,6 +2,9 @@ name: sonobuoy
description: "Execute the e2e test framework sonobuoy."
inputs:
cloudProvider:
description: "CSP name necessary for artifact naming."
required: true
sonobuoyVersion:
description: "Version of sonobuoy test CLI to use."
default: "0.56.12"
@ -28,7 +31,7 @@ runs:
run: sonobuoy version
shell: bash
- name: Run quick e2e test
- name: Run e2e test
shell: bash
env:
KUBECONFIG: ${{ inputs.kubeconfig }}
@ -38,14 +41,14 @@ runs:
shell: bash
env:
KUBECONFIG: ${{ inputs.kubeconfig }}
run: sonobuoy retrieve -x --kubeconfig constellation-admin.conf
run: sonobuoy retrieve --kubeconfig constellation-admin.conf
- name: Upload test results
if: ${{ always() && !env.ACT }}
uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # tag=v3.1.1
with:
name: "junit_01.xml"
path: "**/junit_01.xml"
name: "sonobuoy_logs_${{ inputs.cloudProvider}}.tar.gz"
path: "*_sonobuoy_*.tar.gz"
- name: Publish test results
if: ${{ !env.ACT }}

View File

@ -175,6 +175,7 @@ runs:
with:
sonobuoyTestSuiteCmd: "--mode quick"
kubeconfig: ${{ steps.constellation-create.outputs.kubeconfig }}
cloudProvider: ${{ inputs.cloudProvider }}
- name: Run sonobuoy full test
if: inputs.test == 'sonobuoy full'
@ -183,6 +184,7 @@ runs:
# TODO: Remove E2E_SKIP once AB#2174 is resolved
sonobuoyTestSuiteCmd: '--plugin e2e --plugin-env e2e.E2E_FOCUS="\[Conformance\]" --plugin-env e2e.E2E_SKIP="for service with type clusterIP|HostPort validates that there is no conflict between pods with same hostPort but different hostIP and protocol" --plugin https://raw.githubusercontent.com/vmware-tanzu/sonobuoy-plugins/master/cis-benchmarks/kube-bench-plugin.yaml --plugin https://raw.githubusercontent.com/vmware-tanzu/sonobuoy-plugins/master/cis-benchmarks/kube-bench-master-plugin.yaml'
kubeconfig: ${{ steps.constellation-create.outputs.kubeconfig }}
cloudProvider: ${{ inputs.cloudProvider }}
- name: Run autoscaling test
if: inputs.test == 'autoscaling'