BattleMaster Community

BattleMaster => Helpline => Topic started by: Tom on September 27, 2011, 09:23:07 AM

Title: How to write a helpful bug report
Post by: Tom on September 27, 2011, 09:23:07 AM
When you are posting to the bugtracker (http://bugs.battlemaster.org), there are two ways to do it. One is frustrating for us and unlikely to get you the help you want while the other is helpful for us and likely to get you a fix or an answer.

To make a helpful posting, no matter what it is about, always:
Title: Re: How to write a helpful bug report
Post by: Charles on February 15, 2012, 10:19:45 PM
Could you explain what the categories are (Parse, PHP, SLQ, etc)?  I would also like to know how to choose the severity and priority.  The reproducibility is mostly self explanatory for myself, but perhaps you could explain that one too. 
Title: Re: How to write a helpful bug report
Post by: egamma on February 16, 2012, 01:15:56 AM
SQL: an example would be the top of the military planner:
Warning: mysql_fetch_assoc() expects parameter 1 to be resource, string given in /var/battlemaster/include/db.inc on line 233

PHP looks somewhat similar, but it will likely have a lot more lines.


You could look at the bugtracker, in those categories, for examples.
Title: Re: How to write a helpful bug report
Post by: Tom on February 16, 2012, 01:42:26 AM
I'm actually thinking of replacing those categories with something less technical.

Title: Re: How to write a helpful bug report
Post by: Anaris on February 16, 2012, 01:43:04 AM
SQL: an example would be the top of the military planner:
Warning: mysql_fetch_assoc() expects parameter 1 to be resource, string given in /var/battlemaster/include/db.inc on line 233

Nope, that's not a SQL error. That's actually a PHP error. Just because it mentions MySQL doesn't mean it's a SQL error.

Generally, a SQL error will actually give you at least part of a SQL query. These days, it will actually give you a whole bunch of Doctrine stacktrace.

Parse errors are almost always a white screen with a single line on it.

However, generally, the important thing to remember is this:

Don't worry too much about the error type or the severity.

We, as devs, are good enough at categorizing bugs just by looking at them that we generally don't need the metadata.  And, frankly, we don't expect our players to be savvy enough about code to put in the right values.

What we do need is as much information about the bug as you can provide, including (generally) the URL you see it on and the full text of the error, if it's an error message.  And if there's other text on the page, including that is good, too, because it can give us the context of the error (i.e., where it happens in the code).
Title: Re: How to write a helpful bug report
Post by: Anaris on February 16, 2012, 01:43:47 AM
I'm actually thinking of replacing those categories with something less technical.

That's probably a good idea, since I, at least, have never seen a need to sort by them, and I have seen lack of understanding of them scare people away from reporting bugs on the bug tracker.
Title: Re: How to write a helpful bug report
Post by: Foundation on March 03, 2012, 12:26:23 AM
Here's the recommendation from Joel on Software:

Quote
It's pretty easy to remember the rule for a good bug report. Every good bug report needs exactly three things.
  • Steps to reproduce
  • What you expected to see
  • What you saw instead
[/size]

Source: Painless Bug Tracking - http://www.joelonsoftware.com/articles/fog0000000029.html (http://www.joelonsoftware.com/articles/fog0000000029.html)