Repository navigation
ci: 增加 root 冒烟 job 覆盖真实内核数据通路 - #13
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
目标
CI 增加真实内核数据通路冒烟:
ubuntu-latest普通 runner 无 cap,taskstats 采集从未真正跑通。本 PR 新增一个以 root 运行的真实二进制冒烟。改动
.github/workflows/ci.yaml:新增smoke-rootjob(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)。