Add pipelines describe command (hidden) - #6581
Open
chenyuem-db wants to merge 1 commit into
Open
Conversation
Show a pipeline's configuration and current state, plus the result of its most recent update. The pipeline can be addressed by bundle KEY (resolved via the bundle) or by PIPELINE_ID (a UUID), which is resolved directly and needs no bundle. Backed by the public Get and GetUpdate APIs, called in the same request- struct style as `pipelines run`. Hidden for now because output is limited to basic info; unhide once richer output (datasets, DAG, lineage) lands. Exports LooksLikeUUID from cmd/pipelines and reuses it in the workspace `stop` override instead of a second copy. Adds a describe-by-id acceptance test. Co-authored-by: Isaac <no-reply@databricks.com>
Contributor
|
An authorized user can trigger integration tests manually by following the instructions below: Trigger: Inputs:
Checks will be approved automatically on success. |
Contributor
Approval status: pending
|
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.
What
Adds a
databricks pipelines describecommand that summarizes a pipeline — its configuration, current state, and the result of its most recent update. The pipeline can be addressed by bundle KEY, or by PIPELINE_ID (a UUID, which needs no bundle).Output defaults to a readable text summary (like
run/show/history);--output jsonis available for scripting.Also exports
LooksLikeUUIDfromcmd/pipelinesand reuses it in thestopoverride, removing a duplicate copy.Why it's hidden
The command is marked
Hidden: truebecause part of its intended output is still WIP: richer sections (datasets, lineage) depend on pipeline-entity APIs that aren't public yet. Landing the basics now, hidden, lets the command be iterated on without advertising an incomplete surface. It will be unhidden once the fuller output is in.Tests
TestLooksLikeUUID,TestPipelineDescribeTemplateNoRuns.acceptance/pipelines/describe/basic(describe by PIPELINE_ID, text + JSON).go test ./cmd/pipelines/ ./cmd/workspace/pipelines/,gofmt, andgo vetpass.This pull request and its description were written by Isaac.