fix(ci): 修复 CI 红灯(残留校验路径漂移 + eval mypy 缺注解)#5
Merged
Merged
Conversation
主因(CI 直接失败): - test_cleanup_residue 的 --no-tui 排除路径仍指向旧位置 doc/web-ui-redesign-handoff.md,该冻结历史文档已移至 doc/modules/ 下,导致 P5-6 文档校验误报。更新排除路径。 被掩盖的下游失败(unit 步骤先挂导致后续步骤从未运行): - _ast_equiv.py 的 import tree_sitter 内联 # type: ignore[import-not-found] 因 pyproject 新增的 tree_sitter.* 全局 override 而冗余,触发 unused-ignore。 - test_r2_meta.py / test_r2_sha_lock.py 在 strict 模式下缺 fixture 与 嵌套函数类型注解(mocker / tmp_path / capsys / fake_git_run)。 验证:ruff/mypy(src+eval) 全绿;unit 3275 passed(87%); eval 315 passed(93%);hermetic 集成 49 passed。
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.
背景
main CI 的
testjob 在 Unit tests 步失败(py3.11/3.12 均挂),web-build/eval-tier1本就 success。根因与修复
直接失败:
tests/unit/test_cleanup_residue.py的 P5-6--no-tui排除路径仍指向旧位置doc/web-ui-redesign-handoff.md,而该冻结历史文档已移至doc/modules/下 → 误报。更新排除路径到新位置。被掩盖的下游失败(unit 步骤先挂,其后的 eval mypy/测试等步骤在 CI 中从未运行):
scripts/eval/_ast_equiv.py:import tree_sitter的内联# type: ignore[import-not-found]因新增的全局tree_sitter.*mypy override 变冗余 →unused-ignore。移除内联 ignore(保留# noqa: F401)。tests/eval/unit/test_r2_meta.py/test_r2_sha_lock.py:strict 模式下缺 fixture / 嵌套函数注解(mocker/tmp_path/capsys/fake_git_run)。补全。验证(本地全跑 CI
testjob 各步骤)🤖 Generated with Claude Code