Skip to content

ci: 增加 root 冒烟 job 覆盖真实内核数据通路 - #13

Merged
AndPuQing merged 1 commit into
mainfrom
agent/pi/43004ab2
Aug 8, 2026
Merged

AndPuQing merged 1 commit into
mainfrom
agent/pi/43004ab2

Conversation

@AndPuQing

Copy link
Copy Markdown
Owner

目标

CI 增加真实内核数据通路冒烟:ubuntu-latest 普通 runner 无 cap,taskstats 采集从未真正跑通。本 PR 新增一个以 root 运行的真实二进制冒烟。

改动

  • .github/workflows/ci.yaml:新增 smoke-root job(sudo: true),构建 release 后以 root 运行 iotop -b -n 2 -d 1。
  • scripts/smoke-root.sh:冒烟脚本,断言退出码 0、汇总表头、列头与进程行、无 panic;delay accounting 可用时校验 SWAPIN/IO 列,不可用时校验 ?unavailable? 分支。

验证

  • 本地以无权限用户跑通 ?unavailable? 分支;用 mock 验证 delayacct 分支与 panic 负向检测。
  • cargo test --locked --all-features --workspace 全绿(6 passed)。
  • 普通 job(test/rustfmt/clippy/docs/audit)未改动。

Run iotop -b -n 2 -d 1 as root on ubuntu-latest and assert headers,
process rows, exit code 0 and no panic; validates the ?unavailable?
branch when delay accounting is missing.
@AndPuQing
AndPuQing merged commit bf2b4a8 into main Aug 8, 2026
@AndPuQing
AndPuQing deleted the agent/pi/43004ab2 branch August 8, 2026 11:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant