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

feat(monitoredDeploy): Completed event should include details of success/failure #3214

Merged
merged 8 commits into from
Oct 28, 2019

Conversation

gal-yardeni
Copy link
Contributor

@gal-yardeni gal-yardeni commented Oct 3, 2019

Completed event (see NotifyDeployCompletedTask in orca) should populate the status and rollback fields of the DeploymentCompletedRequest.
Example:
deploymentStatus: “success” / ”failure”,
rollback: "failure" / "success" / "not_performed"

@marchello2000 marchello2000 self-requested a review October 3, 2019 21:01
@gal-yardeni gal-yardeni changed the title feat(monitoredDeploy): Completed event should include details of success/failure feat(monitoredDeploy): WIP - Completed event should include details of success/failure Oct 7, 2019
@marchello2000
Copy link
Contributor

Once I merge the rollback pr #3222 you can add the failure/rollback flag

Copy link
Contributor

@marchello2000 marchello2000 left a comment

Choose a reason for hiding this comment

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

See my comments in-line and let me know if you have any questions

@gal-yardeni gal-yardeni changed the title feat(monitoredDeploy): WIP - Completed event should include details of success/failure feat(monitoredDeploy): Completed event should include details of success/failure Oct 28, 2019
gal-yardeni and others added 4 commits October 28, 2019 13:11
…ouddriver/tasks/monitoreddeploy/NotifyDeployCompletedTaskSpec.groovy

Co-Authored-By: Mark Vulfson <markvu@live.com>
…ouddriver/tasks/monitoreddeploy/NotifyDeployCompletedTask.java

Co-Authored-By: Mark Vulfson <markvu@live.com>
return TaskResult.ofStatus(ExecutionStatus.SUCCEEDED);
}

private DeploymentCompletedRequest.DeploymentStatus convertStageStatus(Boolean failedStatus) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: you can make this boolean now

Suggested change
private DeploymentCompletedRequest.DeploymentStatus convertStageStatus(Boolean failedStatus) {
private DeploymentCompletedRequest.DeploymentStatus convertStageStatus(boolean failedStatus) {

Copy link
Contributor

@marchello2000 marchello2000 left a comment

Choose a reason for hiding this comment

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

lgtm, thanks for your diligence on this!

@marchello2000 marchello2000 added the ready to merge Approved and ready for merge label Oct 28, 2019
@mergify mergify bot merged commit 3483221 into spinnaker:master Oct 28, 2019
@mergify mergify bot added the auto merged Merged automatically by a bot label Oct 28, 2019
@gal-yardeni gal-yardeni deleted the complete-event-status branch October 28, 2019 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto merged Merged automatically by a bot ready to merge Approved and ready for merge target-release/1.17
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants