-
Notifications
You must be signed in to change notification settings - Fork 153
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 to use target dsp in script run rollback #5215
Conversation
@@ -90,7 +90,7 @@ func (p *provider) Get(ctx context.Context, lw io.Writer) (*DeploySource, error) | |||
|
|||
if !p.done { | |||
p.source, p.err = p.prepare(ctx, lw) | |||
p.done = true | |||
p.done = p.err == nil // If there is an error, we should re-prepare it next time. |
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 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 split the fixes to the another PR #5216
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5215 +/- ##
=======================================
Coverage 22.82% 22.82%
=======================================
Files 420 420
Lines 45302 45309 +7
=======================================
+ Hits 10340 10344 +4
- Misses 34166 34170 +4
+ Partials 796 795 -1 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Yoshiki Fujikane <[email protected]>
2d270a4
to
6aa0a06
Compare
8ffadca
to
a936845
Compare
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 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.
thank you
What this PR does / why we need it:
Fixed to use TargetDSP on the SCRIPT_RUN_ROLLBACK stage.
With these fixes, we can refer to the files located in the app dir when executing the SCRIPT_RUN_ROLLBACK stage.
I chose TargetDSP, not RunningDSP, because the commands on the
onRollback
are set in app.pipecd.yaml used when Deployment is executed.The purpose of the SCRIPT_RUN_ROLLBACK stage is to run whatever command is currently set in onRollback during rollback.
Which issue(s) this PR fixes:
Part of #5214
Does this PR introduce a user-facing change?: