fix create-a-bug links to work with java_exception
Categories
(Socorro :: General, task, P2)
Tracking
(Not tracked)
People
(Reporter: willkg, Assigned: willkg)
References
(Blocks 2 open bugs)
Details
Attachments
(1 file)
Currently, for Java crashes, the create-a-bug link template depends on the java_stack_trace
field in the processed crash which is derived from the JavaStackTrace
annotation.
We ultimately want to phase out JavaStackTrace
in favor of JavaException
.
We need to fix the create-a-bug links to work with java_exception
field in the processed crash.
Assignee | ||
Comment 1•11 months ago
|
||
We may want to redo how the create-a-bug link works. Currently it's built using a Jinja2 template which is finicky about whitespace and incredibly difficult to maintain and change.
Further, Suhaib expressed interest in having a more exportable bit of code for generating the stacks for use in bug reports. They want to re-use it for automated bug creation.
Assignee | ||
Comment 2•11 months ago
|
||
Example Fenix crash report that has JavaException
but no JavaStackTrace
:
Assignee | ||
Comment 3•11 months ago
|
||
I refactored the code that creates the links in bug #1849266, so I can work on this now and it should be pretty straight forward to do a first pass.
Assignee | ||
Comment 4•10 months ago
|
||
Assignee | ||
Comment 5•10 months ago
|
||
Assignee | ||
Comment 6•10 months ago
|
||
This deployed to production just now in bug #1890341.
Here's an example. Crash report bp-eb6f852b-4656-4cf5-8350-fd91a0240408 which has a JavaException
annotation, but no JavaStackTrace
annotation. Before these changes, the comment would be:
Crash report: https://crash-stats.mozilla.org/report/index/eb6f852b-4656-4cf5-8350-fd91a0240408
Now the comment is:
Crash report: https://crash-stats.mozilla.org/report/index/eb6f852b-4656-4cf5-8350-fd91a0240408
Top 10 frames:
0 android.database.sqlite.SQLiteConnection nativePrepareStatement SQLiteConnection.java:-2
1 android.database.sqlite.SQLiteConnection acquirePreparedStatement SQLiteConnection.java:939
2 android.database.sqlite.SQLiteConnection executeForString SQLiteConnection.java:684
3 android.database.sqlite.SQLiteConnection setJournalMode SQLiteConnection.java:369
4 android.database.sqlite.SQLiteConnection setWalModeFromConfiguration SQLiteConnection.java:299
5 android.database.sqlite.SQLiteConnection open SQLiteConnection.java:218
6 android.database.sqlite.SQLiteConnection open SQLiteConnection.java:196
7 android.database.sqlite.SQLiteConnectionPool openConnectionLocked SQLiteConnectionPool.java:503
8 android.database.sqlite.SQLiteConnectionPool open SQLiteConnectionPool.java:204
9 android.database.sqlite.SQLiteConnectionPool open SQLiteConnectionPool.java:196
Description
•