feat(cli): add areno runs command to list active/recent runs - #297
Open
wtbdev wants to merge 2 commits into
Open
feat(cli): add areno runs command to list active/recent runs#297wtbdev wants to merge 2 commits into
areno runs command to list active/recent runs#297wtbdev wants to merge 2 commits into
Conversation
wtbdev
force-pushed
the
feat/areno-runs
branch
2 times, most recently
from
July 28, 2026 07:57
e2d6d2e to
07e2638
Compare
…sionAI#250) Add a lightweight CLI command that lists train/serve runs from the existing ~/.areno/dashboard-jobs.json registry. No database, no new dependencies, no GPU imports. - areno/cli/dashboard_registry.py: add public read_registry(), pid_is_running(), read_dashboard_state(), derive_status(), compute_age(), compute_duration(), format_table() - areno/cli/runs.py: click command with table (default) and --json output - areno/cli/main.py: register "runs" subcommand - tests/test_cli_runs_cpu.py: 29 CPU tests covering all statuses, output formats, edge cases (malformed JSON, missing fields, empty registry, PID deduplication) Co-Authored-By: Claude <noreply@anthropic.com>
- Add missing trailing newlines (W292) - Sort imports (I001) - Remove unused (F401) Co-Authored-By: Claude <noreply@anthropic.com>
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.
Closes #250
Summary
Add
areno runs— a lightweight CLI command that lists active and recent AReno train/serve runs from the existing~/.areno/dashboard-jobs.jsonregistry. No database, no new dependencies, no GPU imports.Usage
Output (table mode)
What changed
areno/cli/dashboard_registry.pyread_registry(),pid_is_running(),read_dashboard_state(),derive_status(),compute_age(),compute_duration(),format_table()areno/cli/runs.pyruns_commandclick commandareno/cli/main.py"runs"in_COMMANDStests/test_cli_runs_cpu.pyStatus derivation
rollout,train)runningstatus=succeededsucceededstatus=failedfailedstatus=stoppedstoppedexitedStatus uses the
statusfield written by the dashboard server's job watcher (notreturncode, which is never persisted to disk).Design decisions
dashboard_registry.py— PID check, age/duration formatting, status derivation, and table formatting live alongside the existing registry I/O so that future CLI commands (e.g. Compare two training runs from the CLI #255areno diff) can reuse them without duplicationupdated_atis initialized tocreated_atat registration and never updated for CLI-started jobs,compute_duration()falls back totime.time()unlessupdated_at > created_atTests (29 CPU)
--json,--limit,--all, sorting, help output, table output (9)pidfield, wrongpidtype (2)--🤖 Generated with Claude Code