From 988373247fa065a1e7348189c1b9dd6ef5d39737 Mon Sep 17 00:00:00 2001 From: Himanshu Verma Date: Thu, 4 Jun 2026 19:30:05 +0530 Subject: [PATCH 1/2] ci: add codecov.yml with 1% threshold to avoid false failures on shell-only PRs Shell scripts and test scripts added in recent PRs have no Java coverage, causing Codecov to report large drops and fail the PR check even though Java coverage is unchanged. A 1% threshold means Codecov only fails when actual Java coverage drops significantly, not on noise from non-Java file additions. --- codecov.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 codecov.yml diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000000..719e0de385 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,12 @@ +ignore: + - "**/*.sh" + - "hugegraph-server/hugegraph-dist/src/assembly/travis/**" + +coverage: + status: + project: + default: + threshold: 0.5% + patch: + default: + threshold: 0.5% From 0569aeae0573e324d0a2b367b98ff11bfc5702bd Mon Sep 17 00:00:00 2001 From: Himanshu Verma Date: Thu, 4 Jun 2026 19:39:43 +0530 Subject: [PATCH 2/2] fix(ci): add Apache license header to codecov.yml --- codecov.yml | 39 ++++++++++++++++++++++++++++----------- 1 file changed, 28 insertions(+), 11 deletions(-) diff --git a/codecov.yml b/codecov.yml index 719e0de385..e2a3259fd1 100644 --- a/codecov.yml +++ b/codecov.yml @@ -1,12 +1,29 @@ -ignore: - - "**/*.sh" - - "hugegraph-server/hugegraph-dist/src/assembly/travis/**" - -coverage: - status: - project: - default: - threshold: 0.5% - patch: - default: +# +# 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. +# + +ignore: + - "**/*.sh" + - "hugegraph-server/hugegraph-dist/src/assembly/travis/**" + +coverage: + status: + project: + default: + threshold: 0.5% + patch: + default: threshold: 0.5%