Repository navigation
ci: 两个 job 都改成阻断(推翻 DEC-002 原裁决) - #4
Merged
Merged
Conversation
去掉 test-embedding 的 continue-on-error: true —— 13 个 embedding 用例
(day18 全部 + day19 全部)从"没有 CI 把关"变成也有第二双眼睛。
推翻的依据是实测而非判断:
· 该 job 在 CI 上连续两次通过(1m28s / 2m36s,含装 Ollama + 拉 bge-m3)
· 原裁决担心的两件事都没发生:① CPU 推理没慢到不可用 ② 性能断言没抖
· 而原裁决的代价是实打实的:13 个用例永远无 CI 把关,且本机 8 GB 内存
本来就跑得勉强(本地跑它们很吃力)
元教训(已写进 DEC-002 §八):
别在没有任何实测数据时做预防性退让 —— 先按最严的做,观测到问题再退;
而不是先退让、再等一个也许永远不会来的理由去收紧。
同时记录一条本次真踩到的操作教训(CLAUDE.md §8):
堆叠分支 + squash 合并 ⇒ 必须 rebase --onto 摘掉已合并的提交,
否则 PR 会把已合并的改动重放一遍(本次 PR #3 真实撞上)。
提交前两问
① 本次有决策事项 ⇒ DEC-002 已修订(§七 推翻与依据 · §八 元教训 · §六 更新反悔成本)
② CHANGELOG 已写(第 2 轮「修订(Changed)」小节)
heweidong-ecco
added a commit
that referenced
this pull request
Sep 21, 2026
诊断到层:github.com:443 的 **HTTPS 被掐** —— DNS 正常、TCP 能连(nc 通),
但 curl 12s 超时、git 报 "Failure when receiving data from the peer" /
"expected flush after ref listing";同一时刻 api.github.com 是 HTTP 200(0.11s)。
- origin 改走 ssh://git@ssh.github.com:443/heweidong-ecco/memory-system.git
(只改本地 remote,不动仓库设置;实测 git fetch 一次成功)
⛔ 不要改回 https。选"换通道"而不是"降标准"(关 TLS 校验明确禁止)
- CLAUDE.md §8 补两节:
① 本仓 origin 走 SSH-over-443 + 判据表(含"gh 通 ≠ git 通"、SSH 认证被拒怎么办)
② 判断命令成败别经过管道 —— `git fetch … | tail -1` 的退出码是 tail 的、恒为 0,
本次真实踩到两次:打出假 ✅("fetch 成功"而 origin/main 根本没动),差点据此以为已同步
- 顺带清掉两处遗留:6 个过期本地远端引用(remote prune)·
1 个远端孤儿分支 ci/blocking-embedding-job(PR #4 已合并但分支没删)
⚠️ 删前核对方法:squash 造新 SHA ⇒ merge-base --is-ancestor 必为假,
要用 git diff --stat <旧分支> <squash 提交> 是否为空来判断(本次为空 ⇒ 删除无损)
提交前两问
① 本次有决策事项 ⇒ 新建 DEC-008-推送走哪条通道-20260921.md
(四选一:继续重试 https / 改走 SSH-over-443 / 用 gh API 造提交 / 关 TLS 校验
→ 选定第二种,理由"换通道而不是降标准";含反悔成本)
② CHANGELOG 已写(第 3 轮 Ops 小节)
测试:61 passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
去掉
test-embedding的continue-on-error: true—— 13 个 embedding 用例(day18全部 +day19全部)从"没有 CI 把关"变成也有第二双眼睛。推翻的依据是实测,不是判断
test_day19是性能断言,共享 runner 上必 flaky而原裁决的代价是实打实的:13 个用例永远无 CI 把关,而本机 8 GB 内存让它们在本地也跑得勉强。
元教训(写进 DEC-002 §八)
若将来它真的 flaky:别第一反应关掉 —— 先分辨是环境抖动(重试/加缓存)还是真 flaky(更新 DEC)。
顺带记录(CLAUDE.md §8)
本次真踩到的一条操作教训:堆叠分支 + squash 合并 ⇒ 必须
rebase --onto,否则 PR 会把已合并的改动重放一遍(PR #3 真实撞上,用
git rebase --onto origin/main 6894442摘干净的)。连同那条"
Already up to date是假的"的判据一起写进了 §8。提交前两问
① 有决策事项 ⇒
DEC-002已修订(§七 推翻与依据 · §八 元教训 · §六 更新反悔成本)② CHANGELOG 已写(第 2 轮「修订(Changed)」小节)