Skip to content

Commit 799a729

Browse files
committed
ci(coverage): relax delta threshold to -0.1%
Signed-off-by: bladehan1 <bladehan@163.com>
1 parent e8db68e commit 799a729

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/pr-build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ jobs:
312312
set -euo pipefail
313313
314314
MIN_CHANGED=60
315-
MAX_DROP=-0.02
315+
MAX_DROP=-0.1
316316
317317
sanitize() {
318318
echo "$1" | tr -d ' %'
@@ -322,7 +322,7 @@ jobs:
322322
}
323323
compare_float() {
324324
# Usage: compare_float "<expr>"
325-
# Example: compare_float "1.2 >= -0.02"
325+
# Example: compare_float "1.2 >= -0.1"
326326
awk "BEGIN { if ($1) print 1; else print 0 }"
327327
}
328328
@@ -386,7 +386,7 @@ jobs:
386386
387387
# 4) Decide CI pass/fail
388388
if [ "$DELTA_OK" -ne 1 ]; then
389-
echo "Coverage gate failed: overall coverage dropped more than 0.02%."
389+
echo "Coverage gate failed: overall coverage dropped more than 0.1%."
390390
echo "base=${BASE_OVERALL}% pr=${PR_OVERALL}% delta=${DELTA}%"
391391
exit 1
392392
fi

0 commit comments

Comments
 (0)