翟志军 Jack Zhai 👋

软件工程师,10 年+ 经验:5 年 Java 后端开发 + 5 年 DevOps / SRE 实践。

📖 《Jenkins 2.x 实践指南》作者(销量 5000+)。自 2015 年笔耕至今,已写下 120+ 篇文章。

✍️ 这里记录我对 DevOps、SRE、Cloud Native、持续交付、领域驱动设计(DDD) 以及 职场成长 的思考与实践。信奉 Everything as Code。

GitHub Actions 的成本花在哪里?

简体中文 | English 假设你给一个 PR 推了一次代码,8 分钟后检查结束。这次检查用了多少 Runner 时间? 点开这次运行,里面有三个同时开始的 Job。Linux 跑了 8 分钟,Windows 跑了 6 分钟,macOS 跑了 5 分钟。三个 Runner 加起来用了 8 + 6 + 5 = 19 分钟。要算费用,还得把每个 Job 的时长和对应的 Runner 费率放在一起看。 AI 生成代码快了,一天里能做的改动也更多。如果这些改动变成更多 PR,或者在同一个 PR 上多推几次代码,CI 也可能多跑。按刚才那条检查算,多跑 5 次就多用 5 × 19 = 95 分钟 Runner 时间。这些额外的分钟进入计费后,Actions 账单也会跟着涨。 要解释账单为什么涨,我会先找出开销最大的工作流,再看它是跑得更勤了,还是每次跑得更久了。 ...

2026-11-28 · 4 分钟 · 1742 字 · 翟志军 Jack Zhai

Where Does the Money Go in GitHub Actions?

English | 简体中文 Suppose you push a commit to a pull request branch and the checks finish eight minutes later. How much runner time did they use? Open the run and you see three jobs that started together. The Linux job ran for eight minutes, the Windows job for six, and the macOS job for five. That adds up to 8 + 6 + 5 = 19 runner minutes. To estimate the cost, you also need the rate for each runner. AI can generate code faster, so teams can get more changes ready in a day. If that means more pull requests or more pushes to the same branch, those events can trigger more CI runs. Five extra runs of the checks above would use another 5 × 19 = 95 runner minutes. When that extra time is billable, the monthly Actions cost goes up. I’d check the most expensive workflow first. Did it run more often, or did its jobs take longer? ...

2026-11-28 · 5 min · 978 words · 翟志军 Jack Zhai

大代码库里,改动前要弄懂什么?

假设我要给发布任务加自动重试。部署服务已经接收请求,开始更新实例,工作进程却在记下结果前退出了。调度器再跑一次这条任务时,部署服务会接着上次的进度,还是再启动一轮更新? ...

2026-11-25 · 3 分钟 · 1119 字 · 翟志军 Jack Zhai

接手一个系统,怎样才算读懂它?

假设你刚接手团队的发布平台。每次发布都要先拿一把以服务名为键的锁,然后执行数据库迁移、部署应用。现在团队希望同一个版本能同时部署到两个地域。看上去,把地域加到锁的键里就能放开并发。 ...

2026-11-25 · 3 分钟 · 1023 字 · 翟志军 Jack Zhai

When Developers Use AI to Do Ops, the Same Pitfalls Remain

中文版 Let me introduce myself first. I have more than ten years of software engineering experience, beyond coding alone: about half in backend development and architecture, and half in DevOps, SRE, and platform engineering. Over the years, I have found that many people still equate DevOps, SRE, and platform engineering with traditional operations: people who manually deploy software and operate production services. I find it surprising that this view is still around. ...

2026-11-19 · 6 min · 1179 words · 翟志军 Jack Zhai

当开发使用 AI 干运维的活,运维的坑都要踩一遍

English version 有必要介绍一下我自己。我有10年+的软件工程经验(不是编码经验)。一半经验是后端开发与架构经验、一半经验是DevOps/SRE/平台工程。 ...

2026-11-19 · 5 分钟 · 2205 字 · 翟志军 Jack Zhai

[译] 内容寻址存储(CAS):工作原理、企业应用与部署取舍

译注:本文按用户提供的英文全文翻译,保留原文的章节和论述。CAS 统一译作“内容寻址存储”,首次出现时保留英文全称。原文把内容完整性校验、不可变写入、留存策略与法规合规多次混为一谈,也有依赖具体实现的性能断言;相关位置附有译注,不能将正文中的这些断言直接视为技术保证或合规结论。核对日期为 2026-11-11。 ...

2026-11-11 · 23 分钟 · 11104 字 · 翟志军 Jack Zhai

[译] 软件测试中的预言问题综述

原文:The Oracle Problem in Software Testing: A Survey。作者为 Earl T. Barr、Mark Harman、Phil McMinn、Muzammil Shahbaz 和 Shin Yoo。正式发表信息为 IEEE Transactions on Software Engineering,2015 年,第 41 卷第 5 期,507–525 页。UCL Discovery 提供开放获取版本。 ...

2026-11-11 · 57 分钟 · 28409 字 · Earl T. Barr, Mark Harman, Phil McMinn, Muzammil Shahbaz, Shin Yoo

[译] 编写 Bazel rules(一):simple binary rule

原文:Writing Bazel rules: simple binary rule 作者:Jay Conrod,曾在 Google 的 Go 团队工作,现就职于 EngFlow。 原文发表于 2018-07-31,更新于 2025-09-08。 译注:文中的“我”指原作者。版本号和工具行为保留原文发表或更新时的语境,示例代码与技术术语保留原样。 ...

2026-11-10 · 12 分钟 · 5613 字 · Jay Conrod

[译] 编写 Bazel rules(七):module extensions

原文:Writing Bazel rules: module extensions 作者:Jay Conrod,曾在 Google 的 Go 团队工作,现就职于 EngFlow。 原文发表于 2025-10-14。 译注:文中的“我”指原作者。版本号和工具行为保留原文发表或更新时的语境,示例代码与技术术语保留原样。 ...

2026-11-10 · 8 分钟 · 3952 字 · Jay Conrod