Closed Bug 661153 Opened 13 years ago Closed 13 years ago

Content process crashes don't display uptime

Categories

(Socorro :: General, task)

x86
Linux
task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jdm, Assigned: rhelmer)

Details

Attachments

(1 file)

Example: https://crash-stats.mozilla.com/report/index/55a916c9-8e78-4fa4-89b2-1eeec2110528

Ted pulled the JSON from another similar crash, and both CrashTime and StartupTime are present: http://pastebin.mozilla.org/1240259

I'm absolutely certain that Uptime used to be displayed when I added StartupTime to content process crash dumps, so something must have regressed with Socorro since then.
Looks like the uptime for this crash is only 9 seconds:

https://crash-stats.mozilla.com/dumps/55a916c9-8e78-4fa4-89b2-1eeec2110528.jsonz

And for some reason the function returns an empty string if this value is under 3 minutes:

http://code.google.com/p/socorro/source/browse/trunk/webapp-php/application/libraries/timeutil.php#88

Simple fix would be to return seconds instead of empty string in this case; not sure what's so special about 3 minutes though (why not 1 minute?)
Ted points out this regressed here:
http://code.google.com/p/socorro/source/detail?r=2957&path=/trunk/webapp-php/application/views/report/index.php

The "ghetto_time_ago_in_words" time formatting function was not used here before then.
Assignee: nobody → rhelmer
Status: NEW → ASSIGNED
Target Milestone: --- → 1.7.8
also this function name annoys me greatly, but leaving that for a different bug :)
Attachment #536712 - Flags: review?(bsavage)
This is minor enough we should take for 1.7.8 (shipping tomorrow) assuming landing this on trunk doesn't cause anything to explode
Comment on attachment 536712 [details] [diff] [review]
stop using "ghetto_time_ago_in_words"

Review of attachment 536712 [details] [diff] [review]:
-----------------------------------------------------------------

I'm not a huge fan of necessarily backing the change out, but I think it's our lowest risk course of action with a ship date of less than 24 hours from now.

We'll file a bug to fix the underlying issue in the 2.0 release.
Attachment #536712 - Flags: review?(bsavage) → review+
Filed bug to followup

Landed on trunk:
Committed revision 3185.

Going to make sure it looks ok on crash-stats-dev before landing on 178 branch.
Looks ok on crash-stats-dev (would be nice if it was formatted ;) but leaving that to followup):

Committed revision 3186.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Component: Socorro → General
Product: Webtools → Socorro
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: