Skip to content

Commit

Permalink
Fix codecov configs
Browse files Browse the repository at this point in the history
1. Notify config should be under codecov group, not coverage group
2. Remove codecov.notify.after_n_builds limit so that code coverage
is always available as a GitHub check, no matter how many codecov
reports are uploaded
3. Disable pull request comment feature since it is annoying and
unstable
4. Name codecov reports
5. Turn on patch status check
6. Add fetch-depth config to fix issue reported at
codecov/codecov-action#190

Signed-off-by: Boxuan Li <[email protected]>
  • Loading branch information
li-boxuan committed Feb 24, 2021
1 parent a5ced0c commit 0aa3e4c
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,21 @@
# See the License for the specific language governing permissions and
# limitations under the License.

coverage:
codecov:
notify:
after_n_builds: 30
wait_for_ci: yes

coverage:
status:
patch: off
patch:
default:
threshold: 5
project:
default:
# allow test coverage to drop by 2%, assume that it's typically due to CI problems
threshold: 2

comment:
after_n_builds: 30
comment: false

# Ignore test files
ignore:
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/ci-backend-cql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,24 +62,35 @@ jobs:
include:
- module: cql
args: "-Pcassandra3-byteordered -Dtest=\"**/diskstorage/cql/*\""
name: byteordered-diskstorage
- module: cql
args: "-Pcassandra3-murmur -Dtest=\"**/diskstorage/cql/*\""
name: murmur-diskstorage
- module: cql
args: "-Pcassandra3-byteordered -Dtest=\"**/graphdb/cql/*\""
name: byteordered-graphdb
- module: cql
args: "-Pcassandra3-murmur -Dtest=\"**/graphdb/cql/*\""
name: murmur-graphdb
- module: cql
args: "-Pcassandra3-murmur -Dtest=\"**/hadoop/*\""
name: murmur-hadoop
- module: cql
args: "-Pcassandra3-byteordered -Dtest=\"**/core/cql/*\""
name: byteordered-core
- module: cql
args: "-Pcassandra3-murmur -Dtest=\"**/core/cql/*\""
name: murmur-core
- module: cql
args: "-Pcassandra3-murmur-ssl -Dtest=\"**/diskstorage/cql/CQLStoreTest.java\""
name: murmur-ssl
- module: cql
args: "-Pcassandra3-murmur-client-auth -Dtest=\"**/diskstorage/cql/CQLStoreTest.java\""
name: murmur-client-auth
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- uses: actions/cache@v2
with:
path: ~/.m2/repository
Expand All @@ -95,3 +106,5 @@ jobs:
if: "github.event_name == 'push' && contains(github.event.head_commit.message, '[cql-tests]') || github.event_name == 'pull_request' && contains(github.event.pull_request.title, '[cql-tests]')"
run: mvn verify --projects janusgraph-${{ matrix.module }} -Dcassandra.docker.version=3.0.18' ${{ env.VERIFY_MAVEN_OPTS }} ${{ matrix.args }}
- uses: codecov/codecov-action@v1
with:
name: codecov-cql-${{ matrix.name }}
10 changes: 10 additions & 0 deletions .github/workflows/ci-backend-hbase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,21 +62,29 @@ jobs:
include:
- module: hbase-parent/janusgraph-hbase-10
args: "-Dtest=\"**/diskstorage/hbase/*\""
name: hbase-10-diskstorage
- module: hbase-parent/janusgraph-hbase-10
args: "-Dtest=\"**/graphdb/hbase/*\""
name: hbase-10-graphdb
- module: hbase-parent/janusgraph-hbase-10
args: "-Dtest=\"**/hadoop/*\""
name: hbase-10-hadoop
- module: hbase-parent/janusgraph-hbase-10
install-args: "-Dhbase.profile -Phbase2"
args: "-Dtest=\"**/diskstorage/hbase/*\""
name: hbase-2-diskstorage
- module: hbase-parent/janusgraph-hbase-10
install-args: "-Dhbase.profile -Phbase2"
args: "-Dtest=\"**/graphdb/hbase/*\""
name: hbase-2-graphdb
- module: hbase-parent/janusgraph-hbase-10
install-args: "-Dhbase.profile -Phbase2"
args: "-Dtest=\"**/hadoop/*\""
name: hbase-2-hadoop
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- uses: actions/cache@v2
with:
path: ~/.m2/repository
Expand All @@ -89,3 +97,5 @@ jobs:
- run: mvn clean install --projects janusgraph-${{ matrix.module }} ${{ env.BUILD_MAVEN_OPTS }} ${{ matrix.install-args }}
- run: mvn verify --projects janusgraph-${{ matrix.module }} ${{ env.VERIFY_MAVEN_OPTS }} ${{ matrix.args }}
- uses: codecov/codecov-action@v1
with:
name: codecov-hbase-${{ matrix.name }}
4 changes: 4 additions & 0 deletions .github/workflows/ci-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ jobs:
- module: lucene
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- uses: actions/cache@v2
with:
path: ~/.m2/repository
Expand All @@ -80,3 +82,5 @@ jobs:
- run: mvn clean install --projects janusgraph-${{ matrix.module }} ${{ env.BUILD_MAVEN_OPTS }} ${{ matrix.install-args }}
- run: mvn verify --projects janusgraph-${{ matrix.module }} ${{ env.VERIFY_MAVEN_OPTS }} ${{ matrix.args }}
- uses: codecov/codecov-action@v1
with:
name: codecov-core-${{ matrix.module }}
7 changes: 7 additions & 0 deletions .github/workflows/ci-index-es.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,17 @@ jobs:
include:
- module: es
args: "-Pelasticsearch7"
name: es7
- module: es
args: "-Pelasticsearch6"
name: es6
- module: es
args: "-Pelasticsearch60"
name: es60
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- uses: actions/cache@v2
with:
path: ~/.m2/repository
Expand All @@ -81,3 +86,5 @@ jobs:
- run: mvn clean install --projects janusgraph-${{ matrix.module }} ${{ env.BUILD_MAVEN_OPTS }} ${{ matrix.install-args }}
- run: mvn verify --projects janusgraph-${{ matrix.module }} ${{ env.VERIFY_MAVEN_OPTS }} ${{ matrix.args }}
- uses: codecov/codecov-action@v1
with:
name: codecov-index-${{ matrix.name }}
6 changes: 6 additions & 0 deletions .github/workflows/ci-index-solr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,14 @@ jobs:
include:
- module: solr
args: "-Psolr7"
name: solr7
- module: solr
args: "-Psolr8"
name: solr8
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 2
- uses: actions/cache@v2
with:
path: ~/.m2/repository
Expand All @@ -79,3 +83,5 @@ jobs:
- run: mvn clean install --projects janusgraph-${{ matrix.module }} ${{ env.BUILD_MAVEN_OPTS }} ${{ matrix.install-args }}
- run: mvn verify --projects janusgraph-${{ matrix.module }} ${{ env.VERIFY_MAVEN_OPTS }} ${{ matrix.args }}
- uses: codecov/codecov-action@v1
with:
name: codecov-index-${{ matrix.name }}

0 comments on commit 0aa3e4c

Please sign in to comment.