Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CustomRun.Status.CustomRunStatusFields.Results field do not support all ResultTypes Making Interop Across Pipeline Not 100% Compatible #7751

Open
aaron-prindle opened this issue Mar 13, 2024 · 2 comments
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@aaron-prindle
Copy link
Contributor

aaron-prindle commented Mar 13, 2024

In the latest version of CustomRun (v1beta1), the CustomRun.Status.CustomRunStatusFields.Results field do not support all ResultTypes that v1 TaskRun does.

This is the CustomRunResult struct (code here:

// CustomRunResult used to describe the results of a task
type CustomRunResult struct {
    // Name the given name
    Name string `json:"name"`
    // Value the given value of the result
    Value string `json:"value"`
}

This is the v1 TaskRun Result struct (code here):

// TaskRunResult used to describe the results of a task
type TaskRunResult struct {
	// Name the given name
	Name string `json:"name"`

	// Type is the user-specified type of the result. The possible type
	// is currently "string" and will support "array" in following work.
	// +optional
	Type ResultsType `json:"type,omitempty"`

	// Value the given value of the result
	Value ResultValue `json:"value"`
}

Currently I believe this is a bug as it makes it not possible to do fully interop with v1 TaskRuns w/ a Custom Task (CustomRun) as there is not a way to properly map all ResultTypes.

The fix here would be update the CustomRunResult to support String, Array, and Object Result types making the supported Results similar/identical to the Results available to V1 Task/TaskRuns

@aaron-prindle aaron-prindle added the kind/bug Categorizes issue or PR as related to a bug. label Mar 13, 2024
@aaron-prindle aaron-prindle changed the title Currently CustomRun.Status.CustomRunStatusFields.Results field do not support all ResultTypes CustomRun.Status.CustomRunStatusFields.Results field do not support all ResultTypes Mar 13, 2024
@aaron-prindle aaron-prindle changed the title CustomRun.Status.CustomRunStatusFields.Results field do not support all ResultTypes CustomRun.Status.CustomRunStatusFields.Results field do not support all ResultTypes Making Interop Across Pipeline Not 100% Compatible Mar 13, 2024
@dibyom
Copy link
Member

dibyom commented Mar 13, 2024

/cc @Yongxuanzhang @chitrangpatel I think this is something that was just not implemented right? Shouldn't be hard to add?

@chitrangpatel
Copy link
Member

I agree, this feels unintentional. We should be able to add it easily I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

3 participants