Documentation / How to Write a Good Bug Report
How to Write a Good Bug Report
TL;DR - Please create a reproducable bug report!
We love a new bug report
We love when you create a new issue for sitespeed.io! We really do. New issues helps us getting the project better and it will help other users. In other words, we love issues.
Sometimes we get a really detailed issue: You describe exactly how you do when you get the problem, you share the log, you write down what you have tested, share screenshots, share videos. You even tries to understand why you get this bug. When we get an issue like that, it always jump to my number one prioritization. If you put down all the time and effort to really describe the issue, we want to put all our effort to fix it.
It also happens (quite often) that we get issues that misses important information, so we need to ask you again and again about the problem (like how to reproduce the issue). Sometimes we need to do that two/three/four times within that issue. Issues that misses vital information takes longer time to fix/close and that makes us spend more time asking questions instead of fixing actual bugs or creating new functionallity.
We use a issue template with a comment of what we need write but it seems that is not the best way so let us instead show you what we need!
Before you start creating a issue, you should make sure you have read through our F.A.Q and Best Practice.
Explain how to reproduce your issue
The best way to make sure we can fix your issue, is to make sure we can reproduce the problem you have. If we can reproduce the problem, we can verify that we actually have fixed it with our code change.
Exactly what do we mean by making it reproducable? We should be able to copy/paste your example CLI parameters and try on our local machine and then get the same problem that you have.
To help us reproduce your problem there are a couple of things we need:
- Show us exactly how you run your tests (all parameters, all configuration). Mask out any passwords. But please do not leave out things from the configuration!
- Include the URL that causes the problem. If the URL isn’t public, please try to reproduce the problem on another URL that we can test. If the URL is super secret, you can share that to us in an email (write it in the issue and you can get the address). But we prefer public URLs so others also can reproduce the problem.
- Include the log output from your run. If you share a long log, share it in a gist.
- Give us the exact version of sitespeed.io you are using (so we know we use the same version when we try to reproduce it).
- Tell us what OS you are using and if you are using Docker (you should!) give us the base OS where you run your container.
- If you don’t use Docker: Include the browser version you are using.
If you give us this information we can usually fix your issue faster.
What else you can do
Best case you can fix the issue and send us a PR with a fix. We love PR for bugs :) But of course that is only best case scenario.
Search current Github issues. Is this bug reported before? Does it lack info? Please add your own comment to that issue if it is open. If you aren’t sure that your bug is the same as the other bug, please create another issue. Do not hihack issues. Do not comment on closed issue, please create a new issue instead and add a reference to the old issue.
Is there a problem with the video? Then make sure to enable the full original video so you can share that with us, do that by adding
--browsertime.videoParams.keepOriginalVideoto your run (or if you use Browsertime:
Is your problem related to that you are behind a proxy? Then we kindly recommend that you run your tests without a proxy. Run the tests on a network where you don’t need to use a proxy.