AGENT SKILL

夜间生态巡检结果解读

ecosystem-round

在阅读夜间生态巡检结果(某个失败任务、某项变慢的性能指标、某个发生变动的数字)之前阅读——涵盖巡检脚本、日志所在位置、如何区分真正的回归与旧 bug 被新样本暴露的情况,以及在认定性能变更真实有效之前需注意的 A/B 测试陷阱。

适用职业测试工程师
License 许可
Apache-2.0
所属仓库
clice-io/clice
最近更新
2026-11-15
Stars
★ 1.4k
Forks
89

01 前言 Front Matter

name
ecosystem-round
description
Read before reading a nightly ecosystem round (a red job, a slower perf measure, a number that moved) — the round script, where the logs are, telling a regression from an old bug a new sample exposed, and the A/B pitfalls before calling a perf change real.

03 SKILL.md 正文

Reading an ecosystem round

ecosystem/README.md is the contract of the jobs; this is how to read what a round of them says.

The round in one place

node tools/ecosystem/round.ts latest          # or a run id of ecosystem.yml

It writes temp/ecosystem/<run>/:

  • round.md — the red jobs, each failure with whether the rounds before swept its file and the command reproducing it; the jobs cut short or without results; the regression numbers 1.5× the round before's; every slower perf measure of three pairs of samples or more that another platform or the night before confirms, by ratio, each with its flags, and how many fewer pairs or nothing confirm (in the jobs' report.md). round.json holds the same.
  • results/ecosystem-<artifact>/ — the results.json and report.md of every job that uploaded them (one listed without results has none).
  • logs/ecosystem-<artifact>-logs/ — the logs of the flagged jobs. Any other job's: gh run download <run> -n ecosystem-<artifact>-logs -D <dir>.

The workflow's last job, report, runs the same script: the round's summary page and its ecosystem-round artifact are this report. Results live 90 days, logs 30.

A logs artifact holds, under the runner's directories:

  • _temp/projects/<project>/<configuration>/.clice/logs/<session>/ (clice's own project: clice/clice/.clice/logs/): one directory per server or clice index run, master.log, a log per worker (SF-n stateful, SL-n stateless), index.log. The clice under test and the baseline write into the same directory: a log's first lines name its version and the commit it was built from (clice 0.1.0+g<commit> (<target>) starting, …, then Built from https://github.com/clice-io/clice/tree/<commit>), and a perf run's logs in results.json names its sessions. A crashed process's stack is in its own log after === CRASH STACK TRACE === (symbolize it: the release skill).
  • _temp/logs/run.log — what the job printed: the sweep's sweep <file> lines, a perf run's [<scenario> <file> #<run> <server>] done.

What a server did in the background: its [N/M] Indexing <file> lines, and in a perf run, which sets CLICE_PERF, its [perf:index] phase=run dispatched= lines. Read them on both sides before believing a memory or CPU number.

A red job: a regression, or an old bug a new sample exposed?

The sweep samples different files every round (the seed is the date), and each platform's database lists other units, so the same date samples other files on each platform. The history line under each failure says:

  • newly sampled — none of the rounds before swept the file: most likely an old bug. Confirm it.
  • swept before, never failing so — a regression suspect.
  • failed so before — an old failure no known entry names yet.

Confirm on a box (the agent-box skill) with two binaries: the previous nightly (gh release download <tag> --pattern 'clice-*.<target>.tar.gz', .zip for Windows, 30 days) and the tested commit's (every main CI run uploads package-clice.<target>.tar.gz, .zip for Windows, three days). Run the failure's reproduce command with each as CLICE_EXECUTABLE. Failing with both: an old bug, a board issue (write_issues) and a known entry in the project's test.ts, as narrow as the failure. Failing only with the new one: bisect the commits between them, with the packages of their main CI runs.

A hang that is not clice's: every log (master and workers) silent for the same stretch, and the request answered in milliseconds once it arrived, means the framework's own process was blocked and sent nothing. The job's run.log and its runner heap figures show where.

A perf measure: before calling it real

The flags in round.md:

  • broad — the measure is slower on most jobs at once: the measurement is the likelier cause.
  • <platform> only / every platform — whether the job's other platforms agree.
  • ≥3× — more than a day's commits change: the two sides likely did different work.
  • negative — the framework measured wrong.
  • the night before too — the confirmation came from the night before.
  • a process with two figures (SL-0 523 vs 4 MB) — whose memory differs.

Pitfalls of the A/B:

  • One sample. A scenario of one run measures its start and its memory once per server, and one cold initialize varies severalfold between two runs of the same binary on one machine (68 and 470 ms on a macOS runner): the round confirms no measure of fewer than three pairs, which a job's report.md lists all the same. Swap the binaries on the same box (CLICE_EXECUTABLE=<old> … --baseline <new>) and run one binary on both sides as the negative control: a real change follows the binary; noise, or a bias of the order, does not.
  • Run order. The order of the two servers swaps every run, and day by day for a scenario of one run. Where one server's run changes what the next one starts from (a file cache dropped, files a churn rewrote), the order is in the numbers: a job's report says per row which server ran first in its pairs. A round on main confirms a row only with the other order.
  • The OS file cache. Dropped before each run that wipes a cache, on Linux and macOS (--drop-caches, through sudo); Windows has no command for it, so its cold numbers are warm.
  • Work carried over. The scenarios of a job share the checkout and the servers' caches: a session closed mid-reindex leaves the index stale, and every fresh server after it reindexes that unit again.
  • Runners. Each job gets a runner of its own (EPYC 7763, 9V74, 9V45, Xeon 8573C on Linux): only one job's numbers compare, and a regression job's numbers beside the round before's come from another machine, twice apart on the same code and sample (abseil/msvc's index, 290 and 535 s). The sweep's numbers depend on its sample too.

Reproduce on a box with both binaries at paths of equal length (clice finds its resource directory beside itself, and path lengths reach some sizes), as the row's reproduce command in the job's report.md does, both orders.

Then

A real regression gets a fix with a regression test, a PR of its own (the pr skill). An old bug gets a board issue and a known entry. A false alarm of the framework gets fixed in tools/ecosystem/.

04 同仓库更多 Skills

clice-io
clice-io/clice

测试用例编写指南

write-tests

在编写或修改 tests/ 或 unittests/ 目录下的任何内容,或工具自身的测试之前阅读——包括用例工作流、单元测试、硬性规则以及已知的陷阱。

测试工程师测试与质量保障
★ 1.4k
clice-io
clice-io/clice

LLVM 升级指南

upgrade-llvm

在升级 xclang/LLVM(参数 = xclang 版本,例如 23.1.2.1)、修改 MODULE.bazel、.bazelrc、BUILD.bazel 或 bazel/,或重新生成 modules/ 之前阅读——适用于库版本升级之后,或 clice 需要某个其未导出的头文件或宏的情况。

软件开发工程师开发环境与工具链管理
★ 1.4k
clice-io
clice-io/clice

问题工单分诊

triage

当用户要求对问题进行分诊时使用——使用 codex 对未分诊的问题进行分类,验证标签,并返回建议的标签以及活动摘要。只读;在分叉(forked)上下文中运行。

软件开发工程师工单与问题跟踪管理
★ 1.4k
clice-io
clice-io/clice

中文文档翻译与审校指南

translate-docs

在翻译、审查或编辑任何 docs/zh 页面之前阅读——涵盖 clice 的术语表与页面约定,以及 clice-io/docs 的共享翻译规则。

翻译语言翻译与本地化
★ 1.4k
clice-io
clice-io/clice

clice 测试套件运行

test

运行 clice 测试套件,除非确实有必要本地运行,否则应在远程机器(box)上执行;另附在 Windows 上测试的方法。可选参数 = 套件(unit | cases | all,默认 all)、构建类型(Debug | RelWithDebInfo,默认 RelWithDebInfo)以及运行构建的机器 id。该技能在 fork 上下文中运行,仅返回摘要。

测试工程师测试与质量保障
★ 1.4k
clice-io
clice-io/clice

PR 审查意见修复与解决

resolve-comments

在已打开 PR 的每一轮跟进中使用——拉取其中未解决的审查讨论线程,在工作树中修复并解决它们,然后返回一份简明的摘要。

软件开发工程师代码仓库协作管理
★ 1.4k