[CMPT-5391] feat(pipelines): add dr pipeline run subcommands - #541
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds the run subcommand group for triggering and inspecting pipeline executions (create/list/get/status/cancel). - internal/pipelines/run.go: CreateRun, ListRuns, GetRun, RunStatus, CancelRun — API client for the /dispatches endpoints - cmd/pipelines/run/: run create/list/get/status/cancel + runutil output - docs: run section in pipelines.md, run endpoints in pipelines-reference.md Wire-level endpoints still use "dispatches"; CLI output uses run_id / covalent_run_id per the vocabulary migration in the codebase. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Apply sunny/pipelines versions of run subcommand files and update all import paths to use internal/pipeline (singular) after rename. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…n, limit defaults, version prefix Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
9d6597f to
fa1e5bf
Compare
|
bugbot run |
|
🔐 Fork smoke tests started by maintainer ⏳ Security scans passed. Running smoke tests... Commit: |
There was a problem hiding this comment.
Pull request overview
Adds a new dr pipeline run command group to trigger and inspect pipeline executions (“dispatches” on the wire) and extends docs to cover the new subcommands and API mapping.
Changes:
- Introduces
internal/pipelinerun client + rendering helpers (JSON remapping torun_id/covalent_run_id). - Adds
dr pipeline run create/list/get/status/cancelcobra commands with unit tests. - Updates command documentation to include the new
rungroup and endpoint reference.
Reviewed changes
Copilot reviewed 20 out of 20 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| internal/pipeline/run.go | Adds client wrappers for run/dispatch endpoints (create/list/get/status/cancel). |
| internal/pipeline/run_test.go | Unit tests for run client URL routing, query params, and error propagation. |
| internal/pipeline/run_output.go | Adds human/JSON rendering for runs and run status (CLI vocabulary mapping). |
| docs/commands/README.md | Updates command tree + overview list to include pipeline run subcommands. |
| docs/commands/pipelines-reference.md | Adds run endpoints mapping section and quick lookup entries. |
| docs/commands/pipeline.md | Documents run subcommands and updates error-handling table. |
| cmd/pipeline/run/status/cmd.go | Implements dr pipeline run status command and 404 suppression. |
| cmd/pipeline/run/status/cmd_test.go | Tests for output validation, missing pipeline, and 404 suppression helper. |
| cmd/pipeline/run/list/cmd.go | Implements dr pipeline run list command with pagination flags. |
| cmd/pipeline/run/list/cmd_test.go | Tests flag presence, missing pipeline, invalid scope combo, invalid output. |
| cmd/pipeline/run/get/cmd.go | Implements dr pipeline run get command and 404 suppression. |
| cmd/pipeline/run/get/cmd_test.go | Tests output validation, missing pipeline, positional arg requirement, 404 suppression helper. |
| cmd/pipeline/run/create/cmd.go | Implements dr pipeline run create command with required --input. |
| cmd/pipeline/run/create/cmd_test.go | Tests required flags, invalid output, invalid scope/version combination, flag presence. |
| cmd/pipeline/run/cmd.go | Registers the run command group and subcommands. |
| cmd/pipeline/run/cmd_test.go | Ensures all run verbs are registered. |
| cmd/pipeline/run/cancel/cmd.go | Implements dr pipeline run cancel command. |
| cmd/pipeline/run/cancel/cmd_test.go | Tests missing pipeline, invalid scope combo, positional arg requirement, command name. |
| cmd/pipeline/cmd.go | Wires run into the top-level dr pipeline command group. |
| cmd/pipeline/cmd_test.go | Updates expectations to include run as a subcommand. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
✅ All smoke tests passed! (Fork PR) ✅ Security Scan: success |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…cancel, 404 suppression in cancel Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…e duplicate handlers Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
bugbot run |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit f8c0d08. Configure here.
…ch API camelCase convention Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
🔐 Fork smoke tests started by maintainer ⏳ Security scans passed. Running smoke tests... Commit: |
|
✅ All smoke tests passed! (Fork PR) ✅ Security Scan: success |
…h_id in lookup table, locked URLs for status/cancel Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Summary
dr pipeline run create/list/get/status/cancel— trigger, inspect, and cancel pipeline executionsdispatches/dispatch_id;--output-format jsonremaps these torun_id/covalent_run_idcmd/pipeline/run/runutil/shared error-handling helpers andinternal/pipeline/run.goscopeflag.Flags(shared `--pipeline`/`--scope`/`--version`) from the base infrastructure--pipelineflag is marked required viacmd.MarkFlagRequiredon all subcommands that accept itStacked on: `cmpt-5391/pipelines-crud` (merged as PR #532) — diff shows only the delta above main.
Test plan
🤖 Generated with Claude Code