Skip to content
This repository was archived by the owner on Jan 23, 2020. It is now read-only.

Send Delivery KPIs#156

Merged
nmuesch merged 5 commits into
masterfrom
pgarbe-kpis
Jun 3, 2019
Merged

Send Delivery KPIs#156
nmuesch merged 5 commits into
masterfrom
pgarbe-kpis

Conversation

@nmuesch

@nmuesch nmuesch commented Jun 1, 2019

Copy link
Copy Markdown
Contributor

Takes the work of #132 and adds on top of it.

Since 132 was a fork I couldn't add commits directly to it, I've made this new PR but was able to keep original commit authorship here.

@zippolyte zippolyte left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@gzussa gzussa left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks for this 👍 Clean and simple. Made some comments.

Comment thread src/main/java/org/datadog/jenkins/plugins/datadog/DatadogBuildListener.java Outdated
Comment thread src/main/java/org/datadog/jenkins/plugins/datadog/DatadogBuildListener.java Outdated
Comment thread src/main/java/org/datadog/jenkins/plugins/datadog/DatadogBuildListener.java Outdated
}


private long getMeanTimeBetweenFailure(final Run run) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

final doesn't seem to be needed here (same comment below)

if (buildFailed(run.getPreviousBuiltBuild())) {
Run<?, ?> firstFailedRun = run.getPreviousBuiltBuild();

while (buildFailed(firstFailedRun.getPreviousBuiltBuild())) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Could this lead to an infinite loop? Should we have a max just in case?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I took a look at the Java docs (as I had a similar thought) and my read was that we'd stop at the root if there were no failed runs (which seems a bit unlikely to me though)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What about performance, could it be that it loops for so long that it makes the all thing slow. Maybe too far fetched. You tell me.

@nmuesch
nmuesch merged commit c9d25ec into master Jun 3, 2019
@nmuesch
nmuesch deleted the pgarbe-kpis branch June 3, 2019 17:24
@nmuesch nmuesch mentioned this pull request Jun 3, 2019
@gzussa gzussa mentioned this pull request Dec 13, 2019
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.

4 participants