-
Notifications
You must be signed in to change notification settings - Fork 155
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
SCRIPT_RUN_ROLLBACK failed when executing multiple SCRIPT_RUN stages. #5163
Comments
[root cause] piped identifies the target stage with stage ID to store the stage log. The ID of the PredefinedStage is the const value.
So if there are multiple predefined stages, piped refers the completed one. |
I tried to add suffix to the stageID for SCRIPTRUN_ROLLBACK stage like this. The error comes from finding the stage config with stageID on the executing stage. pipecd/pkg/app/piped/controller/scheduler.go Lines 532 to 547 in 7a475a6
|
Currently, the SCRIPT_RUN_ROLLBACK stage is a predefined stage, and it is assumed that there are multiple in the pipeline.
|
What happened:
If you perform a rollback with multiple Script Runs specified, the execution of the SCRIPT_RUN_ROLLBACK stage will fail.
What you expected to happen:
Successfully finish executing the SCRIPT_RUN_ROLLBACK stage.
How to reproduce it:
Execute the deployment with multiple SCRIPT_RUN stage, and cancel after some of them are in the executing.
Environment:
piped
version:control-plane
version:The text was updated successfully, but these errors were encountered: