feat: Show detailed information for one run in the terminal (#251) - #425
Open
anna495 wants to merge 5 commits into
Open
feat: Show detailed information for one run in the terminal (#251)#425anna495 wants to merge 5 commits into
anna495 wants to merge 5 commits into
Conversation
added 5 commits
July 30, 2026 10:49
- areno show <run_id> 支持 human/table/json 三种输出格式 - 展示 model/dataset/algo/key settings/stage/latest metrics/last error - 支持 partial ID 前缀匹配和 PID 匹配 - Dashboard 不可用时 fallback 到本地 artifact - 自动隐藏 secrets (key/token/password),不打印完整训练样本 - 20 个 CPU 测试覆盖成功路径、无效输入、边界情况、活跃run、job解析 - 文档 docs/show-run.md 含用法、输出示例、选项说明、测试概览
- Dashboard API返回的config包含sections结构化数据,解析为flat key-value
- 单独调用/api/jobs/{id}/metrics获取指标摘要
- 新增_fetch_metric_summaries函数
…ard 消除重复代码 show_command 和 _load_job_details 里都有 sections 解析逻辑,提取成共享函数
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.
Summary
Add
areno show <run_id>— display model, dataset, algorithm, resolved key settings, current stage, latest metrics, and last error for a single training run. Reads from existing local artifacts with no new dependencies.Usage
Run ID can be a full ID, partial ID prefix (if unique), or PID.
CLI Output
What changed
areno/cli/show.pyareno showCLI with human/table/json outputareno/cli/main.pyshowcommandtests/test_cli_show_cpu.pydocs/show-run.mdEdge cases handled
Design decisions
GET /api/jobs/{id}first for full data, falls back to reading local artifact files when server is unavailable.sectionskey for structured display._normalize_dashboard_config()extracts flat key-value pairs for CLI consumption.key/secret/token/password/credentialpatterns are automatically hidden from output.Tests (20 CPU)
Related Issue
Closes #251