ci: raise coverage thresholds from 0% to meaningful levels#97
Open
zoeshawwang wants to merge 1 commit intomainfrom
Open
ci: raise coverage thresholds from 0% to meaningful levels#97zoeshawwang wants to merge 1 commit intomainfrom
zoeshawwang wants to merge 1 commit intomainfrom
Conversation
Set coverage gates based on current real metrics with ~5% buffer: - Full: line 85%, branch 78% - Incremental: line 85%, branch 75% - Per-directory overrides for utils (90/90), knowledgebase (95/90), memory_collection (80/50), conversation_service (65/60) Change-Id: I7bb247168d1907ca53b46989021b7cd77ed5b2f0 Co-developed-by: Claude <noreply@anthropic.com> Signed-off-by: congxiao.wxx <congxiao.wxx@alibaba-inc.com>
ddc46d3 to
cfe5829
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
加两道 CI 卡点,把 SDK 的回归保护从"形同虚设"提到"防得住典型回归"。
开发者改了
__xxx_async_template.py但忘跑make codegen,对应的xxx.py就和 template 脱节,下次别人跑 codegen 会被覆盖。CI 现在跑
make codegen && git diff --exit-code,发现 diff 直接 fail 并提示 本地补跑make codegen后提交。零风险:当前 main 上
make codegen输出零 diff,新 step 立即就能过。coverage.yaml之前 full / incremental 全设 0,等于不卡。基于本地实测当前覆盖率(line 90.74% / branch 82.85%)设:
uv run --python 3.10 --all-extras python scripts/check_coverage.py本地跑通 23 项检查全 ✅。tests/e2e/test_workspace_id.py等),需要先 reformat 再加 check。Change-Id: I8bd1fb2f3262fe77143d606e5f0ebb9125cf0932
Co-developed-by: Claude noreply@anthropic.com
Fix bugs
Bug detail
Pull request tasks
Update docs
Reason for update
Pull request tasks
Add contributor
Contributed content
Content detail
Others
Reason for update