/srv/irclogs.ubuntu.com/2010/06/10/#ubuntu-classroom.txt

=== ziroday` is now known as ziroday
dholbachPackaging Training Session in 15m: Operation Cleansweep and the Patch Reviewers Team!12:45
dholbachwelcome everybody!13:00
dholbachwho do we have here of the training session?13:00
dholbachcome on, don't be shy :)13:01
dholbachor is the channel +m'ed again?13:01
effie_jayxme13:01
dholbachahhh, here we go :)13:01
SevenMachines_i was on -chat13:01
effie_jayxme13:01
dholbachlet's all chat in here - that's totally fine13:01
bobboo/13:01
dholbachyeeehaw!13:01
* dholbach is EXCITED13:01
dholbachalright… I guess we'll have a few stragglers - we'll just ask them to check out the logs later on :)13:02
dholbachbobbo and I are going to talk about Operation Cleansweep and the Patch Reviewers Team today13:02
dholbachas you can see from https://wiki.ubuntu.com/OperationCleansweep the goal of this initiative is to clear up the quite big backlog of bugs with patches13:03
dholbachbobbo: at the moment, we have how many total?13:03
bobboWe started with 210013:03
bobbobut we've hit about 1650 now :D13:03
dholbachNICE13:04
dholbachalright, the problem with a lot of these patches is that people didn't know about the "proper process to submit patches" or sometimes added patches we couldn't easily make a decision about13:04
dholbachso the goal now is to triage those patches, see if they still work, then get them to the authors of the software and debian and get them included in Ubuntu that way13:05
dholbachso everybody benefits13:05
dholbachanother problem we had was that Launchpad didn't offer something like "patch status"13:05
dholbachso we always knew there's a huge number of patches, but we didn't know anything about them, because we couldn't query launchpad easily13:06
dholbachour goal for this cycle is, to check out ALL of them and make sure they get attention13:06
dholbachwe put quite a lot of effort into writing good documentation that explains how to do it and how to make all the decisions regarding patches and where they should go13:07
dholbachhttps://wiki.ubuntu.com/ReviewersTeam/ReviewGuide is the page you should probably bookmark :-D13:07
dholbachbobbo: care to take us through  https://wiki.ubuntu.com/ReviewersTeam/ReviewGuide#Workflow ?13:07
bobbosure :D13:07
dholbachawesome13:07
bobboBasically, going through that process you first need to find an appropriate bug to look at13:08
bobboThere's a few links in the wiki, but http://tinyurl.com/2u7kf3b is the bug list we've been working from mostly13:08
bobboall of those bugs have patches that need a bit of love13:08
bobboThe first step in working with a patch is to make sure the bug is still valid13:09
bobbothere's no point trying to patch a bug that doesn't exist anymore13:09
bobboif you can reproduce the bug properly, then you should head on to the next step, if not you can generally set the bug to Incomplete and ask other people to check if it's still an issue for them13:10
txwikingero/13:11
bobbotxwikinger, question?13:11
* txwikinger jusst said hi13:11
bobbotxwikinger, haha :D13:11
bobboonce you have a bug you can reproduce, you now need to test the patch, by downloading the packages source code (apt-get source packagename), downloading the patch attached to the bug and attempting to apply it13:12
bobboif it fails to apply, you should add the 'patch-needswork' tag to the bug, and add a comment saying it failed to apply (adding some output from patch showing which patch hunk(s) failed is also a great idea)13:13
dholbachwe have some documentation on how to do that at https://wiki.ubuntu.com/Bugs/HowToFix and I'll integrate that into the docs in a bit13:14
bobboif the patch applies fully, you'll next want to test that it actually fixes the bug (no point applying a patch if it doesn't actually fix anything)13:14
bobboyou'll probably need to build the package (I'm sure there're docs on the Wiki somewhere to guide you with that, dholbach?)13:15
nigelbabuwe'll get docs on that stat, 24 hours perhaps.  there are docs, but not geared to reviewers13:15
dholbachbobbo: yes, that's on HowToFix too13:15
dholbachI'll make sure to update it after the session13:16
bobboonce we write some docs and you know how to build packages, build it and go through the steps you went through initially to try to reproduce the bug13:16
dholbachas bobbo said: if it doesn't work tag it as patch-needswork and it's off the list for now13:17
SevenMachines_is it best/needed to be a member of the bug control team for this?13:17
dholbachSevenMachines_: no, not at all13:17
dholbachSevenMachines_: ubuntu-bugcontrol is only useful if you want to set the bug importance or mark it as won't fix13:17
dholbachto tag the patch you can do it just like that13:17
bobboif the bug is still reproducible, hit up the bug with 'patch-needswork'13:18
bobbootherwise, you should send the bug upstream or to Debian, dholbach could you take us through sending a patch upstream?13:18
dholbachsure13:19
dholbachif you scroll down on the reviewers guide a bit, down to "Getting patches accepted", you'll find information on how to make a decision where to send the patch13:19
dholbachin an ideal world, it'd work like this:13:19
dholbach - we get a patch in ubuntu13:19
dholbach - we send it to the software authors of that piece of software (upstream)13:20
dholbach - they like it13:20
dholbach - it gets integrated13:20
dholbach - the new release makes it into debian13:20
dholbach - then we get it13:20
dholbachsometimes you'll find that it's a patch that has only to do with packaging13:20
dholbachin that case and if the package is in debian too, you'd just send it to debian13:20
dholbachif the package is just in ubuntu, we need to integrate it ourselves13:21
dholbachthe good thing about getting in touch with upstream and debian is that we get a few more sets of additional eyes to have a look at the patch13:21
dholbachand make an informed decision13:21
dholbachhowever13:21
dholbachif it's really an important bug fix, like a crash or when data gets deleted13:22
dholbachetc13:22
karyoi'm sorry to interrupt but how do I "apply" a patch? does it need to be dealt with in a case by case basis?13:22
dholbachwe integrate it ourselves first13:22
dholbachkaryo: up until a few days ago it was a "case by case basis"13:22
dholbachbut luckily, we have the ultimate solution to things, which is13:22
dholbachBOBBO13:22
bobboedit-patch?13:22
bobboamirite?13:22
dholbachhe extended "edit-patch" which is in ubuntu-dev-tools13:22
dholbachso you'd just download the patch and the source package13:23
dholbachthen call    edit-patch <patch file>13:23
dholbachand it'd get applied for you13:23
dholbachthen you can test-build the package13:23
dholbachas bobbo, nigelbabu and I said: we'll work on getting the docs for that right ASAP13:23
karyoin general, would you say applying patches would require packaging skills?13:23
karyoor "just run edit-patch and your done"13:23
bobbo(the only caveat there is that if the package doesn't have a patchsystem (dpatch/quilt/cdbs), edit-patch wont work)13:23
dholbachbobbo: we can fix that too13:24
dholbachbobbo: I'll add it to the TODO list13:24
karyodo most packages have a patch system?13:24
dholbachkaryo: I'd say so13:24
dholbachbut we'll fix that13:24
bobbokaryo, a lot do, yeah, but I'll patch edit-patch as soon as we're done here so it works for all packages13:25
dholbachthanks a bunch already for all your questions and feedback - as you can see you sparked a lot of ideas :-D13:25
dholbachok, so let's say you forwarded the patches13:25
dholbachyou'd use patch-forwarded-upstream13:25
dholbachand/or patch-forwarded-debian13:26
karyoas tags?13:26
dholbachIf upstream requests patch rework, you'd add the patch-needswork tag13:26
dholbachkaryo: yes13:26
dholbachif upstream rejects the patch, remove patch-forwarded-upstream tag, and add patch-rejected-upstream (or patch-rejected-debian) tag13:26
karyowhat if I cannot get an answer from upstream?13:27
dholbachand if the patch is unnecessary or addresses something that does not need to be fixed, add tag patch-rejected, give reason in the comments, and if required close the bug to Won't Fix13:27
dholbachkaryo: that's indeed a problem - in that case we'd need to assess the patch and the bug and decide if we want to carry the difference ourselves13:27
dholbachit always comes at a maintenance cost13:27
dholbach(but maybe worthwhile)13:28
karyoi'll ask you about a specific case about this later. please carry on13:28
dholbachok cool13:28
dholbachas you can see… the tags we use are really self-explaining13:28
dholbachand apart from the technical details which might require some knowledge (which you can ask for in #ubuntu-reviews), the process itself is pretty straight-forward13:29
dholbachif upstream accepts the patch, remove patch-forwarded-upstream tag, and add patch-accepted-upstream (or patch-accepted-debian) tag. Indicate the VCS revision and/or expected upstream/debian version/revision that will include the bugfix13:30
dholbachthe only thing left (apart from a juicy example or two) is: how do I get it into Ubuntu if it's urgent enough?13:30
dholbachthere's the sponsors team - they will take patches from people who can't upload themselves yet, where all the patch assessment has happened already13:31
dholbachyou'll just attach an updated patch (if necessary), add a changelog entry (if you can) and subscribe ubuntu-sponsors13:31
dholbachdo you have any more questions up until now?13:31
dholbachbobbo has picked a few nice and juicy examples13:32
dholbachlet's first go through one that was already done13:33
dholbachand then do a live example13:33
bundohayanbom,  Hi !13:33
hayanbombundo, hi13:33
effie_jayx@dholbach there are a few bugs with patches with very specific hardware. what can one do to help get those sorted if one does not have the needed hardware13:33
bobbohttps://bugs.edge.launchpad.net/ubuntu/+source/libpcap/+bug/52334913:34
ubot2Launchpad bug 523349 in libpcap (Debian) (and 1 other project) "Bad /sys path to text-based usbmon (affects: 2) (dups: 1) (heat: 42)" [Unknown,Fix released]13:34
dholbacheffie_jayx: good question - I'd probably ask in #ubuntu-devel for help with that13:34
karyoreproducing the patch would be very difficult too13:34
bobboThis is a bug which had a patch which has gone through the patch-review process13:34
bobboBrian Murray confirmed the bug and it was then sent up to Debian  (unfortunately whoever did that forgot to add patch-forwarded-debian tag)13:35
bobboit was taken and applied in the Debian package, and was tagged 'patch-accepted-debian'13:36
bobboand now we are waiting for the patch to trickle down and hit the Ubuntu archives13:36
bundooh karyo good English conversation ^^..13:36
dholbachalso13:36
dholbachwe have it tagged now, so we practically have another "todo list" now13:37
dholbachwe can regularly have a look at the patch-accepted-* bugs and make sure we integrate them one way or another13:37
dholbach(there's instructions on the review guide for that as well)13:37
karyoisn't it automatic?13:37
dholbachkaryo: it depends13:37
dholbachkaryo: only if we're in the beginning in the release cycle and the package in ubuntu was not modified, we'll get it automatically13:38
dholbachkaryo: in the other cases we'll have to do this semi-manually13:38
dholbachlike: if we're very close to release and it's a HUGE CHANGE, we probably choose to fix it in the next release instead13:38
dholbacheven if it fixes a bug13:38
dholbachso it can get more testing, etc.13:39
dholbachbobbo: please go on - just wanted to quickly interrupt :-)13:39
bobbodholbach, awesome :D13:39
karyoOh, I thought it only involved work in our part. Not decisions. bobbo go on please13:39
bobbookay https://bugs.edge.launchpad.net/ubuntu/+source/empathy/+bug/544242 is another quick example of a patch going through the process13:39
ubot2Launchpad bug 544242 in empathy (Ubuntu) (and 1 other project) "[PATCH] Empathy should allow users to toggle auto-away mode on/off (affects: 1) (heat: 45)" [Wishlist,Fix committed]13:39
bobbothis time a bug was created with a patch attached13:39
bobboit was reviewed by Omer Akram who sent it upstream13:40
bobbonigelbabu, saw this and marked it -frowarded-upstream13:40
karyoisn't this a feature rather than a but fix?13:41
bobboThere was some discussion about the patch upstream with people debating the correct way to implement it before the patch was accepted and tagged patch-accepted-upstream13:41
bobbokaryo, the process can work for both features and fixeds13:41
bobbokaryo, in the case of feature requests it's especially important that we talk to the upstream about it and forward patches up to the original authors13:42
dholbachkaryo: it's probably one of those examples for "late in the release, maybe we shouldn't include it right away, even if it has upstream approval"13:42
dholbachyep13:42
bobbodholbach, do you want to take us through a "live" untouched example from the queue?13:42
dholbachlet me check the list13:43
karyoI understand. btw am I interrupting too much?13:43
dholbachlet me check the list13:43
dholbachkaryo: not at all13:43
dholbachkaryo: it's way more fun if this is a conversation13:43
bobbokaryo, the more questions you ask, the more we understand where we need to improve our documentation and processes13:43
karyothat's nice 'cause questions I've plenty13:44
dholbachkaryo: do you have any more questions right now?13:45
dholbachok let's see if  https://bugs.edge.launchpad.net/ubuntu/+source/onboard/+bug/526791  makes any sense for us to work on13:46
ubot2Launchpad bug 526791 in onboard (Ubuntu) (and 1 other project) "onboard crashed with SIGSEGV in XkbGetNames() (affects: 19) (dups: 4) (heat: 123)" [Medium,Fix committed]13:46
dholbachif you have a look at the last comment13:46
dholbachyou see that marmuta said "I've pushed a workaround to onboard and virtkey trunks"13:47
dholbachthat means that the patches were already pushed upstream13:47
dholbachso it's easy, I'd just add patch-accepted-upstream and it'd be off our list13:47
dholbachnigelbabu, bobbo: do I remove the 'patch' tag? O:-)13:48
bobbodholbach, yes :)13:48
nigelbabudholbach: yes13:48
dholbachoh, it doesn't even have it13:48
karyoI don't have to reproduce and confirm that the patch is working?13:48
dholbachalright, another one off the list13:48
nigelbabuit doesn't have it, because its an older patch that's part of clean sweep13:48
dholbachkaryo: if upstream is totally happy with it, that's good enough for us, of course, if you want you can still test it13:48
dholbachnigelbabu: gotcha13:48
bobboonce you start going through the list, you'll find a lot of the bugs can be easily taken off our list as they've already been forwarded or accepted in Upstreams or Debian13:49
bobbothe majority of bugs I've touched, I haven't had to apply the patch and test it as someone has done that already and sent it to Debian, the bug just hasn't been tagged yet13:49
karyoso all I have to do is find out if upstream/debian is happy with the patch?13:49
dholbachkaryo: if it wasn't tested first, you'd need to test it though13:50
SevenMachinesis there a cutoff for these patches, ie, do we still try and fix the warty release :)13:50
karyohow do I know if it was tested?13:50
dholbachkaryo: if it already was forwarded or even accepted, that's easy13:51
dholbachkaryo: in the other cases you'd want to test13:51
karyo@sevenmachines I believe warthy is no longer supported13:51
dholbachhttps://bugs.edge.launchpad.net/ubuntu/+source/openttd/+bug/503725 is another one of those13:51
ubot2Launchpad bug 503725 in openttd (Ubuntu) "CVE-2009-4007 (DoS of OpenTTD < 0.7.5) (affects: 2) (heat: 252)" [Low,Confirmed]13:51
bobboSevenMachines, often if there's a bug from a long time ago, the patch will have already been applied somewhere, you just have to use your google-fu to check13:51
dholbachit's about a security issue, directly in the initial comment it says13:51
dholbachThere are two ways to fix this:13:51
dholbach- update to 0.7.5 (or higher)13:51
dholbach- apply the patch of 0.6.2-1+lenny1 (from Debian)13:51
SevenMachinesscroogle-fu!13:52
dholbachso it's been accepted both in upstream and in debian13:52
dholbachI'll add patch-accepted-debian and patch-accepted-upstream13:52
dholbachas you can see: a lot of our work is to put those patches into buckets13:52
dholbachand make it clear what happened to the patches up until now13:52
karyois update to 0.7.5 an option?13:52
dholbachso that further action can be taken easily13:52
dholbachkaryo: sure13:53
karyoisn't that changing packages?13:53
dholbachif you have a look at http://packages.debian.org/search?searchon=sourcenames&keywords=openttd13:53
bobboSevenMachines, normally if it's been languishing in LP for a long time, it's either not suitable to be applied or there's some other reason. In most cases of really old patches, I've looked around a bit, found the source code has evolved so much that the patch wont even apply any more and just slapped with with a 'patch-rejected' and explained why13:53
dholbachyou can see that it's already in Debian13:53
bundohayanbom,  Your happy?13:54
dholbachanother interesting example is https://bugs.edge.launchpad.net/ubuntu/+source/file-roller/+bug/35413613:54
ubot2Launchpad bug 354136 in file-roller (Ubuntu) (and 1 other project) "unintuitive back and forward (heat: 11)" [Low,Triaged]13:54
dholbachas you can see the bug was forward to upstream already13:54
dholbachclick on the "gnome-bugs #578837" link13:54
ubot2Launchpad bug 578837 in blueprint "Proposing a blueprint for a sprint cannot be undone (dup-of: 198982)" [Undecided,New] https://launchpad.net/bugs/57883713:54
ubot2Launchpad bug 198982 in blueprint "Can't un-propose a blueprint for a meeting (affects: 1) (dups: 1) (heat: 12)" [Low,Triaged] https://launchpad.net/bugs/19898213:55
dholbachif you compare the two suggested patches, you'll see they're identical13:55
dholbachhttp://bugzilla-attachments.gnome.org/attachment.cgi?id=13259413:55
dholbachhttp://launchpadlibrarian.net/24728371/file-roller-2.24.1_history-fix2.diff13:55
dholbachthe patch didn't get a review upstream though yet13:55
dholbachso we'd just add a patch-forwarded-upstream13:55
dholbachalright… let's close the session at this point and move over to #ubuntu-reviews where we can further discuss patches, bugs and the process involved13:58
dholbachthanks a lot everybody13:58
bobbothanks guys :D13:58
dholbachthanks bobbo for being a great host13:58
dholbachI'll make sure we get the logs up later on for others who are interested13:58
karyothx13:58
SevenMachinesthanks everyone13:58
dholbachI'll update statistics here: http://daniel.holba.ch/review/report13:58
dholbach(every week, so we know how we're doing compared to last week)13:58
SevenMachinessort of related, is there a developer week soon? or did i imagine it13:59
dholbachSevenMachines: a couple of weeks left still :)13:59
karyowhat do I do when I cannot get an answer from upstream?13:59
dholbachkaryo: I'd try to ask again, on the bug, maybe on their mailing list too14:01
dholbachkaryo: and if it's not possible at all to get a reply, decide if we're willing to carry the load of taking the patch ourselves14:01
SevenMachinesjoining ubuntu-reviews crashes my xchat :)14:02
karyoso then it's : try hard to talk to upstream, and then try talking to the relevant ubuntu team. right?14:02
dholbachkaryo: ubuntu-sponsors14:02
dholbachand the relevant team14:02
dholbachbe it desktop, server or kubuntu or wherever else :)14:02
* dholbach heads out of here - see you in #ubuntu-reviews14:03
karyookay. I think I had enough for the day. It's bedtime here. good bye14:03
dholbachkaryo: sleep tight! :)14:03
* karyo heads out ZZZ14:03
dholbachit was great to have you around14:03
SevenMachinesbye all14:03
MTecknologydholbach: I missed it, didn't i?14:04
nigelbabuMTecknology: yes you did14:04
dholbachMTecknology: yep, I'll put up logs in a bit14:04
MTecknologydholbach: gosh darned you people that don't all use my timezone :P - I'm just waking up14:04
=== daker_ is now known as daker
=== Esquire_ is now known as Esquire
=== yofel_ is now known as yofel

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!