diff --git a/.blueprint/manifest.yaml b/.blueprint/manifest.yaml index 4d5f4dc..f28a131 100644 --- a/.blueprint/manifest.yaml +++ b/.blueprint/manifest.yaml @@ -376,8 +376,8 @@ modules: name: Gitea 集成 area: backend status: in_progress - progress: 78 - note: "G1-G6 + Gitea Actions 生成完成(2026-07-02,轮询采集适配公网拓扑);余:PR/CI 事件联动、DeepSeek review、存量迁移(concept)" + progress: 85 + note: "G1-G6+R0 完成(2026-07-02):全链路含发版实测通过(v0.1.16 已上 OSS);余:PR/CI 事件联动、DeepSeek review、存量迁移(concept)" position: [3500, 150] updated: 2026-07-02 diff --git a/.blueprint/modules/gitea-integration.md b/.blueprint/modules/gitea-integration.md index 096cf25..0ea4301 100644 --- a/.blueprint/modules/gitea-integration.md +++ b/.blueprint/modules/gitea-integration.md @@ -110,8 +110,8 @@ Gitea push → POST /webhook/gitea/:project_id - complexity: L - acceptance: TBD —— 静态检查 + 测试自修 + PR review;作为复杂项目可选增配,不进基线档 -### 🔵 R0. 炼境自身发版链路迁移(本机 act_runner + Gitea Actions) -- status: in_progress +### ✅ R0. 炼境自身发版链路迁移(本机 act_runner + Gitea Actions) +- status: done - complexity: M - depends: Gitea Actions workflow 生成 - files: .gitea/workflows/release.yml(生成), .github/workflows/release.yml(删除) @@ -183,6 +183,19 @@ Gitea push → POST /webhook/gitea/:project_id ## 复盘笔记 +【复盘】R0 发版链路迁移 + 换钥(2026-07-02) +任务类型: 基础设施 + 架构调整 +复杂度: M(实际含排障接近 L) +实际轮数: 4轮(预估 1 轮)——3 次构建失败排障 + 1 次换钥 +是否返工: 是 +返工原因: ① 签名密钥密码丢失(唯一存储在不可读的 GitHub Secrets + 用户记忆),构建反复死于 Wrong password,本机全部留痕渠道(shell 历史/AI 会话/文档 git 历史/密钥库)搜索无果,最终按单人场景换钥(手动装一次新版的代价≈0);② act_runner 排障三连:生成的 config.yaml 默认 docker labels 导致 daemon 拒启(须 docker_host: "-" + labels windows:host)、迁移仓库默认关闭 Actions 单元(API PATCH has_actions 开启)、Gitea 1.22 无 /actions/runs API(改用 commit statuses API 监控) +有效策略: runner 在本机 = 失败日志本地可查(trace 级日志直接定位 Wrong password 真凶);换钥前先验证「存量客户端规模」推翻了"换钥死锁"的默认假设 +遗留风险: 无。全链路已验证:tag push → 本机 runner 构建签名(4m43s)→ OSS latest.json 0.1.16 上线 +auto_applied_rules: R10 +rule_effectiveness: R10=有效(Gitea 1.22 API 行为以实测为准,两处文档假设被纠正) + +【教训·已固化】密钥类 secret 必须双写存储:新签名密码同时存于 Gitea Secrets + 炼境密钥凭据库。单一存储在"不可读的 secret 管理器 + 人脑"等于定时炸弹。 + 【复盘】G6 远端轮询采集(2026-07-02) 任务类型: 后端命令 + 前端组件 复杂度: M