-
Notifications
You must be signed in to change notification settings - Fork 452
Address missing telemetry at the start of Actions #3415
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
Changes from 1 commit
7c72e12
b715292
14bd767
229e0cd
6bd84b6
529c266
edebb78
91f3460
28bfb7b
fba7872
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -630,10 +630,17 @@ export async function sendUnhandledErrorStatusReport( | |
| ); | ||
| if (statusReport !== undefined) { | ||
| await sendStatusReport(statusReport); | ||
| } else if (isInTestMode()) { | ||
| throw new Error( | ||
| "Failed to create status report for unhandled error in test mode.", | ||
| ); | ||
| } | ||
| } catch (e) { | ||
| logger.warning( | ||
| `Failed to send the error status report: ${getErrorMessage(e)}.`, | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Minor: Perhaps add "unhandled" before "error status report", so it's more obvious what this log message relates to.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'd originally held off since this is customer facing, but it's probably not confusing in retrospect. |
||
| ); | ||
| if (isInTestMode()) { | ||
| throw e; | ||
| } | ||
| } | ||
| } | ||
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.
Intuitively this is unnecessary, because
createStatusReportBasethrows ifisInTestMode()istrue, so we should never have thestatusReport === undefinedcase there.Did you add this deliberately to catch a potential scenario where
createStatusReportBasedoesn't throw in test mode, butstatusReportisundefinedanyway?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.
Yes, but this is probably overly defensive. I'll remove it.