65 Commits

Author SHA1 Message Date
repair-agent
58ee345895 fix: remove image cleanup step, Volcano Engine CR doesn't support API delete
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 5s
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 17:17:32 +08:00
repair-agent
749cddf561 fix: use Harbor token auth for image cleanup on Volcano Engine CR
Some checks failed
Build and Deploy Log Center / build-and-deploy (push) Failing after 5s
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 17:09:52 +08:00
repair-agent
a2c6e54346 chore: test build #2
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 9s
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 17:07:26 +08:00
repair-agent
31d6277531 chore: test build #1
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 11s
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 17:06:17 +08:00
repair-agent
72703b84bb feat: auto cleanup old images, keep latest 5 versions per repo
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 9s
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 17:03:16 +08:00
repair-agent
9606d4a94b feat: use env-date-commit format for image tags
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 5s
Tag format: dev-20260402-8920dad / prod-20260402-8920dad

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 16:59:37 +08:00
repair-agent
8920dad45c feat: add version tagging with git commit hash for images
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 5s
Each build now tags images with both commit hash and latest,
enabling precise rollback with kubectl set image.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 16:54:00 +08:00
repair-agent
0fdc62b99e fix: disable buildkit to use host Docker daemon and mirror cache
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 58s
Buildkit runs in isolated network and can't access mirrors.
Legacy builder uses host daemon directly with registry-mirrors.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 16:46:41 +08:00
repair-agent
832bfdd80d fix: use hub.rat.dev mirror for base images
Some checks failed
Build and Deploy Log Center / build-and-deploy (push) Failing after 14s
Buildkit ignores daemon.json registry-mirrors, so specify
mirror directly in FROM statements.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 16:44:19 +08:00
repair-agent
eb75fa126c fix: update database connection to Volcano Engine MySQL
Some checks failed
Build and Deploy Log Center / build-and-deploy (push) Failing after 32s
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 16:39:04 +08:00
repair-agent
836c8e9c18 fix: simplify kubectl setup, now mounted via runner config
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 8s
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 16:21:31 +08:00
repair-agent
e9b9a4fd2f fix: replace actions/checkout with git clone from Gitea
Some checks are pending
Build and Deploy Log Center / build-and-deploy (push) Waiting to run
Completely eliminate GitHub dependency in CI/CD pipeline.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 16:17:16 +08:00
repair-agent
b9a4dd62c4 fix: remove GitHub dependencies from CI/CD workflow
Some checks failed
Build and Deploy Log Center / build-and-deploy (push) Failing after 1m31s
Replace all GitHub-hosted actions with shell commands to avoid
GitHub connectivity issues on China servers.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 16:14:43 +08:00
repair-agent
34938a1aa0 fix cicd
Some checks failed
Build and Deploy Log Center / build-and-deploy (push) Failing after 31s
2026-04-02 16:07:43 +08:00
repair-agent
7e44d5b786 fix cicd
Some checks failed
Build and Deploy Log Center / build-and-deploy (push) Has been cancelled
2026-04-02 15:54:01 +08:00
repair-agent
0d9acd5bbc fix first
Some checks failed
Build and Deploy Log Center / build-and-deploy (push) Failing after 4m10s
2026-04-02 15:49:10 +08:00
repair-agent
b2a2b1079f fix cicd fail
Some checks failed
Build and Deploy Log Center / build-and-deploy (push) Has been cancelled
2026-04-02 15:43:41 +08:00
repair-agent
eeb27514bb add cicd 迁移
Some checks failed
Build and Deploy Log Center / build-and-deploy (push) Failing after 12m39s
2026-04-02 15:27:13 +08:00
repair-agent
cbcf7737d0 fix: auto repair bugs #71 2026-03-26 11:16:32 +08:00
zyc
6733bcf41c Merge pull request 'fix: auto repair bugs #73' (#6) from fix/auto-20260318-162021 into main
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 1m48s
Merge PR #6 (approved via Log Center)
2026-03-18 16:59:29 +08:00
repair-agent
6366cd67e2 fix: auto repair bugs #73 2026-03-18 16:23:05 +08:00
repair-agent
252876f81a build UI
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 1m37s
2026-03-17 18:21:59 +08:00
repair-agent
1da10e8136 fix bug
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 2m10s
2026-03-17 18:03:58 +08:00
repair-agent
cc80acf2b9 add UI
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 2m13s
2026-03-17 17:50:58 +08:00
repair-agent
fc6dc52f72 add del project
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 1m42s
2026-03-13 10:44:29 +08:00
repair-agent
01f87e38aa add bugfix
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 1m36s
2026-03-02 18:09:53 +08:00
repair-agent
25c9b2d18e fix bug
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 1m39s
2026-03-02 17:46:33 +08:00
zyc
708021c443 Merge pull request 'fix: auto repair bugs #55' (#3) from fix/auto-20260228-144441 into main
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 5m5s
Merge PR #3 (approved via Log Center)
2026-02-28 14:48:08 +08:00
repair-agent
682a70b9af fix: auto repair bugs #55 2026-02-28 14:47:46 +08:00
zyc
7aa6781c6d Merge pull request 'fix: auto repair bugs #54' (#2) from fix/auto-20260228-143852 into main
Some checks failed
Build and Deploy Log Center / build-and-deploy (push) Has been cancelled
Merge PR #2 (approved via Log Center)
2026-02-28 14:46:42 +08:00
repair-agent
c94c7bd420 fix: auto repair bugs #54 2026-02-28 14:41:39 +08:00
repair-agent
f8f8c1174f fix: 添加 httpx 依赖,修复 API 启动崩溃
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 1m37s
gitea_client.py 依赖 httpx 但未列入 requirements.txt,
导致 Docker 镜像中缺少该模块,API 启动时 import 失败。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 10:46:22 +08:00
zyc
18d18dbe14 Merge pull request 'fix: auto repair bugs #49' (#1) from fix/auto-20260226-103348 into main
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 1m47s
Merge PR #1 (approved via Log Center)
2026-02-26 10:35:59 +08:00
repair-agent
3d60b07c0f fix: auto repair bugs #49 2026-02-26 10:34:57 +08:00
zyc
ab3ae382e9 fix: 修正 log_center_web 项目注册信息
Some checks failed
Build and Deploy Log Center / build-and-deploy (push) Failing after 1m6s
- local_path 改为仓库根目录(web 是子目录,不是独立 Git 仓库)
- repo_url 改为正确的 log-center.git(之前误写为 qy_gitlab.git)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 10:32:19 +08:00
zyc
46c52a795f feat(repair-agent): Scheduler 从 API 动态获取项目列表,移除硬编码
Some checks failed
Build and Deploy Log Center / build-and-deploy (push) Failing after 1m10s
- _fetch_projects_from_api() 调用 GET /api/v1/projects 获取所有已注册项目
- API 失败时回退到本地 .env 配置
- 每次扫描时动态获取(新注册项目无需重启 Scheduler)
- 移除 _tick() 中的 get_project_path 阻断检查(由 fix_project 处理)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 10:29:00 +08:00
zyc
874c873de9 feat(monitor): K8s Monitor 从 API 动态加载项目映射,移除硬编码
Some checks failed
Build and Deploy Log Center / build-and-deploy (push) Failing after 1m7s
monitor 启动时调用 GET /api/v1/projects 拉取项目列表,
自动生成 app label -> project_id 映射(下划线转短横线 + -dev 变体),
新项目只需在 Log Center 注册即可自动纳入 K8s 监控。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 10:25:04 +08:00
zyc
ac73c6cd31 fix(web): 兼容 CI/CD context 中 workflow 和 workflow_name 两种字段名
Some checks failed
Build and Deploy Log Center / build-and-deploy (push) Failing after 1m7s
rtc_backend 用 workflow,旧项目用 workflow_name,前端需同时兼容

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 10:19:15 +08:00
zyc
89f19e9776 docs: 更新 CI/CD 接入指南,改用日志捕获 + run_number 方式
Some checks failed
Build and Deploy Log Center / build-and-deploy (push) Has been cancelled
- 核心要点:tee 捕获日志、github.run_number、模板语法、单一综合上报
- 完整 Gitea Actions 集成示例(含日志收集和失败判断逻辑)
- 字段说明中标注 run_url 的正确拼接方式

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 10:18:22 +08:00
zyc
cd22a5696b fix(cicd): 修复 CI/CD 错误上报数据不全和 URL 跳转错误
Some checks failed
Build and Deploy Log Center / build-and-deploy (push) Failing after 1m11s
- 构建步骤改用 docker buildx build + tee 捕获实际构建日志
- URL 改用 github.run_number 替代 github.run_id(修复跳转到错误页面)
- 改为单一综合失败上报步骤,收集实际错误日志到 stack_trace
- 补充 repo_url、actor、commit 等缺失字段
- 使用 ${{ }} 模板语法替代 $GITHUB_* 环境变量

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 10:15:58 +08:00
zyc
c8204b6d47 feat(self-report): 日志中台自身接入错误上报
Some checks failed
Build and Deploy Log Center / build-and-deploy (push) Failing after 1m19s
- 新增 app/self_report.py:后端运行时异常直接写入自身数据库
- main.py:添加全局异常处理器 + 启动时注册 log_center_api/web 项目
- web/api.ts:添加 reportError 函数 + Axios 5xx 拦截器
- web/main.tsx:添加 window.onerror / onunhandledrejection 全局捕获
- deploy.yaml:CI/CD 流水线各步骤失败时上报(build/deploy)
- 重写 integration_guide.md:按三类上报(runtime/cicd/deployment)重新组织

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 10:08:26 +08:00
zyc
b178d24e73 fix pr
Some checks failed
Build and Deploy Log Center / build-and-deploy (push) Failing after 5m9s
2026-02-25 16:35:28 +08:00
zyc
5611839fd8 fix git pr
Some checks failed
Build and Deploy Log Center / build-and-deploy (push) Failing after 1m55s
2026-02-25 10:55:26 +08:00
zyc
33db841592 fix git checkout 2026-02-24 17:10:16 +08:00
zyc
f9c84b211b fix 百分比
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 2m38s
2026-02-24 17:04:39 +08:00
zyc
bc63d580ac fix web status
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 2m39s
2026-02-24 15:16:47 +08:00
zyc
9a347d7929 feat(repair-agent): auto-merge fix branch to main after repair
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 9m30s
After pushing the fix branch, automatically merge it back to main and
push, so that CI/CD is triggered with the fix. Also cleans up the
remote fix branch after merge.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 14:03:17 +08:00
zyc
50301dfb8c fix(git-manager): set upstream when pushing new branches
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 3m9s
push() was failing for new fix branches because they had no upstream
tracking branch. Now uses set_upstream=True with explicit refspec.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 13:50:31 +08:00
zyc
75fe8dfc0c feat(repair-agent): scan all bug sources and improve CI/CD triage
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 2m56s
- task_manager: scan runtime + cicd + deployment sources (not just runtime)
- claude_service: add CI/CD-specific triage rules for build/deploy failures

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 13:33:08 +08:00
zyc
aa3a5b8c5d fix(repair-agent): add git push after auto-commit
All checks were successful
Build and Deploy Log Center / build-and-deploy (push) Successful in 2m46s
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-24 13:17:16 +08:00