[JENKINS-51735] sentry evaluation #133
[JENKINS-51735] sentry evaluation #133
Conversation
Build failed; the context from the latest run is: Expand to view
|
Build failed; the context from the latest run is: Expand to view
|
Build failed; the context from the latest run is: Expand to view
|
Error looks legit. Closing this to avoid it to rebuild every 6 hours @mandie722, just reopen it when you're back and think you fixed the issue. Thanks |
@@ -27,9 +27,9 @@ class ErrorTelemetryService { | |||
return Promise.reject({status:'KO'}); | |||
} | |||
|
|||
// FIXME: TBD where, what and how to actually send data | |||
const toWrite = `${new Date()} => ${JSON.stringify(data)}\n\n`; |
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 do not think that comment should be removed yet, or the format should be evolved a bit. As it is now, it's sending a somewhat still raw: "date (without defined format) => the json of the log", which I fear is not going to be greatly parsed by Sentry is it? Anyway, I guess we should clean up that too.
@@ -2,7 +2,7 @@ const fs = require('fs'); | |||
const logger = require('winston'); | |||
const path = require('path'); | |||
const mkdirp = require('mkdirp'); | |||
|
|||
const sentry = require('../../lib/sentry'); |
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.
The CI error seems to come from this. I seem to understand the raven
module got imported above, but then the code references a manually (?) added lib from two directories above?
I seem to understand that the line above should just be replaced by
const sentry = require('raven');
And then it would work?
https://issues.jenkins-ci.org/browse/JENKINS-51735
Added in methods to send output to sentry.io from the error telemetry apis.