Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Add deployment failure reason to event. #6011

Merged
merged 1 commit into from
Feb 14, 2018

Conversation

jeschkies
Copy link
Contributor

Summary:
Currently we do not send the reason for a deployment failure along with
the event. This makes debugging hard. This change introduces an optional
reason message.

Summary:
Currently we do not send the reason for a deployment failure along with
the event. This makes debugging hard. This change introduces an optional
reason message.
Copy link

@mesosphere-ci mesosphere-ci left a comment

Choose a reason for hiding this comment

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

I'm building your change at jenkins-marathon-pipelines-PR-6011-1.

Copy link

@mesosphere-ci mesosphere-ci left a comment

Choose a reason for hiding this comment

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

✔ Build of #6011 completed successfully.

See details at jenkins-marathon-pipelines-PR-6011-1.

You can create a DC/OS with your patched Marathon by creating a new pull
request with the following changes in buildinfo.json:

"url": "https://s3.amazonaws.com/downloads.mesosphere.io/marathon/builds/1.6.320-130b3bb34/marathon-1.6.320-130b3bb34.tgz",
"sha1": "1eda8f81bcda91b0fe86f48b28ff3185019a9c8e"

You can run system integration test changes of this PR against Marathon
master by triggering this Jenkins job with the Pull_Request_id 6011.
The job then reports back to this PR.

\\ ٩( ᐛ )و //

Copy link
Contributor

@wavesoft wavesoft left a comment

Choose a reason for hiding this comment

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

Only a minor documentation comment, otherwise great! 👍

@@ -16,6 +16,11 @@ get:
description:
Specify subscribed event types.
You can specify this parameter multiple times with different values.
plan-format:
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this part of this PR? Could it be that you meant to include the reason field?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a clean up. Boy Scout rule. We never followed up.

Copy link
Contributor

Choose a reason for hiding this comment

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

It could be a separate PR, but I am totally fine with it being here 👍


event.reason match {
case Some(reason) =>
serializedEvent ++ Json.obj("reason" -> reason)
Copy link
Contributor

Choose a reason for hiding this comment

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

Please document the reason field in the RAML docs

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think we have the event types in RAML anywhere. Do we?

@@ -147,7 +147,7 @@ class DeploymentManagerActor(
sender() ! cancelDeployment(plan.id)

case DeploymentFinished(plan, result) =>
runningDeployments.remove(plan.id).map { deploymentInfo =>
runningDeployments.remove(plan.id).foreach { deploymentInfo =>
Copy link
Contributor

Choose a reason for hiding this comment

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

@jeschkies
Copy link
Contributor Author

I created a DC/OS build with this build of Marathon dcos/dcos#2457.

Copy link
Contributor

@meln1k meln1k left a comment

Choose a reason for hiding this comment

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

LGTM

@jeschkies jeschkies merged commit 0177db1 into master Feb 14, 2018
@jeschkies jeschkies deleted the karsten/deployment-failed-reason branch February 14, 2018 16:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants