From 58564715f4b46e9b576e446b974fa7d2332ec094 Mon Sep 17 00:00:00 2001 From: Sourav Maji Date: Tue, 29 Oct 2024 19:55:03 -0700 Subject: [PATCH] [test] Add test reporter in E2E CI workflow --- .../rawWorkflows/gh-ci-parameterized-flow.txt | 5 +- .../workflows/VeniceCI-CompatibilityTests.yml | 2 +- .github/workflows/VeniceCI-E2ETests.yml | 160 +++++++++++------- .../VeniceCI-StaticAnalysisAndUnitTests.yml | 2 +- 4 files changed, 101 insertions(+), 68 deletions(-) diff --git a/.github/rawWorkflows/gh-ci-parameterized-flow.txt b/.github/rawWorkflows/gh-ci-parameterized-flow.txt index c81048f5a7..fca5c2cd2b 100644 --- a/.github/rawWorkflows/gh-ci-parameterized-flow.txt +++ b/.github/rawWorkflows/gh-ci-parameterized-flow.txt @@ -43,8 +43,9 @@ name: ${{ github.job }} Test Reports # Name where it report the test results path: '**/TEST-*.xml' fail-on-error: 'false' - list-tests: 'true' - list-suites: 'failed' + max-annotations: '10' + list-tests: 'all' + list-suites: 'all' reporter: java-junit - name: Upload Build Artifacts if: success() || failure() diff --git a/.github/workflows/VeniceCI-CompatibilityTests.yml b/.github/workflows/VeniceCI-CompatibilityTests.yml index c5d0b1af01..da2b5c2a8c 100644 --- a/.github/workflows/VeniceCI-CompatibilityTests.yml +++ b/.github/workflows/VeniceCI-CompatibilityTests.yml @@ -2,7 +2,7 @@ name: TestsDeCompatibilite -on: [push, pull_request, workflow_dispatch] +on: [workflow_dispatch] jobs: diff --git a/.github/workflows/VeniceCI-E2ETests.yml b/.github/workflows/VeniceCI-E2ETests.yml index b7bb250784..0f94776143 100644 --- a/.github/workflows/VeniceCI-E2ETests.yml +++ b/.github/workflows/VeniceCI-E2ETests.yml @@ -56,8 +56,9 @@ jobs: name: ${{ github.job }} Test Reports # Name where it report the test results path: '**/TEST-*.xml' fail-on-error: 'false' - list-tests: 'true' - list-suites: 'failed' + max-annotations: '10' + list-tests: 'all' + list-suites: 'all' reporter: java-junit - name: Upload Build Artifacts if: success() || failure() @@ -110,8 +111,9 @@ jobs: name: ${{ github.job }} Test Reports # Name where it report the test results path: '**/TEST-*.xml' fail-on-error: 'false' - list-tests: 'true' - list-suites: 'failed' + max-annotations: '10' + list-tests: 'all' + list-suites: 'all' reporter: java-junit - name: Upload Build Artifacts if: success() || failure() @@ -164,8 +166,9 @@ jobs: name: ${{ github.job }} Test Reports # Name where it report the test results path: '**/TEST-*.xml' fail-on-error: 'false' - list-tests: 'true' - list-suites: 'failed' + max-annotations: '10' + list-tests: 'all' + list-suites: 'all' reporter: java-junit - name: Upload Build Artifacts if: success() || failure() @@ -218,8 +221,9 @@ jobs: name: ${{ github.job }} Test Reports # Name where it report the test results path: '**/TEST-*.xml' fail-on-error: 'false' - list-tests: 'true' - list-suites: 'failed' + max-annotations: '10' + list-tests: 'all' + list-suites: 'all' reporter: java-junit - name: Upload Build Artifacts if: success() || failure() @@ -272,8 +276,9 @@ jobs: name: ${{ github.job }} Test Reports # Name where it report the test results path: '**/TEST-*.xml' fail-on-error: 'false' - list-tests: 'true' - list-suites: 'failed' + max-annotations: '10' + list-tests: 'all' + list-suites: 'all' reporter: java-junit - name: Upload Build Artifacts if: success() || failure() @@ -326,8 +331,9 @@ jobs: name: ${{ github.job }} Test Reports # Name where it report the test results path: '**/TEST-*.xml' fail-on-error: 'false' - list-tests: 'true' - list-suites: 'failed' + max-annotations: '10' + list-tests: 'all' + list-suites: 'all' reporter: java-junit - name: Upload Build Artifacts if: success() || failure() @@ -380,8 +386,9 @@ jobs: name: ${{ github.job }} Test Reports # Name where it report the test results path: '**/TEST-*.xml' fail-on-error: 'false' - list-tests: 'true' - list-suites: 'failed' + max-annotations: '10' + list-tests: 'all' + list-suites: 'all' reporter: java-junit - name: Upload Build Artifacts if: success() || failure() @@ -434,8 +441,9 @@ jobs: name: ${{ github.job }} Test Reports # Name where it report the test results path: '**/TEST-*.xml' fail-on-error: 'false' - list-tests: 'true' - list-suites: 'failed' + max-annotations: '10' + list-tests: 'all' + list-suites: 'all' reporter: java-junit - name: Upload Build Artifacts if: success() || failure() @@ -488,8 +496,9 @@ jobs: name: ${{ github.job }} Test Reports # Name where it report the test results path: '**/TEST-*.xml' fail-on-error: 'false' - list-tests: 'true' - list-suites: 'failed' + max-annotations: '10' + list-tests: 'all' + list-suites: 'all' reporter: java-junit - name: Upload Build Artifacts if: success() || failure() @@ -542,8 +551,9 @@ jobs: name: ${{ github.job }} Test Reports # Name where it report the test results path: '**/TEST-*.xml' fail-on-error: 'false' - list-tests: 'true' - list-suites: 'failed' + max-annotations: '10' + list-tests: 'all' + list-suites: 'all' reporter: java-junit - name: Upload Build Artifacts if: success() || failure() @@ -596,8 +606,9 @@ jobs: name: ${{ github.job }} Test Reports # Name where it report the test results path: '**/TEST-*.xml' fail-on-error: 'false' - list-tests: 'true' - list-suites: 'failed' + max-annotations: '10' + list-tests: 'all' + list-suites: 'all' reporter: java-junit - name: Upload Build Artifacts if: success() || failure() @@ -650,8 +661,9 @@ jobs: name: ${{ github.job }} Test Reports # Name where it report the test results path: '**/TEST-*.xml' fail-on-error: 'false' - list-tests: 'true' - list-suites: 'failed' + max-annotations: '10' + list-tests: 'all' + list-suites: 'all' reporter: java-junit - name: Upload Build Artifacts if: success() || failure() @@ -704,8 +716,9 @@ jobs: name: ${{ github.job }} Test Reports # Name where it report the test results path: '**/TEST-*.xml' fail-on-error: 'false' - list-tests: 'true' - list-suites: 'failed' + max-annotations: '10' + list-tests: 'all' + list-suites: 'all' reporter: java-junit - name: Upload Build Artifacts if: success() || failure() @@ -758,8 +771,9 @@ jobs: name: ${{ github.job }} Test Reports # Name where it report the test results path: '**/TEST-*.xml' fail-on-error: 'false' - list-tests: 'true' - list-suites: 'failed' + max-annotations: '10' + list-tests: 'all' + list-suites: 'all' reporter: java-junit - name: Upload Build Artifacts if: success() || failure() @@ -812,8 +826,9 @@ jobs: name: ${{ github.job }} Test Reports # Name where it report the test results path: '**/TEST-*.xml' fail-on-error: 'false' - list-tests: 'true' - list-suites: 'failed' + max-annotations: '10' + list-tests: 'all' + list-suites: 'all' reporter: java-junit - name: Upload Build Artifacts if: success() || failure() @@ -866,8 +881,9 @@ jobs: name: ${{ github.job }} Test Reports # Name where it report the test results path: '**/TEST-*.xml' fail-on-error: 'false' - list-tests: 'true' - list-suites: 'failed' + max-annotations: '10' + list-tests: 'all' + list-suites: 'all' reporter: java-junit - name: Upload Build Artifacts if: success() || failure() @@ -920,8 +936,9 @@ jobs: name: ${{ github.job }} Test Reports # Name where it report the test results path: '**/TEST-*.xml' fail-on-error: 'false' - list-tests: 'true' - list-suites: 'failed' + max-annotations: '10' + list-tests: 'all' + list-suites: 'all' reporter: java-junit - name: Upload Build Artifacts if: success() || failure() @@ -974,8 +991,9 @@ jobs: name: ${{ github.job }} Test Reports # Name where it report the test results path: '**/TEST-*.xml' fail-on-error: 'false' - list-tests: 'true' - list-suites: 'failed' + max-annotations: '10' + list-tests: 'all' + list-suites: 'all' reporter: java-junit - name: Upload Build Artifacts if: success() || failure() @@ -1028,8 +1046,9 @@ jobs: name: ${{ github.job }} Test Reports # Name where it report the test results path: '**/TEST-*.xml' fail-on-error: 'false' - list-tests: 'true' - list-suites: 'failed' + max-annotations: '10' + list-tests: 'all' + list-suites: 'all' reporter: java-junit - name: Upload Build Artifacts if: success() || failure() @@ -1082,8 +1101,9 @@ jobs: name: ${{ github.job }} Test Reports # Name where it report the test results path: '**/TEST-*.xml' fail-on-error: 'false' - list-tests: 'true' - list-suites: 'failed' + max-annotations: '10' + list-tests: 'all' + list-suites: 'all' reporter: java-junit - name: Upload Build Artifacts if: success() || failure() @@ -1136,8 +1156,9 @@ jobs: name: ${{ github.job }} Test Reports # Name where it report the test results path: '**/TEST-*.xml' fail-on-error: 'false' - list-tests: 'true' - list-suites: 'failed' + max-annotations: '10' + list-tests: 'all' + list-suites: 'all' reporter: java-junit - name: Upload Build Artifacts if: success() || failure() @@ -1190,8 +1211,9 @@ jobs: name: ${{ github.job }} Test Reports # Name where it report the test results path: '**/TEST-*.xml' fail-on-error: 'false' - list-tests: 'true' - list-suites: 'failed' + max-annotations: '10' + list-tests: 'all' + list-suites: 'all' reporter: java-junit - name: Upload Build Artifacts if: success() || failure() @@ -1244,8 +1266,9 @@ jobs: name: ${{ github.job }} Test Reports # Name where it report the test results path: '**/TEST-*.xml' fail-on-error: 'false' - list-tests: 'true' - list-suites: 'failed' + max-annotations: '10' + list-tests: 'all' + list-suites: 'all' reporter: java-junit - name: Upload Build Artifacts if: success() || failure() @@ -1298,8 +1321,9 @@ jobs: name: ${{ github.job }} Test Reports # Name where it report the test results path: '**/TEST-*.xml' fail-on-error: 'false' - list-tests: 'true' - list-suites: 'failed' + max-annotations: '10' + list-tests: 'all' + list-suites: 'all' reporter: java-junit - name: Upload Build Artifacts if: success() || failure() @@ -1352,8 +1376,9 @@ jobs: name: ${{ github.job }} Test Reports # Name where it report the test results path: '**/TEST-*.xml' fail-on-error: 'false' - list-tests: 'true' - list-suites: 'failed' + max-annotations: '10' + list-tests: 'all' + list-suites: 'all' reporter: java-junit - name: Upload Build Artifacts if: success() || failure() @@ -1406,8 +1431,9 @@ jobs: name: ${{ github.job }} Test Reports # Name where it report the test results path: '**/TEST-*.xml' fail-on-error: 'false' - list-tests: 'true' - list-suites: 'failed' + max-annotations: '10' + list-tests: 'all' + list-suites: 'all' reporter: java-junit - name: Upload Build Artifacts if: success() || failure() @@ -1460,8 +1486,9 @@ jobs: name: ${{ github.job }} Test Reports # Name where it report the test results path: '**/TEST-*.xml' fail-on-error: 'false' - list-tests: 'true' - list-suites: 'failed' + max-annotations: '10' + list-tests: 'all' + list-suites: 'all' reporter: java-junit - name: Upload Build Artifacts if: success() || failure() @@ -1514,8 +1541,9 @@ jobs: name: ${{ github.job }} Test Reports # Name where it report the test results path: '**/TEST-*.xml' fail-on-error: 'false' - list-tests: 'true' - list-suites: 'failed' + max-annotations: '10' + list-tests: 'all' + list-suites: 'all' reporter: java-junit - name: Upload Build Artifacts if: success() || failure() @@ -1568,8 +1596,9 @@ jobs: name: ${{ github.job }} Test Reports # Name where it report the test results path: '**/TEST-*.xml' fail-on-error: 'false' - list-tests: 'true' - list-suites: 'failed' + max-annotations: '10' + list-tests: 'all' + list-suites: 'all' reporter: java-junit - name: Upload Build Artifacts if: success() || failure() @@ -1622,8 +1651,9 @@ jobs: name: ${{ github.job }} Test Reports # Name where it report the test results path: '**/TEST-*.xml' fail-on-error: 'false' - list-tests: 'true' - list-suites: 'failed' + max-annotations: '10' + list-tests: 'all' + list-suites: 'all' reporter: java-junit - name: Upload Build Artifacts if: success() || failure() @@ -1676,8 +1706,9 @@ jobs: name: ${{ github.job }} Test Reports # Name where it report the test results path: '**/TEST-*.xml' fail-on-error: 'false' - list-tests: 'true' - list-suites: 'failed' + max-annotations: '10' + list-tests: 'all' + list-suites: 'all' reporter: java-junit - name: Upload Build Artifacts if: success() || failure() @@ -1731,8 +1762,9 @@ jobs: name: ${{ github.job }} Test Reports # Name where it report the test results path: '**/TEST-*.xml' fail-on-error: 'false' - list-tests: 'true' - list-suites: 'failed' + max-annotations: '10' + list-tests: 'all' + list-suites: 'all' reporter: java-junit - name: Upload Build Artifacts if: success() || failure() diff --git a/.github/workflows/VeniceCI-StaticAnalysisAndUnitTests.yml b/.github/workflows/VeniceCI-StaticAnalysisAndUnitTests.yml index 1cbc029387..1a0a128cf0 100644 --- a/.github/workflows/VeniceCI-StaticAnalysisAndUnitTests.yml +++ b/.github/workflows/VeniceCI-StaticAnalysisAndUnitTests.yml @@ -1,7 +1,7 @@ # GitHub Actions workflow for running static analysis and unit tests name: AnalyseStatiqueEtTestsUnitaires -on: [push, pull_request, workflow_dispatch] +on: [workflow_dispatch] jobs: ValidateGradleWrapper: