feat(datasets): add tasks subcommand with file task support and improved output#875
Merged
BCeZn merged 3 commits intoalibaba:masterfrom Apr 22, 2026
Merged
Conversation
- add `rock datasets tasks` with required org/dataset and default split=test - support offset/limit pagination for displayed task IDs - extend DatasetClient and registry layers with list_dataset_tasks - add unit tests for CLI, client, and OSS registry behavior Co-Authored-By: Oz <oz-agent@warp.dev>
…ader Add visual separation between log messages and task list output: - Empty line and separator line before results - Consolidated info line with dataset/split/total/shown - "#Task name" header with underline for task list Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Previously, task listing only recognized directory tasks from prefix_list. This fix adds support for file tasks from object_list: - Add _extract_tasks_from_split method to merge directory and file tasks - Strip file suffix (e.g., task-001.json -> task-001) - Ignore placeholder objects (key ending with "/") and nested paths - Dedupe and sort merged task list This affects both list_datasets (task count) and list_dataset_tasks (task list). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
9daa2e7 to
5a02133
Compare
dengwx2009
approved these changes
Apr 22, 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 datasets tasksCLI command to list task IDs under a dataset splitcloses #874
Changes
CLI
rock datasets taskswith--org,--dataset,--split,--offset,--limitargs#Task nameheader for readable outputSDK
list_dataset_taskstoDatasetClientand registry layers_extract_tasks_from_splitmethod to merge directory + file taskstask-001.json→task-001)Tests
Test Plan
uv run pytest tests/unit/datasets/ -vpasses (15 tests)Usage Example