From a54d1cff224b02657d50651571a5f76167d39fc0 Mon Sep 17 00:00:00 2001 From: Birol Bilgin Date: Wed, 31 May 2023 15:16:32 +0200 Subject: [PATCH] ci/workflow: simplify junit uploads Currently, JUnit reports are uploaded with different names This causes 5 different zip archives in the run history. This commit makes all the files uploaded under the same archive file There are changes to report names so that will follow the same naming as the Cilium repository when Junit reporting will be added to it. Signed-off-by: Birol Bilgin --- .github/workflows/kind.yaml | 36 ++++++++++++++---------------------- 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/.github/workflows/kind.yaml b/.github/workflows/kind.yaml index 689f925f44..c7b05d137d 100644 --- a/.github/workflows/kind.yaml +++ b/.github/workflows/kind.yaml @@ -102,16 +102,8 @@ jobs: # Run the connectivity test in non-default namespace (i.e. not cilium-test) cilium connectivity test --debug --all-flows --test-namespace test-namespace \ --include-unsafe-tests \ - --collect-sysdump-on-failure --junit-file connectivity-${{ matrix.mode }}.xml \ - --junit-property mode=${{ matrix.mode }} - - - name: Upload junit output - if: ${{ always() }} - uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 - with: - name: connectivity-${{ matrix.mode }}.xml - path: connectivity-${{ matrix.mode }}.xml - retention-days: 5 + --collect-sysdump-on-failure --junit-file cilium-junit-${{ matrix.mode }}-1.xml \ + --junit-property mode=${{ matrix.mode }} --junit-property type=no-tunnel - name: Uninstall cilium run: | @@ -154,16 +146,16 @@ jobs: run: | cilium connectivity test --debug --force-deploy --all-flows --test-namespace test-namespace \ --include-unsafe-tests \ - --collect-sysdump-on-failure --junit-file connectivity-ipsec-${{ matrix.mode }}.xml \ - --junit-property mode=${{ matrix.mode }} + --collect-sysdump-on-failure --junit-file cilium-junit-${{ matrix.mode }}-2.xml \ + --junit-property mode=${{ matrix.mode }} --junit-property type=ipsec - - name: Upload junit output + - name: Upload JUnit if: ${{ always() }} uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 with: - name: connectivity-ipsec-${{ matrix.mode }}.xml - path: connectivity-ipsec-${{ matrix.mode }}.xml - retention-days: 5 + name: cilium-junits + path: cilium-junit*.xml + retention-days: 2 - name: Cleanup if: ${{ always() }} @@ -306,16 +298,16 @@ jobs: run: | cilium connectivity test --context $CLUSTER1 --multi-cluster $CLUSTER2 --debug \ --include-unsafe-tests \ - --collect-sysdump-on-failure --junit-file connectivity-clustermesh.xml \ - --junit-property mode=clustermesh + --collect-sysdump-on-failure --junit-file cilium-junit-clustermesh-1.xml \ + --junit-property mode=clustermesh --junit-property type=ipsec - - name: Upload junit output + - name: Upload JUnit if: ${{ always() }} uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 with: - name: connectivity-clustermesh.xml - path: connectivity-clustermesh.xml - retention-days: 5 + name: cilium-junits + path: cilium-junit*.xml + retention-days: 2 - name: Cleanup if: ${{ always() }}