-
Notifications
You must be signed in to change notification settings - Fork 137
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
"tink workflow state" does not return error when workflow UUID can't be found #381
Comments
@thebsdbox I removed the bug label because looking at the code, it is written with that behavior in mind. I don't have enough context to know why, but first, we have to figure out if this is a feature or a bug |
In my opinion this is most certainly a bug. A deleted workflow still has state in the database that could be returned here. If the intention is to not return data for deleted workflows, then the state command should return an error when looking up a 'nonexistent' workflow. |
I think we should leave it there for visibility and troubleshooting purpose
at least for some time. For the same reason kubernetes doesn't delete
resource straight away.
But I am not sure how it works today
…On Wed, 24 Feb 2021, 19:32 James W. Brinkerhoff IV, < ***@***.***> wrote:
In my opinion this is most certainly a bug. A deleted workflow still has
state in the database that could be returned here. If the intention is to
not return data for deleted workflows, then the state command should return
an error when looking up a 'nonexistent' workflow.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#381 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMOAO7PFV5ZLCPXTZHLBB3TAVA2BANCNFSM4UUZXHKA>
.
|
…if workflow does not exist Signed-off-by: parauliya <[email protected]>
…if workflow does not exist Signed-off-by: parauliya <[email protected]>
Fixed #381: 'tink workflow state' command returns an error if workflow does not exist
Expected Behaviour
Running
tink workflow state $(uuidgen)
should always return error.Current Behaviour
Running the command above exits with 0:
Possible Solution
Add validation.
Steps to Reproduce (for bugs)
tink workflow state $(uuidgen)
Context
Tinkerbell version: 9c52cca
The text was updated successfully, but these errors were encountered: