知识卡片

普通读书笔记卡 · 6075.d.4.a

流程缺陷也应建立回归检查

理解等级:中级

发现生成物不同步等流程问题时,先加入能识别它的检查,让当前状态失败,再修复至通过。这样验证的不只是一次修正,还固定了今后可重复发现同类问题的机制。检查必须对应真实失效方式,不能用只验证脚本自身实现的条件凑门禁。

这张卡片看不懂?

已有反馈 · 0 / 10 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • Chapter 5. Tooling CI Principles · 查看原书依据

      process problems add a CI step that detects a process issue, before fixing the issue. For example, if you discover that some auto-generated code has gotten out of sync with its source, add a check for this to the CI system. This check will initially fail but then turn green once the problem is solved—giving you confidence that this category of process error

    参考来源

    - 位置:《Effective Rust 35 Specific Ways to Improve Your Rust Code (David Drysdale)》第5章《CI Principles》(spine9;extracted/Effective Rust 35 Specific Ways to Improve Your Rust Code (David Drysdale)/_epub-src/OEBPS/ch05.html;u164-ch05-036)。 - 结论依据:原文在“process problems”附近的定义、例子或代码支撑本卡核心说明:发现生成物不同步等流程问题时,先加入能识别它的检查,让当前状态失败,再修复至通过。边界按已读前提解释;示例未执行。 - 原始内容:process problems add a CI step that detects a process issue, before fixing the issue. For example, if you discover that some auto-generated code has gotten out of sync with its source, add a check for this to the CI system. This check will initially fail but then turn green once the problem is solved—giving you confidence that this category of process error