Scrum, how to handle bugs in the sprint and how to time estimate bugs [closed]
Asked Answered
S

15

14

I'm working in a Scrum project writing firmware code in C for an ASIC.

Every so often we have really hard to find bugs. But how do I time estimate these bugs?

I always tell the Scrum master I do not have the competence to estimate them because I really hate time-estimation of bugs.

How do you guys handle this in your Scrum projects?

Smear answered 10/12, 2009 at 8:26 Comment(2)
Estimating the time to fix a bug is easy. It's estimating the error bars that's hard! ;-)Exegetics
Agile antipattern: Sizing or estimating bug fixesLovemaking
V
24

Estimating bugs is a really hard thing. If you can do it, then you likely already have the solution and it's not really a bug anymore :) So, instead of trying to estimate them one by one, my preferred option is to allocate some "bug fixing time" during the Sprint and to fix most important bugs during that time. This is a best effort strategy, you just fix as much of them as possible during the allocated time.

Vowel answered 10/12, 2009 at 8:49 Comment(3)
Yes, measure the time it took to fix bugs. Maybe classify them into "wtf?-bugs", "ahh-of-course-bugs", etc. Estimate future bugs according to the average of past bugs in the same class. Keeping track of time spent is another difficult problem in practice though.Coeliac
Ack! Fixing the most important bugs suggests that you're not fixing all the bugs as soon as you find them. Postponed bugs are much more expensive to fix.Exegetics
@Adrian I totally agree and believe in the "stop the line" culture: fix bugs as soon as you discover them. But, well, you don't always find all of them during a Sprint.Vowel
C
10

One approach that has worked for me is not to have bugs in the first place :)

The way this works is that when a bug is found, fixing it takes priority over story implementation. New features can only be added once the already existing functionality works 100%.

Of course we classify bugs. This stop-the-production-line approach is only applied to critical bugs. Less than critical bugs get treated as feature enhancement stories, estimated and planned in upcoming sprints as any other stories.

Time allocation for critical bug fixing eventually gets reflected in your team velocity.

Coupe answered 10/12, 2009 at 9:50 Comment(0)
H
5

"It's hard to make predictions - especially about the future."

Unless you have analyzed a bug and stetched a solution it cannot be estimated. This is like doing a scrum planning meeting without knowing the backlog.

You can use large estimates to communicate uncertainty. Historic data has some limited value. It does not help a lot for the one bug at hand even when the effort distribution is the same for new bugs. Additionally, new bugs can be easier or harder on average.

Humanitarianism answered 10/12, 2009 at 8:37 Comment(0)
G
5

I asked Jeff Sutherland this, and he told me that at PatientKeeper they have a fixed estimate of half a day to fix a bug. If the nature of your bugs is that they can be rather predictable such that you can find an approximate average I guess this is a fair strategy.

However, in practice I don't find this always to work out. It is often difficult to understand what the bug is, and it might take longer time analyzing it than to solve it. This often makes bugs highly unpredictable and difficult to estimate. All tasks you include in your sprint must be analyzed, and bugs will often require more analyzis than other tasks.

What we've done in such cases of "unpredictable" bugs is to allocate fixed time for figuring out what the problem is. E.g. we choose to spend one day (or x points) on digging into the bug trying to understand it, and then plan to address the actual fix for the next sprint. However, if that isn't sufficient time to figure it out we don't want to waste more time on it in the current sprint, and will have to reconsider it for the next. In some cases the bug might be highly critical, and you just gotta live with an uncertain estimate..

Garretgarreth answered 10/12, 2009 at 8:43 Comment(0)
F
4

Estimate them in weeks instead of hours.

If your Scrum-master doesn't understand the problem with time-estimating a bug-fix, your project would probably benefit from having a Scrum-master with at least minor programming knowledge.

Fritzsche answered 10/12, 2009 at 8:37 Comment(1)
That's a bit harsh :) I think that in many occasions the developer will have some background knowledge of the problem that will allow him/her to roughly estimate the time to fix it.Xenomorphic
C
3

We can classify bug in "I know where it is going wrong I need to update it", "I know this bug is related to this module and any debugging some of these files I can resolve it", "I am not sure why this bug has come up". We can estimate in first 2 cases based on our experience on that project. But estimating for last case is real tough.

Cailly answered 10/12, 2009 at 8:59 Comment(0)
D
2

How about estimating them based on the average time spent fixing earlier bugs?

Duane answered 10/12, 2009 at 8:31 Comment(0)
C
2

I asked a similar kind of question some time earlier and got some good responses.

Cadmium answered 10/12, 2009 at 11:36 Comment(0)
L
1

you might also consider to allocate a "contingent" for bug fixing during the Sprint (10-20% of the committable time) than use a Kanban way to work them out. That means you can talk with the Product Owner and explain him that the bug fixing costs are under control (as the contingent is your timebox) that empirically will be adjusted at every new iteration based on what the team feels the quality of the Product will be. The Goal is of course to reduce the time and promote transparency. The Product Owner can help in prioritizing a Bug Backlog putting on top the most valuable bugs - normally Retainment value - so that the highest prioritized will be probably fixed... the higher the better.

Working with KanBan, means that the Team sits and look at regular interval (after the daily stand-up is a good time) what is in the Bug queue, uses the expertise of all the team members to figure out where look and what to check, than someone (normally pairing is really good) takes the bug. When the contingent is over the Team raises the hand and talks with the Product Owner, he will have to decide if there are still bugs that have to be fixed - at the cost of a story or more - or they can wait the next Sprint.

In general transparency should enable the Scrum Team (includes PO and SM) to figure out what the cost of fixes is and figure out what to do to balance quality and speed of delivery. It is normally a good way to establish a dialog with PO :-)

Lynettelynn answered 10/12, 2009 at 8:26 Comment(0)
H
1

You should be abel to build a history of how many story points you can complete in a week, based on consistent story point estimation. This will also include bug fixing time.

For example we know we can complete 20 story points in a week, from previous sprints. The development of those 20 points may be complete within 2 days, however then there is testing and bug fixing. We don't estimate on dev bugs, as each new story should have an estimate that will approximately include bug fixing time. Live bugs should be investigated before estimation, then it should be possibel to estimate accurately.

Hillside answered 10/12, 2009 at 8:40 Comment(0)
S
1

We estimate for every bug a analyze time of 4h. Also we have a prioritization of bugs. Bugs which are blockers or critical must fixed before anything other is implemented. Many bugs to fix results in lower implemented stories. But we have so a robust software for the next features.

Shorten answered 10/12, 2009 at 10:59 Comment(0)
H
1

I find that there really is not that much use in trying to estimate bugs. Just prevent them, find them, make them visible (on your taskboard or whatever you use), prioritize them and fix them. The time you spend will impact the velocity. And it's the velocity that matters. It's the velocity that's the indicator on how much progress you can expect in the next sprint(s).

If you are interested in some metrics, use number of bugs per sprint instead.

Haveman answered 10/12, 2009 at 11:26 Comment(0)
B
1

The real goal is to mitigate the risks associated with bugs; i.e. not letting the schedule be effected. Very often, the team will be able to identify which stories are likely to create the tricky bugs ahead of time. So one mitigation strategy is to tackle those stories first, giving the team as much time as possible to cope with the unexpected.

Burch answered 15/12, 2009 at 4:21 Comment(0)
D
0

I have heard bug fixing compared to fishing. How long will it take you to fix a mysterious bug? How long will it take to catch a fish? You might try explaining it to your product owner in those terms.

Deviate answered 21/12, 2009 at 22:14 Comment(0)
K
0

quite agree with Pascal Thivent's answer. in our Sprint, usually we will select some tasks which can be tailored if there are other more urgent tasks.

When a bug comes, we prioritize it and set the importance to it. if high priority or severity, we will go to do it and the unimportant task in this Sprint will be move back to the backlog.

if no bug or the bug is not urgent, we will do all the Sprint tasks.

if there are a lot of Sprints have been run, there may be a statistics that shows how much effort has been spent to bug fix, get the average effort as the benchmark for your next sprint is another option for you.

Kezer answered 23/4, 2012 at 7:18 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.