Skip to content

Add error_message to connect artifact describe/list output#3407

Draft
Himanshu Singla (hisingla12) wants to merge 1 commit into
mainfrom
cc-40048-error-message
Draft

Add error_message to connect artifact describe/list output#3407
Himanshu Singla (hisingla12) wants to merge 1 commit into
mainfrom
cc-40048-error-message

Conversation

@hisingla12

Copy link
Copy Markdown
Member

Summary

Surfaces the new error_message field from CamV1ConnectArtifactStatus (Connect Artifact) so users see why artifact inspection failed instead of just status: FAILED.

Note

Draft: this depends on a ccloud-sdk-go-v2/cam bump that hasn't been released yet, so it won't build until that lands. Opening early for review of the CLI-side change itself.

Jira: CC-40048

Test plan

  • Update golden fixtures under test/fixtures/output/connect/artifact/ once the SDK bump lands and a FAILED-state scenario can be added to the fake test server

Surfaces the new error_message field from CamV1ConnectArtifactStatus
so users see why artifact inspection failed instead of just status:
FAILED.

Draft: depends on a ccloud-sdk-go-v2/cam bump that isn't released yet
(error_message is only in the public spec as of confluentinc/api#2615,
not yet merged), so this doesn't build until that lands. Opening early
for review of the CLI-side change itself.
Copilot AI review requested due to automatic review settings July 19, 2026 15:56
@confluent-cla-assistant

Copy link
Copy Markdown

🎉 All Contributor License Agreements have been signed. Ready to merge.
Please push an empty commit if you would like to re-run the checks to verify CLA status for all contributors.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Surfaces backend-provided Connect Artifact inspection failure details by exposing the error_message field in the Connect artifact list/describe outputs, helping users understand why an artifact is FAILED.

Changes:

  • Add an ErrorMessage output field to Connect artifact rendering.
  • Populate ErrorMessage from CamV1ConnectArtifactStatus.error_message during output conversion.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Environment string `human:"Environment" serialized:"environment"`
ContentFormat string `human:"Content Format" serialized:"content_format"`
Status string `human:"Status" serialized:"status"`
ErrorMessage string `human:"Error Message" serialized:"error_message"`
Comment on lines 50 to 54
Environment: artifact.Spec.GetEnvironment(),
ContentFormat: artifact.Spec.GetContentFormat(),
Status: artifact.Status.GetPhase(),
ErrorMessage: artifact.Status.GetErrorMessage(),
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants