-
Notifications
You must be signed in to change notification settings - Fork 27
fix(task): task run finished not consistent #304
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
Open
xibz
wants to merge
1
commit into
cdevents:main
Choose a base branch
from
xibz:consistency
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests typically have assertions, which may succeed or fail, and in case the tests fails to execute before the assertion is evaluated, that's considered an error. How does that model apply to task runs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same as how it applies to pipeline run. If pipeline run has it as enum, this should probably be an enum was my thinking
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I see, it was added in #238.... well, I'm ok to make things consistent, but only if there's a meaning - I guess I already expressed by concerns at the time in #237.
I'm fine to keep the two type of failures for TaskRuns and PipelineRuns if there is a meaning to it.
For Tekton I wouldn't know which one to use. I guess we could use one for validation errors (so it didn't run at all) and another one for runtime errors, although the distinction is arbitrary as validation error, when using dynamic values in matrices and results, can also happen at runtime.
As longs as there's clear guidance for the meaning I'm ok. If not I would rather remove it from PipelineRuns.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, and that is a very important concern. The idea (my plan) is to add these to the _defs so it is very clear on what these mean. But holding off, until we define the subjects that encompass this. Ill create an issue for that, if that helps
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can the
_defscould also explain how to mapskip,ignore(currently I convert them intocancel, but maybe it's not the good solution).There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They need to. I understand the want to convert some of the fields. When writing the java SDK, I made a bunch of changes as well for a better DX. I also felt like it wasn't the best solution. Maybe we should sync up and see how we can address these issues in the schemas cause I identified so many areas for improvements