|
|
874c873de9
|
feat(monitor): K8s Monitor 从 API 动态加载项目映射,移除硬编码
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 |
|
|
|
89f19e9776
|
docs: 更新 CI/CD 接入指南,改用日志捕获 + run_number 方式
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 |
|
|
|
c8204b6d47
|
feat(self-report): 日志中台自身接入错误上报
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 |
|
|
|
5611839fd8
|
fix git pr
Build and Deploy Log Center / build-and-deploy (push) Failing after 1m55s
|
2026-02-25 10:55:26 +08:00 |
|
|
|
625e53dc44
|
feat(project-mgmt): 项目管理 + 失败原因追踪 + 前端展示
Build and Deploy Log Center / build-and-deploy (push) Successful in 2m16s
- 新增 Project 模型(repo_url, local_path, name, description)
- 项目 CRUD API(GET/PUT /api/v1/projects)
- 日志上报自动 upsert Project 记录
- ErrorLog 增加 failure_reason 字段
- update_task_status / create_repair_report 写入失败原因
- Repair Agent 优先从 API 获取项目配置,回退 .env
- 新增 Web 端「项目管理」页面(表格 + 行内编辑)
- BugList/BugDetail/RepairList 展示失败原因
- 更新接入指南文档
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-02-24 11:18:27 +08:00 |
|
|
|
0d4b2d634c
|
feat: 扩展日志收集,支持 CI/CD 构建错误和 K8s 部署错误
Build and Deploy Log Center / build-and-deploy (push) Successful in 2m24s
新增两种日志来源(cicd / deployment),使日志中台覆盖"构建→部署→运行"全链路:
后端变更:
- models.py: 新增 LogSource 枚举和 source 字段,file_path/line_number 改为可选
- main.py: 按来源生成不同指纹策略,所有查询端点支持 source 筛选,仪表盘新增来源分布统计
- database.py: 新增 4 条迁移 SQL(source 字段、索引、字段可空)
- task_manager.py: 修复 Agent 仅拉取 runtime 来源的缺陷
新增组件:
- k8s-monitor/: K8s Pod 健康监控脚本(Python),每 5 分钟检测异常 Pod 并上报
- k8s/monitor-cronjob.yaml: CronJob + RBAC 部署清单
- scripts/report-cicd-error.sh: CI/CD 错误上报 Bash 脚本
- scripts/gitea-actions-example.yaml: Gitea Actions 集成示例
前端变更:
- api.ts: 类型定义更新,支持 source 字段
- BugList.tsx: 新增来源筛选标签页和来源列
- BugDetail.tsx: 按来源条件渲染(CI/CD 信息、部署信息),非 runtime 禁用修复按钮
- Dashboard.tsx: 新增来源分布表格
- index.css: 来源标签样式(source-badge)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-02-24 10:20:16 +08:00 |
|
|
|
637c479818
|
feat: initial log center with k8s deployment
Build and Deploy Log Center / build-and-deploy (push) Successful in 1m30s
|
2026-01-30 11:49:47 +08:00 |
|