Phase 2 Testing: 查询命令 (RFC #411) #413

Closed
opened 2026-05-23 06:00:54 +00:00 by xiaoju · 0 comments
Owner

验证目标

uwf log 子命令能按进程、按 thread 查询日志,能清理旧日志。

测试步骤

  • Step 1: uwf log list

    uwf log list
    

    预期: 列出日志文件及大小

  • Step 2: uwf log show --thread

    uwf log show --thread <thread-id>
    

    预期: 输出该 thread 所有关联 log,按时间排序

  • Step 3: uwf log show --process

    uwf log show --process <pid>
    

    预期: 输出该进程的所有 log

  • Step 4: uwf log clean

    uwf log clean --before 2026-01-01
    

    预期: 删除指定日期之前的日志文件

  • Step 5: 测试通过

    bun run test
    

    预期: 所有测试通过

验证完成标准

所有 checkbox 打勾
CI 构建成功

Ref: #411, #410

## 验证目标 `uwf log` 子命令能按进程、按 thread 查询日志,能清理旧日志。 ## 测试步骤 - [ ] **Step 1: uwf log list** ```bash uwf log list ``` **预期:** 列出日志文件及大小 - [ ] **Step 2: uwf log show --thread** ```bash uwf log show --thread <thread-id> ``` **预期:** 输出该 thread 所有关联 log,按时间排序 - [ ] **Step 3: uwf log show --process** ```bash uwf log show --process <pid> ``` **预期:** 输出该进程的所有 log - [ ] **Step 4: uwf log clean** ```bash uwf log clean --before 2026-01-01 ``` **预期:** 删除指定日期之前的日志文件 - [ ] **Step 5: 测试通过** ```bash bun run test ``` **预期:** 所有测试通过 ## 验证完成标准 ✅ 所有 checkbox 打勾 ✅ CI 构建成功 Ref: #411, #410
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#413