feat(cli): unify job run orchestration for dataset tasks - #1235
Merged
Conversation
…ied job metadata - Add JobViewer client to read job results, trials, trajectories, artifacts and logs from OSS (supports AK/SK and admin STS auth) - Add rock_meta.json: unified metadata written inside the sandbox by both BashTrial and HarborTrial wrapper scripts, enabling job status tracking (running/completed/failed) for both job types - Extend CLI with `rock job list/show/trials/trial` subcommands - Add JobMeta model and render_meta_json helper - 70 new unit tests (test_viewer.py + test_meta.py) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Harbor's own _oss_mirror_job_root_files() handles rock_meta.json upload. Only BashTrial needs wrapper-level meta writing. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ection and invalid JSON Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
dengwx2009
approved these changes
Jul 14, 2026
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
rock job runinto a unified entrypoint for single-task, multi-task, and full dataset execution via--task,--tasks, and--allrock.cli.job_runfor task planning, run/job metadata writes, concurrency control, JSONL progress events, and score summaries--resume <run_id>support that skips completed tasks, reconnects to still-running sandbox jobs when metadata containssandbox_id/session/pid, and marks unrecoverable attempts before rerunrock job runs,rock job status --run-id, and run-awarerock job showValidation
uv run pytest tests/unit/sdk/job/test_planner.py tests/unit/sdk/job/test_run_meta_repository.py tests/unit/sdk/job/test_executor_concurrent.py tests/unit/cli/command/test_job.py tests/unit/cli/test_job_run.py— 26 passeduv run pytest tests/unit/sdk/job/test_meta.py tests/unit/sdk/job/test_viewer.py tests/unit/sdk/job/test_executor.py tests/unit/sdk/job/test_job.py tests/unit/sdk/job/test_config.py— 208 passedfeat/job-run-all:dist/rl_rock-1.10.1.dev2-py3-none-any.whl.dist-info, andMETADATA Versionare all1.10.1.dev2Closes #1231