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: modify syncWorkflowStatus #6257

Open
wants to merge 1 commit into
base: release-1.7
Choose a base branch
from

Conversation

suwliang3
Copy link
Contributor

@suwliang3 suwliang3 commented Aug 11, 2023

Description of your changes

πŸ€– Generated by Copilot at 73112e1

Summary

πŸ›πŸš«πŸ› οΈ

Fix a bug that could create invalid workflow CRDs by skipping empty revisions. The change affects the pkg/apiserver/domain/service/workflow.go file.

CR name is blank
Skip workflow revision now
Fixes bug in fall

Walkthrough

  • Skip workflow revisions with empty CR names to avoid creating invalid workflow CRDs (link)

Fixes #6244

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

Signed-off-by: suwanliang_yewu <suwanliang_yewu@cmss.chinamobile.com>
@suwliang3 suwliang3 changed the title feature: modify syncWorkflowStatus Feat: modify syncWorkflowStatus Aug 11, 2023
@codecov
Copy link

codecov bot commented Aug 11, 2023

Codecov Report

Patch coverage has no change and project coverage change: -24.24% ⚠️

Comparison is base (4209080) 60.28% compared to head (73112e1) 36.05%.

Additional details and impacted files
@@               Coverage Diff                @@
##           release-1.7    #6257       +/-   ##
================================================
- Coverage        60.28%   36.05%   -24.24%     
================================================
  Files              309       87      -222     
  Lines            47161    18584    -28577     
================================================
- Hits             28430     6700    -21730     
+ Misses           15743    10975     -4768     
+ Partials          2988      909     -2079     
Flag Coverage Ξ”
apiserver-e2etests ?
apiserver-unittests 36.05% <0.00%> (-0.04%) ⬇️
core-unittests ?
e2e-multicluster-test ?
e2e-rollout-tests ?

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

Files Changed Coverage Ξ”
pkg/apiserver/domain/service/workflow.go 41.70% <0.00%> (-9.87%) ⬇️

... and 294 files with indirect coverage changes

β˜” View full report in Codecov by Sentry.
πŸ“’ Have feedback on the report? Share it here.

@suwliang3 suwliang3 changed the title Feat: modify syncWorkflowStatus Fix: modify syncWorkflowStatus Aug 11, 2023
@StevenLeiZhang
Copy link
Collaborator

Would you please give more details about how to reproduce the bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants