跳到正文
原文
Hacker News Show HN· davidtufts·· 2026-10-31AI 评分58

Tracegate 开源:只跳过已被证明可跳过的测试的本地 CI

Show HN: Tracegate – local CI that only skips tests it has proven it can skip

AI 导读

开发者 davidtufts 在 GitHub 开源 Tracegate,一套只运行变更可能影响到的测试、其余测试需先积累证据才允许跳过的本地 CI。它记录每个测试实际执行过的函数、加载的模块和读取的文件,写入 ledger,只有在 shadow 期观察足够且无漏判后才开始跳过,并按 5% 比例随机重跑复用结论,一旦出现漏判该 lane 就恢复全量运行。

社媒成稿工作台 · 一键复制

飞书同步推送 · 含数据/日期/出处/启发
核心数据发布日期信源出处独立开发启发
1670
Tracegate 开源:只跳过已被证明可跳过的测试的本地 CI

📊 核心数据与事实(2026-10-31):
开发者 davidtufts 在 GitHub 开源 Tracegate,一套只运行变更可能影响到的测试、其余测试需先积累证据才允许跳过的本地 CI。它记录每个测试实际执行过的函数、加载的模块和读取的文件,写入 ledger,只有在 shadow 期观察足够且无漏判后才开始跳过,并按 5% 比例随机重跑复用结论,一旦出现漏判该 lane 就恢复全量运行。
• 原文实测切片:The same as three steps, for a CI script of your own: RUN= $( mktemp -d ) npx tracegate select --lane api --run " $RUN " # writes $RUN/selected.txt, predict.json HEAD0= $( git rev-parse HEAD ) ( cd packages/api && TRACEGATE_RECORD= " $RUN "…
• 原文实测切片:report-card publishes Tracegate's own error rates per lane, from the append-only logs: misses per checked verdict and per run with 95% Wilson intervals, each miss's triage, the longest a hole could have gone undetected (time since the last…
• 原文实测切片:{ "broker" : { "capacity" : " 75% " , "adaptive" : { "mode" : " on " , "upHoldS" : 30 , "starvationS" : 300 }, "hosts" : { "ci-runner-1" : { "capacity" : 32 , "adaptive" : { "headroomMB" : 4096 } } } } } Details and the per-platform signals:…

💡 对独立开发者的启发:
1/ 供给端造工具的门槛已被 AI 和开源抹平,独立开发者真正的护城河是「找准垂直业务场景 + 做好分发」。
2/ 面对新模型或开源组件先看三件事:许可证是否商用安全、API/推理边际成本降了多少、能不能直接嵌进现有变现工作流。
3/ 别去卷通用开发者轮子,把底层新能力包装成面向具体行业人群(电商、创作者、中小商家)傻瓜式交付结果的产品。

📅 日期:2026-10-31(北京时间)
📰 信息源出处:Hacker News Show HN · davidtufts(github.com)
🔗 原文:https://github.com/davidscotttufts/tracegate-ci
📡 归档:https://billionare.me/items/rd5coc95ulwazmn3hjxrecl9k
去 X 发推
每天 08:00 邮件 / 08:30 飞书准点推送一手高信噪比情报与拆解免费订阅简报

来源:Hacker News Show HN · github.com