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

Regard DSP as done only when preparation is successful considering of reuse the provider #5216

Merged

Conversation

ffjlabo
Copy link
Member

@ffjlabo ffjlabo commented Sep 18, 2024

What this PR does / why we need it:

This modification is necessary to avoid an error when executing a cancellation while executing deploySourceProvider.Get in another stage.

I encountered such a situation when canceling the deployment via WebUI during the SCRIPT_RUN stage execution.
I reproduced the behavior when checking the behavior for the PR #5215 like this↓
Cursor_と_PipeCD__1__png

Which issue(s) this PR fixes:

Part of #5214

Does this PR introduce a user-facing change?:

  • How are users affected by this change:
  • Is this breaking change:
  • How to migrate (if breaking change):

Copy link

codecov bot commented Sep 18, 2024

Codecov Report

Attention: Patch coverage is 0% with 3 lines in your changes missing coverage. Please review.

Project coverage is 22.83%. Comparing base (5d3e17d) to head (f87754a).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
pkg/app/piped/deploysource/deploysource.go 0.00% 2 Missing ⚠️
pkg/app/pipedv1/deploysource/deploysource.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #5216   +/-   ##
=======================================
  Coverage   22.82%   22.83%           
=======================================
  Files         420      420           
  Lines       45302    45302           
=======================================
+ Hits        10340    10344    +4     
+ Misses      34166    34163    -3     
+ Partials      796      795    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

khanhtc1202
khanhtc1202 previously approved these changes Sep 18, 2024
Copy link
Member

@khanhtc1202 khanhtc1202 left a comment

Choose a reason for hiding this comment

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

Nice catch, thank you 👍

Copy link
Member

@t-kikuc t-kikuc left a comment

Choose a reason for hiding this comment

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

[ASK] How about the following point?

Signed-off-by: Yoshiki Fujikane <[email protected]>
@ffjlabo
Copy link
Member Author

ffjlabo commented Sep 18, 2024

@t-kikuc Thank you! This also might lead to the same error. So I fixed it 🙏 f87754a

Copy link
Member

@t-kikuc t-kikuc left a comment

Choose a reason for hiding this comment

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

thank you!

@ffjlabo ffjlabo enabled auto-merge (squash) September 18, 2024 03:15
Copy link
Contributor

@Warashi Warashi left a comment

Choose a reason for hiding this comment

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

thank you

@ffjlabo ffjlabo merged commit 5b9d417 into master Sep 18, 2024
16 of 17 checks passed
@ffjlabo ffjlabo deleted the regard-dsp-as-done-only-when-preparation-is-successful branch September 18, 2024 03:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants