Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Running a Green CI Pipeline Isn't the Hard Part Anymore

说明与用途

原本为人类编写代码设计的 CI 流水线在 AI 生成大量提交时成为瓶颈。启用 Harness CI 的智能功能(依赖缓存、选择性测试、构建缓存、Docker 层缓存、测试并行和 flaky 测试检测)可消除不必要的工作,缩短构建时间并提高可靠性。

问题

AI‑generated code increases CI queue length and build times because the pipeline was designed for human‑written code, leading to redundant work such as full dependency downloads, recompilation, and full test suites.

结果

The pipeline now skips redundant dependency downloads, recompilation, and tests, cutting build times and improving green‑rate reliability in an AI‑heavy commit environment.

工作流

  • Enable Cache Intelligence by setting cache.enabled:true at stage level to preserve dependency caches.
  • Enable Test Intelligence by setting intelligence.disabled:false on test steps to run only affected tests.
  • Enable Build Intelligence by setting build-intelligence.enabled:true to reuse unchanged module outputs.
  • Configure Docker Layer Caching to avoid rebuilding unchanged base layers.
  • Use test splitting and parallelism to run tests concurrently.
  • Apply flaky test detection and quarantine to reduce noise from intermittent failures.

证据

AI coding assistants removed the slowest part of the development cycle: writing code. What they did not touch is everything after the commit: dependency resolution, compilation, test execution, image builds.

来源

On the first run, the cache step shows "file not found" because nothing has been saved yet. On every subsequent run, it restores the full .m2/repository in seconds.

来源

On the second run, after changing a single file (InputValidator.java), TI selected only 12 tests and skipped the remaining 30. The test run time dropped from 58ms to 16ms.

来源

  • 记录日期: 2026-10-27T07:26:51.121Z