From ef0052d15a2a23792d7da505a740ec1e6d8b4fde Mon Sep 17 00:00:00 2001 From: host Date: Sat, 31 Oct 2026 09:59:59 +0000 Subject: [PATCH] =?UTF-8?q?coverage85-threshold:=20=E8=A6=86=E7=9B=96?= =?UTF-8?q?=E7=8E=87=E9=97=A8=E6=A7=9B=2075%=20->=2085%=EF=BC=88=E5=AE=9E?= =?UTF-8?q?=E6=B5=8B=2085.2565%=EF=BC=8C=E4=BD=99=E9=87=8F=2057=20?= =?UTF-8?q?=E8=A1=8C=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/host-verify.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/host-verify.yml b/.github/workflows/host-verify.yml index 7b9044a..0f72c21 100644 --- a/.github/workflows/host-verify.yml +++ b/.github/workflows/host-verify.yml @@ -133,15 +133,16 @@ jobs: - run: pip install -r requirements-ci.txt # 硬门禁:三套 unittest 在 coverage 下重跑(与 verify 作业同款 # 测试,只是加了计量),生产代码覆盖率低于门槛即失败。 - # 门槛取基线实测值向下取整到 5 的倍数:基线实测 76% - # (22392 行,生产 58 文件),故门槛 75%,见 PR 摘要。 - # 目的是防回归,不是 0 空转,也不是未经实测的 80%。 + # 门槛取实测值向下取整到 5 的倍数:本轨实测 85.2565% + # (22437 行,已覆盖 19129 行,余量 57 行),故门槛 85%,见 PR 摘要。 + # 目的是防回归,不是 0 空转;余量仅 57 行,合轨后如回落到 85% 以下 + # 不要靠删检查或加 skip 补,先看交集处的新缺口。 - name: 覆盖率计量与门槛 run: | coverage run -m unittest discover -s tests coverage run --append -m unittest discover -s cloud/tests coverage run --append -m unittest discover -s deploy/tests - coverage report --fail-under=75 + coverage report --fail-under=85 coverage xml -o coverage.xml - name: 上传覆盖率报告 if: always()