Upstream bug tasks assigned to MPs should be marked as "Fix Committed" after merge

Bug #1502897 reported by Marco Trevisan (Treviño)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bileto
Won't Fix
Medium
Robert Bruce Park

Bug Description

In unity7 we track bugs for the upstream project and the ubuntu package separately.

When we do releases with ci-train, the bugs assigned to the selected merge proposals aren't correctly updated, in fact while the downstream side is correctly marked as "Fix Released", the upstream task is not marked as "Fix Committed" as soon as the related branch is merged.

Revision history for this message
Robert Bruce Park (robru) wrote :

Ah yes, the code that did this had been broken for a very long time (over a year) and nobody had complained about it so i just deleted it instead of fixing it. I'll look into resurrecting that now that i see somebody is actually wanting this.

Changed in cupstream2distro:
assignee: nobody → Robert Bruce Park (robru)
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Great!

I guess it's a little bit trickier when not targeting trunk, and then you've to mark the task that is linked to that series (if any), but even a simple version would be nice to avoid me to do this half-manually every time. :)

Revision history for this message
Robert Bruce Park (robru) wrote :

Can you show me an example merge proposal with the bugs you want closed?

And can you tell me more specifically exactly what you want to happen? Like the train should detect if a bug has both an packaging bug & upstream bug and set the upstream status to match the packaging status?

Changed in cupstream2distro:
status: Confirmed → Incomplete
Revision history for this message
Robert Bruce Park (robru) wrote :

This was the code I was thinking of that was broken for a long time that I dropped instead of fixing:

http://bazaar.launchpad.net/~cupstream2distro-maintainers/cupstream2distro/trunk/revision/1013#cupstream2distro/launchpadmanager.py

Basically in every log it would just say "Failed to sync..." so I got rid of it. That was removed 15 months ago, and was broken even for a long time before that, and nobody complained in all this time. Is that the feature you want restored? Or are you asking for something new? I thought from the IRC log that you thought the train already had this feature but I'm not sure if this code does quite what you're asking for.

Revision history for this message
Robert Bruce Park (robru) wrote :

Trying to understand that code a bit more. It looks like it takes bugs that only have upstream components and then also adds the ubuntu source package for those bugs. Not quite what you're asking I think.

What you want is for the train to mark all the bugs on an MP as "Fix Committed" when the branch merges? I can do that but I don't recall the train ever having a feature like that (the thing about the ubuntu package bug getting marked 'Fix Released' is done by LP itself, train doesn't do that at all).

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

No, I never saw this in the CI-train, I'm sure it was there at time we had the auto-lander (when branches were merged as soon as they were top-approved). I think didrocks might know better the internals of that.

However, examples of MPs...
 - under review: lp:~3v1n0/unity/force-resize-gtk-icons/+merge/273313

What I expect when a such MP gets processed by train is
 1) When the package is built and released:
   - Downstream task for bugs #1446081 and #1501973
      (now they're duplicated here, but let's pretend they're not) is marked
      as "Fix Released"
 2) When the MP is merged with trunk (or with any other series):
   - Upstream task (targeting trunk or the matching series) for bugs #1446081
      and #1501973 should be marked as "Fix Committed".

Right now 1) works well, but there's no kind of 2) (so the same I manually did with lp:~3v1n0/unity/gnome-keygrabber-refactor/+merge/272858) implemented.

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Ah, something quite raw I use for match upstream and downstream bugs is here:
 - http://bazaar.launchpad.net/~unity-team/+junk/bugtools/view/head:/lp-unity-bug-updown-match.py

Revision history for this message
Robert Bruce Park (robru) wrote : Re: [Bug 1502897] Re: Upstream bug tasks assigned to MPs should be marked as "Fix Committed" after merge

How can i know which branch is for which series without hard-coding
lp:unity branch names?

It seems it would be easy to mark whole bugs as fixed when merging but i
don't see how to determine which bug task is the correct one for the given
series being merged.

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

Can't you check wether the task is targeted to a "trunk" series (or other generic names used fo that)? It should be the common name for dev branch.

Revision history for this message
Robert Bruce Park (robru) wrote :

Well that would work to say whether a branch is trunk or not but there's no
way i know of to correlate a series branch with the series it's for,
because there's no standard naming scheme for that. Some people use the
series name, some the series version, and there's a lot of variation too.
On Oct 5, 2015 6:30 PM, "Marco Trevisan (Treviño)" <mail@3v1n0.net> wrote:

> Can't you check wether the task is targeted to a "trunk" series (or
> other generic names used fo that)? It should be the common name for dev
> branch.
>
> --
> You received this bug notification because you are a bug assignee.
> https://bugs.launchpad.net/bugs/1502897
>
> Title:
> Upstream bug tasks assigned to MPs should be marked as "Fix Committed"
> after merge
>
> Status in CI Train [cu2d]:
> Incomplete
>
> Bug description:
> In unity7 we track bugs for the upstream project and the ubuntu
> package separately.
>
> When we do releases with ci-train, the bugs assigned to the selected
> merge proposals aren't correctly updated, in fact while the downstream
> side is correctly marked as "Fix Released", the upstream task is not
> marked as "Fix Committed" as soon as the related branch is merged.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/cupstream2distro/+bug/1502897/+subscriptions
>

Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

> Well that would work to say whether a branch is trunk or not but there's no
> way i know of to correlate a series branch with the series it's for,
> because there's no standard naming scheme for that. Some people use the
> series name, some the series version, and there's a lot of variation too.

That's right... Well, having this automated at least for trunk
landings would be a very nice addition. I was guessing that doing this
kind of matching would have been a little tricky, but I thought that
using the `branch_link` from https://api.launchpad.net/devel/unity/7.3
or https://api.launchpad.net/devel/unity/7.2 would have been enough.

affects: cupstream2distro → bileto
Changed in bileto:
status: Incomplete → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.