Merged
chore(intelliRouter): remove tracked __pycache__ artifacts and add ignore rules #377
chore(intelliRouter): remove tracked __pycache__ artifacts and add ignore rules #377
Merged
yutaoJustinBieber1223Add on 18 days ago
yutaoJustinBieber1223
yutaoJustinBieber1223Collaborators
18 days ago

Paired: GitHub #179 ↔ GitCode !377

变更内容

  • 删除 intelli_router/ 下误提交的 148 个 .pyc 缓存文件(11 个 __pycache__ 目录,约 4.6MB)
    • 含 CPython 3.13 / 3.15 两个解释器版本的编译缓存
    • 含 50 个 pytest-9.1.1 断言重写机制生成的测试缓存
  • 根 .gitignore 补充 __pycache__/ 与 *.pyc 规则,防止缓存再次入库(此前仅有 .venv/ 一行)

背景

e5755f5(chore(intelliRouter): merge IntelliRouter module into develop)合入模块时将 __pycache__ 一并提交进了仓库。.pyc 是解释器按需自动重建的本地缓存,不应纳入版本管理。

影响范围

  • 仅删除缓存文件与修改 .gitignore;intelli_router/ 其余 80 个文件(77 个 .py 源码、2 个 .md、1 个 pyproject.toml)完全不变
  • 仓库体积减小约 4.6MB,对功能零影响

关联 issue

修复 issue:#86

Linked Closing Issues:

likedislike
Pull Request has been successfully merged by openJiuwen-bot.
(Thank you for yutaoJustinBieber1223's contribution.)
atomgit-bot
atomgit-bot
18 days ago Comments:

变更摘要

本 PR 属于仓库清理类变更,主要目的是把 intelli_router/ 模块下误提交的 Python 编译缓存从版本管理中移除,并通过根 .gitignore 规则防止其再次入库。删除对象覆盖 intelli_router/ 包内各子模块(core、cache、health、observability、parser、provider、router、strategy、utils)以及 tests/ 目录下的 __pycache__ 二进制缓存,业务源码、文档与 pyproject.toml 配置均未改动,因此对功能行为无影响。

主要改动

  • 清理包内模块缓存: 删除 intelli_router/intelli_router/ 各子模块 __pycache__ 目录下的 .pyc 文件,涵盖 types、context、deployment、state、checker、bus、events、handler、metrics 等模块的编译产物。
  • 清理测试缓存: 删除 intelli_router/tests/__pycache__/ 下 conftest 及全部 test_*.pyc,其中包含 pytest 断言重写机制生成的 *-pytest-9.1.1.pyc 缓存文件。
  • 覆盖多解释器版本产物: 被删除的缓存同时包含 cpython-313 与 cpython-315 两种解释器版本的 .pyc,即两个 Python 版本产生的本地缓存一并从仓库移除。
  • 补充忽略规则: 在根 .gitignore 中新增 __pycache__/ 与 *.pyc 规则(此前仅有 .venv/),使后续本地生成的字节码缓存不再被纳入版本管理。
likedislike
Incorrect?
atomgit-bot
atomgit-bot
18 days ago Comments:

代码审查

✅ 未发现问题

likedislike
Incorrect?
OopenJiuwen-botCollaborators
18 days ago Set YiyangShao,xinyu-jiuwen as approver
atomgit-bot
atomgit-bot
18 days ago Comments:

AtomGit AI 助手使用指南

在 PR 评论中使用命令即可触发。支持在普通评论和代码行评论中使用。

功能 命令 说明
代码审查 /ai review 检查代码质量、潜在问题、安全风险
PR 摘要 /ai summary 生成 PR 变更内容的结构化摘要
代码解释 /ai explain 解释代码变更的逻辑和意图
自由提问 @atomgit-bot <问题> 询问关于本 PR 的任何问题
帮助 /ai help 显示此帮助信息

免责声明

AI 助手可能存在误判,请结合自身判断。可以对评论点 👍 或 👎 帮助我们改进。

likedislike
Incorrect?
OopenJiuwen-botCollaborators
18 days ago Added label: sig/sig-agent-protocol
openJiuwen-botCollaborators
18 days ago Comments:

欢迎来到 openJiuwen 社区

Hey @JustinBieber1223 , 感谢你对社区的贡献.

机器人使用手册

有关指令的使用,可以点击 此处 查看详情。开发人员可以在每个PR或Issue下方评论特定指令来触发机器人任务。

联系指引

有疑问可以联系 SIG: sig-agent-protocol ,
维护者是: @YiyangShao, @xinyu-jiuwen ,
审核者是: @gcw_hx9prznZ, @mingo007 .

likedislike
OopenJiuwen-botCollaborators
18 days ago Added label: openJiuwen-cla/yes
Oopenjiuwen-syncCollaborators
18 days ago Modify description of pull request
openJiuwen-botCollaborators
18 days ago Comments:

The pipeline(pipeline number:377) is running. Please wait a moment...

likedislike
OopenJiuwen-botCollaborators
18 days ago Added label: ci-running
yutaoJustinBieber1223yutaoJustinBieber1223Collaborators
18 days ago Modify description of pull request
Oopenjiuwen-syncCollaborators
18 days ago Modify description of pull request
OopenJiuwen-botCollaborators
18 days ago Removed label: ci-running
openJiuwen-botCollaborators
18 days ago Comments:
任务名称 结果 日志操作
静态检查 ❌FAILED 点此跳转
防投毒检查 ✅SUCCESS 点此跳转
开源合规检查 ✅SUCCESS 点此跳转
禁用词扫描 ✅SUCCESS 点此跳转
likedislike
OopenJiuwen-botCollaborators
18 days ago Added label: ci-failed
Yiyang ShaoCollaborators
18 days ago Comments:

整体过了一遍,删得干净。148 个 .pyc 全部落在 __pycache__ 下,删完全仓已无残留;.gitignore 两条规则任意层级生效,覆盖后续所有 Python 模块;源码零改动。这部分ok。

代码本身 LGTM。

likedislike
Yiyang ShaoCollaborators
18 days ago Comments:

/lgtm
/approve

likedislike
OopenJiuwen-botCollaborators
18 days ago Added label: approvedlgtm-YiyangShao
openJiuwen-botCollaborators
18 days ago Comments:

Review Code Feedback

  • The label lgtm-YiyangShao, approved was added to this pull request. It means that YiyangShao reviewed the code changes. 👋
Tips
  • If this pull request is not merged while all conditions are met, comment /check-pr to try again. 😄
likedislike
yutaoJustinBieber1223
yutaoJustinBieber1223Collaborators
18 days ago Comments:

/check-pr

likedislike
openJiuwen-botCollaborators
18 days ago Comments:

Merge Verification Failed

@JustinBieber1223, this pr is not mergeable and the reasons are below:

Label BlockList
  • the ci-failed label(s) caused the pull request to be unable to merge.
Not Enough Labels
  • the pull request needs 1 ci-successful labels, but now gets 0.
Label Usage Tips
likedislike
yutaoJustinBieber1223yutaoJustinBieber1223Collaborators
18 days ago Pushed 1 commits:7825f941-chore(ci): retrigger pipeline (platform static-check outage)
OopenJiuwen-botCollaborators
18 days ago Removed label: openJiuwen-cla/yes
OopenJiuwen-botCollaborators
18 days ago Added label: stat/needs-squash
OopenJiuwen-botCollaborators
18 days ago Added label: openJiuwen-cla/yes
OopenJiuwen-botCollaborators
18 days ago Removed label: approvedlgtm-YiyangShao
openJiuwen-botCollaborators
18 days ago Comments:

CLA 签署成功

JustinBieber1223, 感谢您的代码贡献。 所有的代码贡献者都已完成了 CLA 签署。 👍

likedislike
openJiuwen-botCollaborators
18 days ago Comments:

Notification

This pull request has been changed(code update) or closed, so removes the following label(s): approved, lgtm-YiyangShao.

likedislike
openJiuwen-botCollaborators
18 days ago Comments:

The pipeline(pipeline number:377) is running. Please wait a moment...

likedislike
OopenJiuwen-botCollaborators
18 days ago Removed label: ci-failed
OopenJiuwen-botCollaborators
18 days ago Added label: ci-running
OopenJiuwen-botCollaborators
18 days ago Removed label: ci-running
openJiuwen-botCollaborators
18 days ago Comments:
任务名称 结果 日志操作
静态检查 ✅SUCCESS 点此跳转
防投毒检查 ✅SUCCESS 点此跳转
开源合规检查 ✅SUCCESS 点此跳转
禁用词扫描 ✅SUCCESS 点此跳转
likedislike
OopenJiuwen-botCollaborators
18 days ago Added label: ci-successful
yutaoJustinBieber1223
yutaoJustinBieber1223Collaborators
18 days ago Comments:

/check-pr

likedislike
openJiuwen-botCollaborators
18 days ago Comments:

Merge Verification Failed

@JustinBieber1223, this pr is not mergeable and the reasons are below:

Not Enough Labels
  • the pull request needs 1 approved labels, but now gets 0.
  • the pull request needs 1 lgtm labels, but now gets 0.
Label Usage Tips
  • approved: Agree to merge the pull request. This can be accomplished by commenting /approve
  • lgtm: The code has been reviewed. This can be accomplished by commenting /lgtm
likedislike
maoqiming
maoqimingCollaborators
18 days ago Comments:

/lgtm
/approve

likedislike
OopenJiuwen-botCollaborators
18 days ago Added label: approvedlgtm-mingo007
openJiuwen-botCollaborators
18 days ago Comments:

Review Code Feedback

  • The label lgtm-mingo007, approved was added to this pull request. It means that mingo007 reviewed the code changes. 👋
Tips
  • If this pull request is not merged while all conditions are met, comment /check-pr to try again. 😄
likedislike
OopenJiuwen-botCollaborators
18 days ago Closed associated issue
OopenJiuwen-botCollaborators
18 days ago Merged pull request
OopenJiuwen-botCollaborators
18 days ago Removed label: ci-successful