Closed Bug 1344864 Opened 7 years ago Closed 6 years ago

In the signature view, display a red banner to alert that it is a startup crash

Categories

(Socorro :: Webapp, task, P2)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: Sylvestre, Assigned: alexisdeschamps)

References

Details

Now that we have a marker to know if it is an actual startup crash, we should display a red banner to clearly show that it is a startup crash.

Otherwise, it is hard to know that they might be.

We should NOT do that if crashes are coming from plugins.
I would like to work on this bug.

I am a newbie on Socorro, So I'm not sure where the marker for startup crash is present. Any help on that would be great!

Please assign this bug to me.
Thanks for your help!

Should I add the red-banner if 'startup_count' = Total number of crashes or when 'startup_crash' is true [ More than half the crashes happened within one minute of startup ] ?
(In reply to Aditya Motwani (:AdityaM) from comment #3)
> Thanks for your help!
> 
> Should I add the red-banner if 'startup_count' = Total number of crashes or
> when 'startup_crash' is true [ More than half the crashes happened within
> one minute of startup ] ?

I would add the red banner if startup_count > 0, saying "Startup Crash, all crashes happened during startup" if startup_count = total number of crashes or "Potential Startup Crash, {{ crash.startup_count }} out of {{ crash.count }} crashes happened during startup" otherwise.
Let's ask Adrian for his opinion.
Flags: needinfo?(adrian)
So, in terms of UI, I'm not too sure how we should display that. I'm going to wait for your suggestions Aditya, but since I am quite opinionated I might disagree. :D

I think having the distinction between "startup crash" and "potential startup crash" is interesting, if we can find a good way to show that on the page.
Flags: needinfo?(adrian)
Thank you Adrian for your input and help! I am working with the views currently and will get to the banner shortly.

I would like to summarize this for Marco before I continue.

I spoke with Adrian on #breakpad and he said that we need to make a separate view for this and then import it to the signature_report view as we need to make an ajax call to the database as this information is not present in the "context" variable.

This view will do a SuperSearch query to get meta data and then we can determine if it is a startup crash.

Any ideas if there is a better way or if this is the only way to go?
Flags: needinfo?(mcastelluccio)
Sorry, I forgot to reply here. I agree with Adrian, he has a lot more experience with Socorro than me :)
Flags: needinfo?(mcastelluccio)
See Also: → 1422007
Be able to distinguish quickly a startup crash is very important.
:willkg, could you help here ?
Flags: needinfo?(willkg)
Is the idea for this bug "Show a red banner above the "Signature report for <signature>" text for all tabs on the signature report page"?

Adrian had this url: https://crash-stats.mozilla.com/signature/?signature=nsDependentCString%3A%3AnsDependentCString

That seems doable. I'll toss this in the queue. It'd be great if someone else could get to this, because we've got a big queue and not many people working on it.
Flags: needinfo?(willkg)
Priority: -- → P2
I'm having a "nothing is working" Friday. I'll see if I can tackle this now.
Assignee: nobody → willkg
Status: NEW → ASSIGNED
Comment #6 seems right on. The signature report page will load, then have to do an AJAX call to figure out whether all crashes are startup crashes or some crashes are startup crashes or none of the crashes are startup crashes. Then it'll get back this information and surface it in some way.

I haven't looked at the signature report code before, so I think this is going to take me a while to figure out. I'll spend some more time on it next week.
Unassigning myself from bugs I'm not immediately working on and/or have some meaningful progress on.
Assignee: willkg → nobody
Status: ASSIGNED → NEW
Assignee: nobody → adeschamps
Status: NEW → ASSIGNED
How about adding the same flag and/or rocket ship icons indicating startup crashes found on the top crashers page to the signature page?
Flags: needinfo?(mcastelluccio)
I think anything works, as long as it is *very* noticeable :)
Flags: needinfo?(mcastelluccio)
Here is what the updated page could look like: https://user-images.githubusercontent.com/12681350/42000011-33b969e0-7a14-11e8-9851-608e17e738f0.png. They are the same icons as those found on the top crashers page and, thus, have tooltips with extra information.

Would this be suitable? The same icons could also be added to the Super Search results page.
Flags: needinfo?(adeschamps)
Flags: needinfo?(adeschamps)
(In reply to Alexis Deschamps [:alexisdeschamps] from comment #15)
> Here is what the updated page could look like:
> https://user-images.githubusercontent.com/12681350/42000011-33b969e0-7a14-
> 11e8-9851-608e17e738f0.png. They are the same icons as those found on the
> top crashers page and, thus, have tooltips with extra information.
> 
> Would this be suitable? The same icons could also be added to the Super
> Search results page.

It might be a bit too subtle, but maybe it is enough. Let's ask some people who look at crashes very often.
Flags: needinfo?(mozillamarcia.knous)
Flags: needinfo?(madperson)
Flags: needinfo?(cdenizet)
I agree with Comment 14, as long as it is easily noticeable it is fine with me.
Flags: needinfo?(mozillamarcia.knous)
i would think a disclaimer should be even more prominent, so that it catches the attention of the occasional visitor to a signature summary page too - as people looking at crash reports frequently probably already are aware of how to spot them today.

(also the rocket icon may become a bit confusing, as we have a product with the same name / similar visual assets now)
Flags: needinfo?(madperson)
Would the following be acceptable as a warning that the crash is a startup crash: https://user-images.githubusercontent.com/12681350/42117787-a8ac47fe-7bb3-11e8-89dd-beb7b53559f5.png?

Would it also be OK for the warning to only be under the summary tab as opposed to under the signature and visible from every tab?
Flags: needinfo?(mcastelluccio)
Flags: needinfo?(madperson)
yes thanks, that looks catchy enough and i think it's ok just having it on the summary page.
Flags: needinfo?(madperson)
Would be perfect! Many thanks for doing that!
Looks good to me!
Flags: needinfo?(mcastelluccio)
lgtm too, thanks.
Flags: needinfo?(cdenizet)
Commits pushed to master at https://github.com/mozilla-services/socorro

https://github.com/mozilla-services/socorro/commit/d84709b1e2231f64d036e34fb8e90f0ed73b653f
bug 1344864: refactored topcrashers

why:
- needed to extract some of the functionality used to generate topcrashers data because part of it will be used to generate signature summary data

what:
- refacted topcrashers
  - started generating data through classes instead of a dictionary
  - extracted computations into methods

https://github.com/mozilla-services/socorro/commit/4c92cecc5026f75c4a739d34159452fb906049b0
fix bug 1344864: added startup stats sig summary

why:
- being able to distinguish startup crashes from non-startup crashes is useful

what:
- added icons and text to the signature summary tab that indicate startup crash statistics
  - these are the same icons as those found on the topcrashers page

https://github.com/mozilla-services/socorro/commit/9d6160b43a05eb79ad8801f56b6f4b52868179ed
fix bug 1344864: added review updates

- converted topcrashers signature icons into macros
    - started using these macros in the topcrashers page
    - started using these macros in signature summary
- updated SignatureStats class
    - merged SignatureStartupStats into SignatureStats
    - started doing the previous results checks through properties instead of after the fact
    - made all properties be cached_property's
    - changed properties for startup, hang, and plugin stats to be booleans instead of numbers
    - added unit test
- updated signature summary
    - added custom LESS classes to change color and layout
- updated topcrashers
    - removed `get_signatures_stats` util method and started doing the work in views.py instead
    - change variable naming to be simpler and more informative

https://github.com/mozilla-services/socorro/commit/c2bb2bea29ce6a85a9eaab99047db6e354643a0a
fix bug 1344864: added review updates

- changed name of items when looping over `topcrashers_stats` for better clarity
- removed redundant line in `topcrashers/views.py `

https://github.com/mozilla-services/socorro/commit/1b9d051717d83d64699a40b2998d33568ffca926
Merge pull request #4506 from mozilla-services/signature-startup-stats

fix bug 1344864: added startup stats to the signature summary
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.