This is an automated email from the ASF dual-hosted git repository.
adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ratis.git
The following commit(s) were added to refs/heads/master by this push:
new 7f85d46df RATIS-2289. Coverage is 0% due to no execution data files
provided (#1255)
7f85d46df is described below
commit 7f85d46dfebd123b72a3728fe8c2d23ee476bd0f
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Fri May 9 06:50:54 2025 +0200
RATIS-2289. Coverage is 0% due to no execution data files provided (#1255)
---
.github/workflows/check.yaml | 3 +--
.github/workflows/ci.yaml | 3 ++-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml
index be5718f7e..1655d6014 100644
--- a/.github/workflows/check.yaml
+++ b/.github/workflows/check.yaml
@@ -79,7 +79,7 @@ on:
env:
MAVEN_ARGS: --batch-mode --show-version
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false
-Dmaven.wagon.http.retryHandler.class=standard
-Dmaven.wagon.http.retryHandler.count=3
- WITH_COVERAGE: true
+ WITH_COVERAGE: ${{ github.event_name == 'push' }}
jobs:
check:
@@ -157,7 +157,6 @@ jobs:
dev-support/checks/${{ inputs.script }}.sh ${{ inputs.script-args }}
env:
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
- WITH_COVERAGE: ${{ inputs.with-coverage }}
- name: Summary of failures
if: ${{ failure() }}
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index 072bb3505..20704f5ea 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -106,7 +106,7 @@ jobs:
- unit
runs-on: ubuntu-24.04
timeout-minutes: 30
- if: (github.repository == 'apache/ratis' || github.repository ==
'apache/incubator-ratis') && github.event_name != 'pull_request'
+ if: github.event_name != 'pull_request'
steps:
- name: Checkout project
uses: actions/checkout@v4
@@ -137,6 +137,7 @@ jobs:
- name: Calculate combined coverage
run: ./dev-support/checks/coverage.sh
- name: Upload coverage to Sonar
+ if: github.repository == 'apache/ratis'
run: ./dev-support/checks/sonar.sh
env:
SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }}