-
Notifications
You must be signed in to change notification settings - Fork 858
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
Fix: The apply failure error is ignored when the workflow is executed #4455
Conversation
Signed-off-by: yangsoon <songyang.song@alibaba-inc.com>
@@ -134,7 +134,7 @@ func (h *provider) ApplyInParallel(ctx wfContext.Context, v *value.Value, act ty | |||
deployCtx := multicluster.ContextWithClusterName(context.Background(), cluster) | |||
deployCtx = auth.ContextWithUserInfo(deployCtx, h.app) | |||
if err = h.apply(deployCtx, cluster, common.WorkflowResourceCreator, workloads...); err != nil { | |||
return v.FillObject(err, "err") | |||
return err |
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.
Ping @FogDong
Codecov Report
@@ Coverage Diff @@
## master #4455 +/- ##
===========================================
- Coverage 61.58% 49.63% -11.95%
===========================================
Files 348 286 -62
Lines 34425 31224 -3201
===========================================
- Hits 21201 15499 -5702
- Misses 10467 13518 +3051
+ Partials 2757 2207 -550
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
Should we also change the v.FillObject(err, "err")
in pkg/workflow/providers/util/util.go
?
Successfully created backport PR #4459 for |
Successfully created backport PR #4460 for |
Successfully created backport PR #4461 for |
Successfully created backport PR #4462 for |
Description of your changes
Fixes #
I have:
make reviewable
to ensure this PR is ready for review.backport release-x.y
labels to auto-backport this PR if necessary.How has this code been tested
Special notes for your reviewer