Skip to content

Fix/issue 1550 - #1553

Open
AbelTomato wants to merge 6 commits into
TencentCloud:feat/server_teamfrom
AbelTomato:fix/issue-1550
Open

AbelTomato wants to merge 6 commits into
TencentCloud:feat/server_teamfrom
AbelTomato:fix/issue-1550

Conversation

@AbelTomato

Copy link
Copy Markdown

Description | 描述

实现 CodeGraph 自动同步的 Git revision 探测机制:

  • 自动同步前通过只读 Git probe 对比本地与远端分支的完整 commit SHA
  • revision 未变化时跳过 admission、worker、索引重建、审计记录和 candidate 目录创建
  • revision 发生变化时继续执行原有同步流程
  • 保留手动 sync() 的强制刷新行为
  • 增加本地 checkout 和 CodeGraph SQLite 索引有效性校验
  • 增加 probe 超时、网络错误、分支不存在、本地 checkout 不可用等错误分类
  • 新增 auto_sync_probe_error 和 auto_sync_probe_at,独立持久化探测诊断,不影响健康索引和构建元数据
  • 探测失败时继续保留 last-good 索引;后续刷新成功或探测恢复后清除过期诊断
  • 增加并发同步、竞态、真实 SQLite、bare Git remote 和扫描性能验收测试

Related Issue | 关联 Issue

Fix #1550

Change Type | 修改类型

  • Bug fix | Bug 修复
  • New feature | 新功能
  • Documentation update | 文档更新
  • Code optimization | 代码优化

Self-test Checklist | 自测清单

  • Verified locally | 本地验证通过
  • No existing features affected | 无影响现有功能

Additional Notes | 其他说明

redyyang and others added 6 commits September 26, 2026 09:58
Signed-off-by: redyyang <redyyang@tencent.com>
Signed-off-by: redyyang <redyyang@tencent.com>
Signed-off-by: redyyang <redyyang@tencent.com>
Signed-off-by: redyyang <redyyang@tencent.com>
Signed-off-by: redyyang <redyyang@tencent.com>
@Maxwell-Code07

Copy link
Copy Markdown
Collaborator

Thank you so much for your attention and contribution! We will arrange an internal review for this PR shortly, and all feedback will be shared right here in the discussion.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Performance] Skip unchanged CodeGraph auto-sync before copying the checkout and index

2 participants