Diff for "LEP/BugDependencies"

Not logged in - Log In / Register

Differences between revisions 9 and 20 (spanning 11 versions)
Revision 9 as of 2011-09-23 14:53:51
Size: 3707
Editor: gmb
Comment:
Revision 20 as of 2011-10-11 10:41:00
Size: 6152
Comment: Clarify separation from bug linking
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
''This LEP contains information from the [[LEP/BugLinking|Bug Linking LEP]]''
## page was renamed from LEP/BugRelationships
Line 5: Line 4:
Bug relationships 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 relationships in Launchpad will allow users to record the relationships 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 8: 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 10: Line 9:
''Consider clarifying the feature by describing what it is not?'' == What this is not ==
Line 12: 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 16: Line 16:
''Why are we doing this now?'' Bug relationships are an oft-requested feature of the Launchpad Bug Tracker. 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.
Line 18: Line 18:
''What value does this give our users? Which users?'' Once Bug Relationships are 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 22: Line 22:
''Copied from LEP/BugLinking''  * Launchpad Team Lead (Francis Lacoste)
 * Launchpad Project Manager (Matthew Revell)
 * Launchpad Technical Architect (Robert Collins)
 * Launchpad Squad Leaders (Gary Poster, Julian Edwards, Curtis Hovey, Deryck Hodge)
Line 29: Line 32:

=== 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 37: Line 57:

'''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.
Line 50: Line 74:
'''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 69: Line 79:
 * Provide the ability to say that one bug is related to another in some way.
 * Ensure that relationships between bugs shouldn't (usually) alter the way that either of those bugs behave
 * Provide the ability to mark a bug as a "meta bug" of N other bugs (where N > 1).
 * 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 related to another in some way.
 2. Provide the ability to mark a bug as a "meta bug" of two or more other bugs. The status of "meta" bugs 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 77: Line 86:
 * Bug duplication described as a Bug Relationship.  1. Dependency graphs for bugs
Line 81: Line 90:
''What MUST it not do?''
Line 85: Line 92:
 1. Completely replacing (and removing) Blueprints.
Line 86: Line 95:

''Other LaunchpadEnhancementProposal``s that form a part of this one.''
Line 93: Line 100:
 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 94: Line 107:

 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).
Line 97: Line 114:
''Put everything else here. Better out than in.''  * 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 [[/GaryComments|a separate page]].

Bug Relationships

Bug relationships in Launchpad will allow users to record the relationships 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 relationships are an oft-requested feature of the Launchpad Bug Tracker. 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 Bug Relationships are 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 Project 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 Project 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 Project 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 related to another in some way.
  2. Provide the ability to mark a bug as a "meta bug" of two or more other bugs. The status of "meta" bugs 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).

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.

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