Skip to content

Improve report readability and preserve run details with timestamped summary/detail folders - #7

Merged
mouxinqq merged 1 commit into
developfrom
codex/refactor-stats-cache-hitratio-structure
Apr 12, 2026
Merged

mouxinqq merged 1 commit into
developfrom
codex/refactor-stats-cache-hitratio-structure

Conversation

@mouxinqq

Copy link
Copy Markdown
Owner

Motivation

  • Make session-level statistics easier to read and triage by replacing single-line TSV with human-friendly Markdown tables and a prioritized Top-20 view.
  • Prevent per-run detail files from being overwritten by separating run artifacts and always creating timestamped run folders.
  • Keep troubleshoot output layout consistent with stat-cache-hitrate so both skills produce predictable, non-destructive exports.

Description

  • Added _render_markdown_table and _truncate_text helpers and replaced TSV session export with Markdown tables and a prioritized "Top 20" troubleshooting table in stat-cache-hitrate/scripts/stat_cache_hitrate.py.
  • Changed stat-cache-hitrate report export to create <base>/<YYYYMMDD_HHMMSS>/summary and <base>/<YYYYMMDD_HHMMSS>/detail directories, write a stable summary/cache_hitrate_report.md, and place per-window/session details under detail/, and updated in-report links accordingly.
  • Applied the same timestamped summary + detail output layout to troubleshoot/scripts/troubleshoot.py and adjusted its detail file writes to detail/.
  • Updated SKILL.md for both stat-cache-hitrate and troubleshoot to document that --output is a base directory and to list the new summary/ and detail/ locations.

Testing

  • Ran Python byte-compile check with python3 -m py_compile fastdeploy/golang_router/.claude/skills/stat-cache-hitrate/scripts/stat_cache_hitrate.py fastdeploy/golang_router/.claude/skills/troubleshoot/scripts/troubleshoot.py, which succeeded.
  • Verified CLI help invocations python3 fastdeploy/golang_router/.claude/skills/stat-cache-hitrate/scripts/stat_cache_hitrate.py --help and python3 fastdeploy/golang_router/.claude/skills/troubleshoot/scripts/troubleshoot.py --help, both completed successfully.

Codex Task

@mouxinqq
mouxinqq merged commit 51a5457 into develop Apr 12, 2026
20 of 25 checks passed

This branch had an error being deployed

1 failed deployment
Metax_ci 5791a801 Deployed Apr 12, 2026 by mouxinqq via Trigger Jenkins for PR #8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant