Diff for "LEP/BugDependencies"

Not logged in - Log In / Register

Differences between revisions 11 and 21 (spanning 10 versions)
Revision 11 as of 2011-09-26 09:25:21
Size: 4633
Editor: gmb
Comment:
Revision 21 as of 2011-10-11 10:53:41
Size: 6566
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
## page was renamed from LEP/Drafting/BugRelationships
''This LEP contains information from the [[LEP/BugLinking|Bug Linking LEP]]''
## page was renamed from LEP/BugRelationships
= Bug dependencies =
Line 4: Line 4:
= Bug Relationships =

Bug relationship
s in Launchpad will allow users to record the links between two or more bugs in the system. So, where one bug is blocking another being fixed, that can be shown as a relationship and so on.
Bug dependencies in Launchpad will allow users to record the dependency between two or more bugs in the system. So, where one bug is blocking another being fixed, that can be shown as a relationship and so on.
Line 9: Line 7:
'''On Launchpad:''' ''Link to a blueprint, milestone or (best) a bug tag search across launchpad-project'' '''On Launchpad:''' [[https://bugs.launchpad.net/launchpad-project/+bugs?field.tag=story-bug-dependencies|Bugs tagged story-bug-dependencies]]
Line 11: Line 9:
''Consider clarifying the feature by describing what it is not?'' == What this is not ==
Line 13: Line 11:
''Link this from [[LEP]]''  1. A reimplementation of Blueprints (though as a side effect of its development we may see Blueprint usage drop off for some use-cases).
 2. Anything to do with bug cloning and linking as detailed in [[LEP/BugLinking]].
Line 17: Line 16:
''Why are we doing this now?'' Bug dependencies are an oft-requested feature of the Launchpad Bug Tracker and is something that would benefit the Launchpad development team itself.
Line 19: Line 18:
''What value does this give our users? Which users?'' As Launchpad has moved into feature-based development it has become more important to be able to track how much of the work on a given feature is done, whilst also tracking whether or not the feature itself can be considered complete.

Once the bug dependencies feature is implemented, developers will be able to declare the dependecies between two or more bugs. That means that they can clearly see, when starting a task, which bugs must be dealt with in which order. This can save a great deal of time, especially when (in the case of Launchpad, for example) it's not always obvious to a developer that other bugs block the one that they've just picked up.
Line 24: Line 25:
 * Launchpad Project Manager (Matthew Revell)  * Launchpad Product Manager (Matthew Revell)
Line 27: Line 28:

''Copied from LEP/BugLinking''
Line 35: Line 34:

=== Long-form ===

As a Launchpad developer, working on feature XYZ, I want to be able to know where to start my work. Initially, I may think that I should start with Bug A, which is the simplest of the bugs tagged for the feature. However, further investigation reveals that Bug A is blocked by Bug B and Bug C. These bugs are not actually related to each other, but they are both in turn blocked by Bug D. The dependency graph for Bug A now looks something like this:

{{{
    D
  / \
 B C
  \ /
   A
}}}

Therefore, I need to start working not on Bug A, but on Bug D.


=== Short-form ===
Line 44: Line 60:
'''As a ''' Launchpad Project Manager (or TA) <<BR>> '''As an''' upstream project maintainer <<BR>>
'''I want''' Launchpad to notify me when all the dependencies for a bug have been resolved.
'''So that''' I can commence work on the dependant bug.

'''As a ''' Launchpad Product Manager (or TA) <<BR>>
Line 48: Line 68:
'''As a ''' Launchpad Project Manager (or TA) <<BR>> '''As a ''' Launchpad Product Manager (or TA) <<BR>>
Line 56: Line 76:
'''From the [[LEP/BugLinking|BugLinking]] LEP:'''

'''As a ''' driver of a private project<<BR>>
'''I want ''' clone and link a bug that affects another project<<BR>>
'''so that ''' confidential info is not disclosed to the other project<<BR>>

'''As a ''' contributor to a private project<<BR>>
'''I want ''' clone and link a bug that affects another project<<BR>>
'''so that ''' confidential info is not disclosed to the other project<<BR>>

'''As a ''' contributor to multiple projects<<BR>>
'''I want ''' to be able to clone a bug from one project to another project<<BR>>
'''so that ''' I can have separate conversations about the bug, each with their own disclosure level
Line 75: Line 81:
 1. Provide the ability to say that one bug is related to another in some way.
 2. Ensure that relationships between bugs shouldn't (usually) alter the way that either of those bugs behave
 3. Provide the ability to mark a bug as a "meta bug" of two or more other bugs.
 4. Provide the ability to create a public "clone" of a private bug, so that OEM-specific bugs that rely on community interactions for fixes can be exposed for outside contributions without the OEM's internal conversations having to be made public.
 1. Provide the ability to say that one bug is dependent on another being fixed.
 2. Provide the ability to create a family of two or more bugs, headed by a "meta bug". The status of "meta" bug will be automatically managed by Launchpad, so that "meta" bugs are resolved only when all the bugs which they encompass are resolved.
 3. Provide a way to display clearly to users what needs to happen for a bug to become unblocked or, in the case of meta bugs, what must happen for a bug to be resolved.
Line 83: Line 88:
 1. Bug duplication described as a Bug Relationship.
 2. Dependency graphs for bugs
 3. Provide the inverse of "Must" #4: i.e. make it possible to create a private clone of a public bug.
 1. Dependency graphs for bugs
Line 95: Line 98:
''Other LaunchpadEnhancementProposal``s that form a part of this one.''

 * [[LEP/BugLinking|Bug Linking]]
Line 103: Line 102:
We will know that this feature is complete when we can accurately model Launchpad feature development stories using bug relationships rather than bug tags (see thoughts).  1. A user will be able to say that the resolution of one bug is blocked by one or more other bugs.
 2. Users will receive notifications when all the dependencies of a bug are resolved.
 3. A user will be able to declare that a bug will be automatically resolved when all its dependencies are resolved.
 4. We will be able to model Launchpad feature development stories using bug relationships rather than bug tags.
Line 107: Line 110:
 1. We will measure how often the identified stakeholders' teams each mark bug dependencies per week
 2. We can review bug comments for newly filed bugs for the stakeholder groups to see if bug dependencies are now being modeled in the data rather than in the comments
 3. We can review the percentage of bugs mentioned in comments that are not duplicates or related via a dependency chain; should this percentage differ significantly from the value before we implemented bug relationships it would indicate significant uptake of this feature (assuming other factors remain approximately stable).
 4. We will hold user-acceptance interviews with the relevant stakeholders.
Line 113: Line 119:

== Comments ==

 * gary 2011-09-26: Thank you, Graham! My comments got long, so I moved them to [[/GaryComments|a separate page]].
 * mrevell 2011-10-11: Is there anything we can/should do as part of this feature to smooth the path to merging the blueprint, answer and bug trackers into a unified issue tracker (Project Highlander: i.e. there can be only one ... issue tracker)

Bug dependencies

Bug dependencies in Launchpad will allow users to record the dependency between two or more bugs in the system. So, where one bug is blocking another being fixed, that can be shown as a relationship and so on.

Contact: gmb
On Launchpad: Bugs tagged story-bug-dependencies

What this is not

  1. A reimplementation of Blueprints (though as a side effect of its development we may see Blueprint usage drop off for some use-cases).
  2. Anything to do with bug cloning and linking as detailed in LEP/BugLinking.

Rationale

Bug dependencies are an oft-requested feature of the Launchpad Bug Tracker and is something that would benefit the Launchpad development team itself.

As Launchpad has moved into feature-based development it has become more important to be able to track how much of the work on a given feature is done, whilst also tracking whether or not the feature itself can be considered complete.

Once the bug dependencies feature is implemented, developers will be able to declare the dependecies between two or more bugs. That means that they can clearly see, when starting a task, which bugs must be dealt with in which order. This can save a great deal of time, especially when (in the case of Launchpad, for example) it's not always obvious to a developer that other bugs block the one that they've just picked up.

Stakeholders

  • Launchpad Team Lead (Francis Lacoste)
  • Launchpad Product Manager (Matthew Revell)
  • Launchpad Technical Architect (Robert Collins)
  • Launchpad Squad Leaders (Gary Poster, Julian Edwards, Curtis Hovey, Deryck Hodge)
  • OEM (Joey Stanford, Steve Magoun, Cody A.W. Somerville)
  • Hardware enablement (Chris Van Hoof, Hugh Blemings)
  • Ubuntu (Bryce Harrington)

User stories

Long-form

As a Launchpad developer, working on feature XYZ, I want to be able to know where to start my work. Initially, I may think that I should start with Bug A, which is the simplest of the bugs tagged for the feature. However, further investigation reveals that Bug A is blocked by Bug B and Bug C. These bugs are not actually related to each other, but they are both in turn blocked by Bug D. The dependency graph for Bug A now looks something like this:

    D
  /  \
 B    C
  \  /
   A

Therefore, I need to start working not on Bug A, but on Bug D.

Short-form

As an Ubuntu developer
I want to be able to mark a bug as being blocked by another bug
so that it is obvious in which order bugs need to be tackled

As an upstream project maintainer
I want to be able to mark a bug in my project as being the result of a bug in a dependency
So that I can track the bug in my project separately from the dependency bug.

As an upstream project maintainer
I want Launchpad to notify me when all the dependencies for a bug have been resolved. So that I can commence work on the dependant bug.

As a Launchpad Product Manager (or TA)
I want to be able to mark bug X as a "meta bug" of bugs A, B and C
so that I can use the bug tracker to track the development of features

As a Launchpad Product Manager (or TA)
I want Launchpad to automatically close a meta-bug once all its child bugs are closed
so that I only have to watch the one bug in order to know that a given feature is complete

As a Launchpad developer
I want to be able to see the dependency/relationship tree for a bug
so that I know where to start with my work to fix the bug.

Constraints and Requirements

Must

  1. Provide the ability to say that one bug is dependent on another being fixed.
  2. Provide the ability to create a family of two or more bugs, headed by a "meta bug". The status of "meta" bug will be automatically managed by Launchpad, so that "meta" bugs are resolved only when all the bugs which they encompass are resolved.
  3. Provide a way to display clearly to users what needs to happen for a bug to become unblocked or, in the case of meta bugs, what must happen for a bug to be resolved.

Nice to have

  1. Dependency graphs for bugs

Must not

Out of scope

  1. Completely replacing (and removing) Blueprints.

Subfeatures

Success

How will we know when we are done?

  1. A user will be able to say that the resolution of one bug is blocked by one or more other bugs.
  2. Users will receive notifications when all the dependencies of a bug are resolved.
  3. A user will be able to declare that a bug will be automatically resolved when all its dependencies are resolved.
  4. We will be able to model Launchpad feature development stories using bug relationships rather than bug tags.

How will we measure how well we have done?

  1. We will measure how often the identified stakeholders' teams each mark bug dependencies per week
  2. We can review bug comments for newly filed bugs for the stakeholder groups to see if bug dependencies are now being modeled in the data rather than in the comments
  3. We can review the percentage of bugs mentioned in comments that are not duplicates or related via a dependency chain; should this percentage differ significantly from the value before we implemented bug relationships it would indicate significant uptake of this feature (assuming other factors remain approximately stable).
  4. We will hold user-acceptance interviews with the relevant stakeholders.

Thoughts?

  • I've no idea how to measure success at this stage. I'd like to say "people use this more than they use Blueprints" but that's a) not a metric and b) foolish.
  • We probably need a lot of buy-in from the non-LP stakeholders to be able to consider this "done" but I'm not sure what form that buy-in would take.

Comments

  • gary 2011-09-26: Thank you, Graham! My comments got long, so I moved them to a separate page.

  • mrevell 2011-10-11: Is there anything we can/should do as part of this feature to smooth the path to merging the blueprint, answer and bug trackers into a unified issue tracker (Project Highlander: i.e. there can be only one ... issue tracker)

LEP/BugDependencies (last edited 2011-10-11 10:53:41 by matthew.revell)