From c0ecfc82c544ccbac1a9de75db0e9f18d5bc8bd4 Mon Sep 17 00:00:00 2001 From: syaojun Date: Sat, 7 Mar 2026 10:57:49 +0800 Subject: [PATCH 1/2] feat: add Codecov integration for coverage reporting --- .github/workflows/ci-jdk11.yml | 8 +++++++ .github/workflows/ci.yml | 8 +++++++ README.md | 1 + README_cn.md | 1 + codecov.yml | 43 ++++++++++++++++++++++++++++++++++ 5 files changed, 61 insertions(+) create mode 100644 codecov.yml diff --git a/.github/workflows/ci-jdk11.yml b/.github/workflows/ci-jdk11.yml index e5878aaa2..8bf1f973c 100644 --- a/.github/workflows/ci-jdk11.yml +++ b/.github/workflows/ci-jdk11.yml @@ -80,3 +80,11 @@ jobs: test_modules="!geaflow/geaflow-dsl/geaflow-dsl-connector/geaflow-dsl-connector-hive," test_modules+="!geaflow/geaflow-dsl/geaflow-dsl-connector-tests" mvn -B -e clean test -Pjdk11 -pl "${test_modules}" -Duser.timezone=Asia/Shanghai -Dlog4j.configuration="log4j.rootLogger=WARN, stdout" + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: "**/target/site/jacoco/jacoco.xml" + fail_ci_if_error: false + verbose: true diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 582cccde3..7edf63476 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -80,3 +80,11 @@ jobs: - name: Build and Test On JDK 8 run: mvn -B -e clean test -Pjdk8 -pl !geaflow/geaflow-plugins/geaflow-store/geaflow-store-vector -Duser.timezone=Asia/Shanghai -Dlog4j.configuration="log4j .rootLogger=WARN, stdout" + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: "**/target/site/jacoco/jacoco.xml" + fail_ci_if_error: false + verbose: true diff --git a/README.md b/README.md index bd5f9de27..6a79aa28c 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ [![License](https://shields.io/github/license/apache/geaflow?logo=apache&label=License&color=blue)](https://www.apache.org/licenses/LICENSE-2.0.html) [![Release](https://shields.io/github/v/release/apache/geaflow.svg?logo=stackblitz&label=Version&color=red)](https://github.com/apache/geaflow/releases) [![Blog](https://badgen.net/static/Blog/github.io/orange?icon=rss)](https://geaflow.github.io/) +[![Codecov](https://codecov.io/gh/apache/geaflow/branch/master/graph/badge.svg)](https://codecov.io/gh/apache/geaflow) > 🌐️ English | [中文](README_cn.md) diff --git a/README_cn.md b/README_cn.md index cac33f368..2e48b3f21 100644 --- a/README_cn.md +++ b/README_cn.md @@ -6,6 +6,7 @@ [![License](https://shields.io/github/license/apache/geaflow?logo=apache&label=License&color=blue)](https://www.apache.org/licenses/LICENSE-2.0.html) [![Release](https://shields.io/github/v/release/apache/geaflow.svg?logo=stackblitz&label=Version&color=red)](https://github.com/apache/geaflow/releases) [![Blog](https://badgen.net/static/Blog/github.io/orange?icon=rss)](https://geaflow.github.io/) +[![Codecov](https://codecov.io/gh/apache/geaflow/branch/master/graph/badge.svg)](https://codecov.io/gh/apache/geaflow) > 🌐️ 中文 | [English](README.md) diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 000000000..7a4c8a0e0 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,43 @@ +################################################################################ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +################################################################################ + +coverage: + status: + project: + default: + target: auto + threshold: 1% + patch: + default: + target: auto + threshold: 1% + +ignore: + - "**/*Test.java" + - "**/*Tests.java" + - "**/test/**" + - "geaflow/geaflow-examples/**" + - "geaflow-console/**" + - "geaflow/geaflow-dashboard/**" + - "docs/**" + +comment: + layout: "reach,diff,flags,files" + behavior: default + require_changes: false From 04ef718904a72caf431c695286195d3f4bdd57d8 Mon Sep 17 00:00:00 2001 From: syaojun Date: Sat, 7 Mar 2026 11:00:23 +0800 Subject: [PATCH 2/2] fix: remove Codecov upload step from CI workflow --- .github/workflows/ci.yml | 8 -------- 1 file changed, 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7edf63476..582cccde3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -80,11 +80,3 @@ jobs: - name: Build and Test On JDK 8 run: mvn -B -e clean test -Pjdk8 -pl !geaflow/geaflow-plugins/geaflow-store/geaflow-store-vector -Duser.timezone=Asia/Shanghai -Dlog4j.configuration="log4j .rootLogger=WARN, stdout" - - - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v4 - with: - token: ${{ secrets.CODECOV_TOKEN }} - files: "**/target/site/jacoco/jacoco.xml" - fail_ci_if_error: false - verbose: true