-
Notifications
You must be signed in to change notification settings - Fork 16
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
Throw error to force error status in workflow UI #135
base: main
Are you sure you want to change the base?
Conversation
0ad23be
to
1ad8d77
Compare
We can expect the kogito runtime to mark the process instance as failed when this is resolved apache/incubator-kie-kogito-runtimes#3475 |
this would mean we would need a slight definition change to make that happen
|
d7bf7a0
to
f65060c
Compare
@rgolangh With apache/incubator-kie-kogito-runtimes#3475 / apache/incubator-kie-kogito-runtimes#3491 it works But I guess we do not want to merge that until we have the fix available in stable build (cc @pkliczewski @masayag ), maybe @ricardozanini knows when this fix will be embedded |
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.
As stated, let's merge after there is an available stable build with the required enhancement.
@gabriel-farache apache/incubator-kie-kogito-runtimes#3475 was fixed and now we can set workflow end status |
@pkliczewski Yes, I know, that is what I wrote in my previous comment. |
@gabriel-farache there is new stable build release 2 days ago and @masayag will create stable branch soon and use this build. I think we have everything we need to use it. |
@gabriel-farache can you resume this work? |
@@ -1,4 +1,4 @@ | |||
FROM quay.io/kiegroup/kogito-swf-builder-nightly:main-2024-04-08 AS builder | |||
FROM quay.io/kiegroup/kogito-swf-builder-nightly:latest AS builder |
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.
according to the security recommendations, it isn't advised to use the latest.
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.
agree but this is the only image with the feature in it: apache/incubator-kie-kogito-runtimes#3491 was merged on may 3rd but the most recent image with a fixed tag dates from April 28th
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.
@rgolangh We should close it IMO, completion and error are related to the workflow runtime execution, not the status of what the workflow is doing Plus, Gary stated in his latest comment https://issues.redhat.com/browse/FLPATH-1127 that it's fine |
nevermind my above comment, it appears that I made some change based on apache/incubator-kie-kogito-runtimes#3475 that I completly forgot about and that this is the baseline to manage workflow "purpose" failure |
f65060c
to
3ddd941
Compare
I only need a swf builder image with a fixed tag |
e33a97e
to
4299b23
Compare
4299b23
to
2e2bb48
Compare
@@ -1,4 +1,4 @@ | |||
FROM quay.io/kiegroup/kogito-swf-builder-nightly:main-2024-04-08 AS builder | |||
FROM quay.io/kiegroup/kogito-swf-builder-nightly:latest AS builder |
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.
latest isn't recommended by konflux, let's pin to a specific version
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 but this is for dev
and IMO, for dev purposes it's OK to use the latest to test changes, no?
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.
Somehow I remembered that konflux has no-latest-tag tolerance. if that isn't the case, that's fine.
but giving it another thought - we won't be able to know against which builder image the workflow was created.
that should provide us some information when debugging issues or when trying to reproduce one.
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.
that should provide us some information when debugging issues or when trying to reproduce one.
the dev image should only be used when developing something on the workflow, so that does no apply here
we won't be able to know against which builder image the workflow was created.
When someone is developing (s)he knows what's going on
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.
I don't mind chaning that dockedrfile, it is not in use by konflux or the the github action. Just looking more closely I see that there is no meaningful difference to the workflow-builder.Dockerfile
other than the builder image. In that case why not remove this file altogether and use a build-arg if you want some latest? or even create a make rule for building for devlopers?
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.
There used to be differences between the two. If this is no longer the case (when we had the extensions included in the build image of the d/s builder image).
Wouldn't the developer will need to have a dockerfile, even with argfile? where do you recommend to have that file for him? (talking about upstream contributor/developer)
b88693f
to
02d80e5
Compare
02d80e5
to
79f0354
Compare
79f0354
to
c93ebe8
Compare
Signed-off-by: gabriel-farache <gfarache@redhat.com>
c93ebe8
to
e15b1bb
Compare
can you please rephrase the cover message for the PR? |
can you add an MTA e2e test that will test this failure mode? |
FLPATH-1127
https://issues.redhat.com/browse/FLPATH-1127
Currently, when an error occurs in the workflows, their status in the UI is
completed
which is not really a good feedback; it should beerror
instead to reflect the real state of the workflow.We can hack it, based on https://github.com/tiagodolphine/backstage-orchestrator-workflows/blob/main/workflows/wait-or-error.sw.yaml, to throw an error, if something is wrong in the workflow, in order to force the status to
error
and better reflects the real state of the workflow