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

Fix: The apply failure error is ignored when the workflow is executed #4455

Merged
merged 1 commit into from Jul 25, 2022

Conversation

yangsoon
Copy link
Collaborator

Description of your changes

Fixes #

I have:

  • Read and followed KubeVela's contribution process.
  • Related Docs updated properly. In a new feature or configuration option, an update to the documentation is necessary.
  • Run make reviewable to ensure this PR is ready for review.
  • Added backport release-x.y labels to auto-backport this PR if necessary.

How has this code been tested

Special notes for your reviewer

@yangsoon yangsoon added backport release-1.2 add this label will automatically backport this PR to release-1.2 branch backport release-1.3 add this label will automatically backport this PR to release-1.3 branch backport release-1.4 add this label will automatically backport this PR to release-1.4 branch labels Jul 25, 2022
Signed-off-by: yangsoon <songyang.song@alibaba-inc.com>
@yangsoon yangsoon added the backport release-1.5 add this label will automatically backport this PR to release-1.5 branch label Jul 25, 2022
@@ -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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ping @FogDong

@codecov
Copy link

codecov bot commented Jul 25, 2022

Codecov Report

Merging #4455 (b1d8e6c) into master (6a9064b) will decrease coverage by 11.94%.
The diff coverage is 0.00%.

@@             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     
Flag Coverage Δ
apiserver-e2etests ?
apiserver-unittests 40.29% <ø> (+0.03%) ⬆️
core-unittests 56.38% <0.00%> (-0.15%) ⬇️
e2e-multicluster-test ?
e2e-rollout-tests ?
e2etests ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/workflow/providers/kube/handle.go 41.86% <0.00%> (-10.86%) ⬇️
pkg/apiserver/domain/service/service.go 0.00% <0.00%> (-92.31%) ⬇️
pkg/apiserver/interfaces/api/velaql.go 4.16% <0.00%> (-83.34%) ⬇️
pkg/controller/utils/actions.go 0.00% <0.00%> (-80.00%) ⬇️
pkg/apiserver/interfaces/api/payload_types.go 5.55% <0.00%> (-77.78%) ⬇️
pkg/auth/identity.go 0.00% <0.00%> (-75.52%) ⬇️
pkg/resourcekeeper/containsresources.go 0.00% <0.00%> (-75.00%) ⬇️
...v/v1alpha2/componentdefinition/mutating_handler.go 0.00% <0.00%> (-74.00%) ⬇️
pkg/apiserver/domain/repository/envbinding.go 0.00% <0.00%> (-72.10%) ⬇️
pkg/resourcetracker/optimize.go 0.00% <0.00%> (-70.59%) ⬇️
... and 227 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6a9064b...b1d8e6c. Read the comment docs.

Copy link
Member

@FogDong FogDong left a 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?

@github-actions
Copy link

Successfully created backport PR #4459 for release-1.2.

@github-actions
Copy link

Successfully created backport PR #4460 for release-1.3.

@github-actions
Copy link

Successfully created backport PR #4461 for release-1.4.

@github-actions
Copy link

Successfully created backport PR #4462 for release-1.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport release-1.2 add this label will automatically backport this PR to release-1.2 branch backport release-1.3 add this label will automatically backport this PR to release-1.3 branch backport release-1.4 add this label will automatically backport this PR to release-1.4 branch backport release-1.5 add this label will automatically backport this PR to release-1.5 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants