Skip to content

diag(shell): 失败转储补充输入/读取计数 (#36) - #242

Merged
JavaZeroo merged 1 commit into
mainfrom
diag/failure-dump-input
Oct 30, 2026
Merged

JavaZeroo merged 1 commit into
mainfrom
diag/failure-dump-input

Conversation

@JavaZeroo

Copy link
Copy Markdown
Owner

内容

失败转储(stage / bytes / screen)补上输入与读取侧计数,用于区分「按键有没有进队列」和「读取是否停滞」:

新字段 含义
input_high_water 输入队列水位(Ctrl-C 是否被写入的直接指示)
input_rejected 被拒绝的字节数(队列满/关闭)
output_bytes 会话累计读取字节
read_error 读取错误码

为什么

run 41009985712 的 shell 用例在 stage 5 以「shell scenario timeout」失败:已发 Ctrl-C 与 echo TF_AFTER,但底部仍是 TF_BUSY_3323…3339 继续增长。现有转储只有 stage/consumed/screen,无法判定 Ctrl-C 是否真的进入了输入队列。

验证

termforge_shell 构建通过。

边界

  • 只在失败路径新增字段;成功路径输出不变;
  • 不改变任何期限与判据。

Refs #36 #73

The failure dump now carries input high-water, rejected bytes, output bytes and the read error, so a stalled flood shows whether the keystroke reached the queue.
@JavaZeroo
JavaZeroo merged commit e8e888c into main Oct 30, 2026
10 checks passed
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