(cc: stability and crashreporting-wg)
Hi!
I just did a Socorro 2024.04.08 deployment which pushed out big changes to the "generate-create-bug-url" code.
If you're looking at a crash report on Crash Stats site and go to the Bugzilla tab, the links to create new bugs and issues will have much improved comments now.
Instead of dropping arguments in function signatures, function signatures are now truncated at 80 characters (bug #1849266).
Additionally, the comment will be generated using JavaException when that's available (bug #1884041). This last one will fix bug creation for Fenix.
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
This also involved a refactoring of the code. The comment generation code is now in webapp/crashstats/libbugzilla.py and it's built in a way that's easier to extract and use in other places that take a processed crash report and want to generate a bug comment from it.
Let us know if you encounter any problems.
Thank you!
/will
Observability Infrastructure Team