From c14c51321483bc34fb25baf05f99538483274847 Mon Sep 17 00:00:00 2001 From: Ankush Menat Date: Sun, 10 Apr 2022 15:06:38 +0530 Subject: [PATCH] ci: collate codecov reports before uploading Currently due to flake partial reports are submitting which results in constant fluctuation of coverage reports. Change: First collect coverage and if all builds pass then submit it. --- .github/workflows/server-tests-mariadb.yml | 15 ++++++++++++++- codecov.yml | 1 - 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/server-tests-mariadb.yml b/.github/workflows/server-tests-mariadb.yml index 69be7656a6ce..8cc582634a96 100644 --- a/.github/workflows/server-tests-mariadb.yml +++ b/.github/workflows/server-tests-mariadb.yml @@ -118,10 +118,23 @@ jobs: CI_BUILD_ID: ${{ github.run_id }} ORCHESTRATOR_URL: http://test-orchestrator.frappe.io + - name: Upload coverage data + uses: actions/upload-artifact@v3 + with: + name: coverage-${{ matrix.container }} + path: /home/runner/frappe-bench/sites/coverage.xml + + coverage: + name: Coverage Wrap Up + needs: test + runs-on: ubuntu-latest + steps: + - name: Download artifacts + uses: actions/download-artifact@v3 + - name: Upload coverage data uses: codecov/codecov-action@v2 with: name: MariaDB fail_ci_if_error: true - files: /home/runner/frappe-bench/sites/coverage.xml verbose: true diff --git a/codecov.yml b/codecov.yml index 1fa602ab3093..7d9c37d919df 100644 --- a/codecov.yml +++ b/codecov.yml @@ -21,7 +21,6 @@ coverage: comment: layout: "diff, files" require_changes: true - after_n_builds: 3 ignore: - "erpnext/demo"