/srv/irclogs.ubuntu.com/2012/08/30/#launchpad-dev.txt

StevenKwgrant: Your card for respecting BugSharingPolicy is in review. Is it really in review?01:28
wgrantI submitted an MP last night...01:30
wgrantbut it doesn't seem to be there01:30
wgrantmaybe I had too many MPs open and it hung and I didn't notice01:30
wgrantoops01:30
* wgrant will resubmit shortly01:30
StevenKwallyworld, wgrant: https://code.launchpad.net/~stevenk/launchpad/destroy-target-uses-malone/+merge/12195801:37
wallyworldlooks ok to me01:39
wgrantofficial_malone is still a bit evil, but less so than target_uses_malone01:59
wgranthttps://bugs.launchpad.net/launchpad/+bug/1043591 makes me happy02:07
wgrantPrivate security bug with notifications but no security contact02:07
StevenKLinux Mint 12 and he's filing it in LP against LP? :-(02:09
StevenKwgrant: We can't destroy the team until the DB patch is on prod?02:10
wgrantStevenK: And it's all that gives us access to a few private bugs in other projects02:11
StevenKBut sharing! We can fix it02:12
StevenKwallyworld: Is your branch that creates sharing policies on creation up?02:13
wgrantIt's in buildbot02:14
wallyworldStevenK: in bb02:14
StevenKIt's landed, so fine, I'm not blocked by it to fix bug 104336602:14
_mup_Bug #1043366: Create Private and Private Security policies if sharing policy allows them <disclosure> <sharing> <Launchpad itself:Triaged> < https://launchpad.net/bugs/1043366 >02:14
* StevenK smacks wallyworld for duplicated code.04:23
wallyworldwhere?04:24
StevenKsetB{ug,ranch}SharingPolicy04:24
StevenKI've refactored it out04:24
wallyworldi wasn't the original author04:25
wallyworldblame wgrant04:25
wgrantI wrote them originally and they were like two lines each04:25
wgrantThen sinzui and I added to them04:25
wgrantAnd now they're probably worth refactoring04:25
wallyworldyes. best to to try and generalise too early04:26
* wallyworld smakes StevenK for jumping to conclusions :-P04:26
wgrantParticularly now that they're becoming more sensible (creating PRIVATE and PRIVATESECURITY themselves), it probably makes sense to refactor now04:27
StevenKBah, still +204:30
StevenKHowever, setBugSharingPolicy is two lines, and Branch is 304:30
wgrant:)04:30
StevenKNo, +3, missed an import04:31
wgrant:(04:33
StevenKwgrant: http://pastebin.ubuntu.com/1175144/04:34
wgrantmmmmmmmm04:35
wgrantmaybe04:35
wgrantI'd prefer you moved the setattr out, really04:35
wgrantOnly saves a single line, and makes things far less greppable04:36
StevenK+4, but the extra one is your fault. :-P04:36
wgrantHeh04:37
StevenKI thought test -vvt 'TestProduct$' would work :-(04:37
wgrantThat should04:37
StevenKsteven@undermined:~/launchpad/lp-branches/shift-ap-creation% bin/test -vvt 'TestProduct$'04:38
StevenKRunning tests at level 104:38
StevenKTotal: 0 tests, 0 failures, 0 errors in 0.000 seconds.04:38
wgrantOh04:38
wgrantWell04:38
wgrantThere's no tests named that04:38
wgrantDo you mean TestProduct\..*?04:38
StevenKProbably04:38
lifelessthat setattr s bong anyhow04:39
lifelessobj name value04:39
wgrantWell, yes.04:40
wgrantBut it's also pointless so it's dead :)04:40
StevenKlifeless: Yeah, I was going to introspect the variable's name out04:40
lifelessside effects bad in that sort helper04:40
StevenKAnd then get murdered by wgrant04:40
wgrantI'm not that murderous today04:40
StevenKNow to figure what is creating these APs04:41
wgrantStevenK: Your new code probably is...04:43
wgrantStevenK: makeLegacyProduct just unsets foo_sharing_policy afterwards04:43
wgrantThey start of as PUBLIC04:43
wgrantoff04:43
wgrant(you'll probably need to fix createProduct to not set the to PUBLIC if it's about to override them to PROPRIETARY, too)04:44
StevenKwgrant: The default argument is None, and makeProduct only sets them if they're not None?04:45
wgrantStevenK: See createProduct04:45
wgrantIt defaults them to PUBLIC04:45
wgrantThen if the license is Other/Proprietary, sets them to PROPRIETARY04:45
StevenKHmmm04:46
StevenKIndeed, that is a pickle04:46
StevenKwgrant: It doesn't actual set until after that block04:47
StevenKbug_sharing_policy_to_use = BugSharingPolicy.PUBLIC04:47
wgrantOh, right04:48
wgrantThat makes more sense04:48
wgrantBut sti.ll04:48
wgrantmakeLegacyProduct will create the APs due to your new code04:48
wgrantBecause it calls createProduct04:48
StevenKwgrant: So, did you put that card's branch up for review?05:06
wgrantI have the final set of 20 test failures, so will repropose once those are fixed05:07
StevenKwgrant: https://code.launchpad.net/~stevenk/launchpad/shift-ap-creation/+merge/12198505:09
* StevenK prepares for the wgrant sadface05:09
wgrantD:05:09
wgrantStevenK: Is it perhaps better to nuke the APs in the test rather than adding the skip_sharing_policy arg?05:15
wgrantRegardless, makeLegacyProduct needs those two APs05:15
wgrantSo you cannot skip_sharing_policy unconditionally in there05:15
StevenKwgrant: If we're just going to nuke them, the test is pointless05:16
wgrantStevenK: Mm, true05:17
wgrantStevenK: I guess what you want is a couple of tests for setFooSharingPolicy05:18
StevenKWhich already exist05:18
StevenKI added the checks for APs to the bottom05:18
wgrantCreate a free project, check that it has [PRIVATE, PRIVATESECURITY], set bug_sharing_policy, confirm it creates PROPRIETARY05:18
wgrantCreate a proprietary project, check that it has PROPRIETARY, set bug_sharing_policy, confirm it creates [PRIVATE, PRIVATESECURITY]05:18
StevenKwgrant: http://pastebin.ubuntu.com/1175188/05:22
wgrantStevenK: LGTM05:24
=== jtv1 is now known as jtv
wallyworld_wgrant: StevenK: i think there's a bug in createProduct - it always creats AP for UD and PS even for sharing_policy = PROPRITARY which only allows PROPRIETARY06:05
wgrantwallyworld_: That's what Stevenk just fixed, isn't it?06:06
StevenK...06:06
StevenKwallyworld_: Read the diff on https://code.launchpad.net/~stevenk/launchpad/shift-ap-creation/+merge/12198506:06
wallyworld_oh, right. ok. i wasn't paying too much attention06:06
wgrantOK, good06:06
wallyworld_the branch i'm working on has been affected by this bug06:07
wgrantStevenK: https://code.launchpad.net/~wgrant/launchpad/bug-restrict-type/+merge/12198906:07
StevenKwgrant: Fantastic, looking06:07
wgrantThere's a few hundred lines of testfixes that I haven't pushed yet, to avoid killing you06:07
wgranttoo bad06:07
wgrantly06:07
wgrantOur last few final cleanup branches are all a bit intertwined :(06:07
StevenKwgrant: +107 :-(06:08
wallyworld_sigh, new code not always bad06:08
StevenKNo, just seeing if what wgrant does to me works with him.06:09
wallyworld_let's see....06:09
* wallyworld_ gets popcorn ready06:09
wgrantHeh06:10
wgrantI bitch about new code on pure cleanup branches :)06:11
wallyworld_sometimes cleanup requires new code06:11
wgrantSure06:11
StevenKwgrant: r=me, with one comment.06:13
wgrantsadface06:13
wgrantAh yes06:14
wgrantI meant to do that, actually06:14
wgrantThought I caught all of them06:14
wgrantBut apparently not06:14
wgrantwallyworld_: Ah, you're working on the SharingService bug I reported last night?06:20
wallyworld_getAllowedInformationTypes, yes06:21
wgrantGreat06:21
wgrantI think that's the last important bit06:21
wallyworld_i need to introduce some new methods on IProduct, IDistro06:21
wallyworld_getAllowedBranchInformationTypes()06:21
wallyworld_to match getAllowedBugInformationTypes()06:21
wgrantYeah06:21
wgrantI guess just push that down from BranchNamespace06:22
wgrantish06:22
wallyworld_i just used POLICY_ALLOWED_TYPES or whatever it;s called06:22
wallyworld_imported it06:22
wgrantRight06:24
wgrantWe probably want to rename that now06:24
wgrantto say BRANCH or something06:24
wgrantI didn't initially expect it to be exported06:24
StevenKRight06:25
wgrantBut it's now used in a few places06:25
StevenKThere's a bug one which is also used in a few places06:25
wallyworld_wgrant: i aliased it on the import06:27
wallyworld_same with P_A_T for bugs06:27
wgrantRight, but everyone's doing that now06:27
StevenKI'll fix it tomorrow06:27
wgrantSo we should possibly just rename it at the source06:27
wallyworld_not everyone needs to branch version, just me06:28
wallyworld_but yes we can rename06:28
StevenKwallyworld_: Just alias it, I'll do a branch to just rename tomorrow06:28
wallyworld_i will also need a followup branch when setting the sharing policy using the ajax popups06:28
wallyworld_since i need to reset the json cache06:28
wgrantAh, yes06:28
wallyworld_to allow for the different types06:29
wallyworld_hence i need a view layer :-P06:29
wgrantWe also need to refresh parts of the sharing table, if possible06:29
wgranteg. if I set from Public to Proprietary, it'll add a grant for the owner on Proprietary06:29
wallyworld_yes06:29
wgrantBut not show up until I refresh06:29
wallyworld_will do all that next06:29
wallyworld_but it all works now, i merged in StevenK's branch. just need to add tests06:30
wgrantGreat06:30
stubImportError: No module named sysconfig07:40
stuboh... probably because it has a hardcoded python2.6, and we still need that for production :-/07:42
wgrantstub: What's that from?07:49
wgrantNot seen it before07:49
stubRunning preflight locally07:49
adeuringgood morning07:49
wgrantAh, right07:51
lifelesso/08:18
=== almaisan-away is now known as al-maisan
wgrantwallyworld_, StevenK: Product._ensurePolicies (as called by setFooSharingPolicy) currently creates any missing policies, and grants the owner access to all of the requested types. I wonder if we want to restrict the grants to just the new ones. Otherwise eg. changing PUBLIC to PROPRIETARY_OR_PUBLIC will grant the owner access to everything, even though only Proprietary is new08:32
wgrantOpinions?08:32
jamjelmer: any luck with bzr-2.5 on staging?08:32
wallyworld_hmmm. sounds reasonable at first thought08:32
jam(anything I can help with?)08:32
StevenKwgrant: As wallyworld_ says, sounds reasonable. Bring it up on the call and the four of us can discuss it?08:33
wgrantOr I could land the fix in 5 minutes...08:33
wgrantSeems pretty unobjectionable08:34
StevenKOr that08:34
wallyworld_i just wonder if we are relying on ensurePolicies to correct mistakes08:34
StevenKMy fix won't land, ec2 will send hate mail08:34
wgrantwallyworld_: I think it's more likely to cause mistakes.08:34
wgrantBut it's not huge either way08:34
jamlifeless: did you see any of the conversation about lpstats? I'm thinking we just want to nuke all of the extra rabbit queue data, but I'd like sign off from someone else before we delete it.08:35
lifeless+108:35
wallyworld_wgrant: i guess fixing it makes things more failsafe08:35
wgrantOh, actually, I might have misread08:35
wgrantIt may do that already08:35
wgrantBut the variables are a bit ambiguously named08:35
* wgrant rereads08:35
lifelessjam: Do what needs to be done :)08:35
wgrantwallyworld_, StevenK: Yeah, sorry, required_types had me confused. It's actually the required types that must be created08:36
wgrantSo it already has the behaviour I said08:36
wallyworld_cool08:36
wgrantOtherwise everything seems pretty nice08:37
wallyworld_well, after my next 2 branches land to fix +sharing08:37
wallyworld_for proprietary projects08:37
wgrantRight08:38
wallyworld_one is in review08:38
wgrantBut it's perfectly usable atm, just a few too many UI elements sometimes08:38
wgrantthat don't do anything08:38
wallyworld_yeah08:38
wgrantTomorrow I need to analyse the damage from the buggy garbo job yesterday08:38
wallyworld_there was also confusion between Private vs Proprietary08:38
lifelessjam: if you think we'll confuse tuolumne, I'm happy to help with analysis or whatever, but I presume you looked at the structure in enough detail to avoid such side effects.08:38
wallyworld_i wonder if we need to fix thsat08:38
wgrantwallyworld_: Yeah, I've always been a little concerned about that08:39
wallyworld_wgrant: buggy job? what happened?08:39
wgrantwallyworld_: It will be less of an issue once your current fix is deployed08:39
wgrantwallyworld_: As commercial projects will never see private08:39
wallyworld_let's hope so08:39
wgrantCurrently even once they set everything to Proprietary, there are still Private and Private Security grants showing up on +sharing08:39
wgranthttps://bugs.launchpad.net/launchpad/+bug/104331908:39
_mup_Bug #1043319: UnusedSharingPolicyPruner doesn't preserve permitted access policies <disclosure> <qa-ok> <regression> <sharing> <Launchpad itself:Fix Released by wgrant> < https://launchpad.net/bugs/1043319 >08:39
wallyworld_yes08:39
wallyworld_ah right, that one08:40
wallyworld_affected landscape08:40
wgrantRight08:40
wgrantAnd will have affected lots of non-commercial projects08:40
wgrantMostly by deleting their Private policies08:40
wgrantI suspect08:40
wallyworld_do we know how many commercial projects still have sharing policies needing to be set?08:40
wgrant540 or so08:40
wallyworld_because all public projects should have been updated via garbo job08:40
wgrant583, sorry08:41
wgrantyeah08:41
wgranthttps://pastebin.canonical.com/73308/08:41
wgrantAll public projects should have been, yes08:41
wgrantIs it in hourly? Can't remember08:41
wgrantBut it won't matter after tomorrow, as they'll be created pre-configured08:41
wallyworld_houry08:41
wallyworld_wgrant: so it would be considered failsafe just to update those commercial projects to policy = proprietary08:42
wallyworld_id the owners don't do anythiong08:42
wgrantRight08:42
wallyworld_can't wait for that so we can nuke bvp :-)08:43
wgrantIt's likely to cause a few people to be unable to push branches08:43
wgrantYes :)08:43
wallyworld_well, it will be a good way to shake things out :-)08:43
wallyworld_because the pushers will complain to get access and the owners will have to get things correctly configured :-)08:44
wgrantyep08:44
* wallyworld_ hears a cork pop. mmmm. tasty drink time08:45
wgrantheh08:45
jelmerjam1: mgz and I have made some progress, I'm about to chuck it into ec2 again08:45
lifelessjam1: did you see my replies ?08:45
jam1lifeless: yeah08:45
lifelessjam1: kk08:45
wallyworld_wgrant: so, fdt soon08:45
wgrantwallyworld_: yup, double patch, and hopefully about 7 seconds08:45
=== jam1 is now known as jam
wgrantBut this is the first super-short one08:45
wgrantSo will be interesting08:45
jamlifeless: thanks.08:46
wallyworld_excellent. i want to land the followup devel branch :-)08:46
=== ev_ is now known as ev
=== mpt_ is now known as mpt
=== al-maisan is now known as almaisan-away
dpmhey all, could somebody help me with an issue I believe to be with the LP API? I'm trying to create language packs for Q, and the process is failing to download static translations from LP through the API. I hit a similar issue a few weeks ago when trying to build the 12.04.1 language packs, which wgrant and others helped to solve. I'm wondering if it's the same issue again. The tool that makes the API call is langpack-o-matic, running on a Canonical s10:39
dpmerver, could someone give me a hand debugging this and getting the langpack to build?10:39
mgzdo you have irclog from that a few weeks ago and output for the failure now?10:48
dpmmgz, I can find the log, but the failure output is simply what langpack-o-matic outputs (basically interpreting "gzip: stdin: not in gzip format" in http://pastebin.ubuntu.com/1175572/ as "could not download file")10:51
dpmmgz, here's the IRC log from last time: http://pastebin.ubuntu.com/1175613/10:58
mgzdpm: so, we're presuming we got an error page rather than a .tar.gz10:59
mgzthat might be a timeout, but if it got bumped last time, it might not be. log doesn't have timestamps, but it didn't run any time around 10UTC did it?10:59
dpmmgz, it might have, let me check...11:01
dpmmgz, yeah, the script was started at 10:02UTC actually11:04
mgzhm, probably past the window11:05
dpmI'll try to re-run langpack-o-matic11:06
mgzbut logging the actual response code from urlretrieve and actually checking what is fetched is a tarball would help regardless11:06
mgzhow do you deploy code for this? can give you a patch for that quickly11:06
dpmmgz, MP on https://code.launchpad.net/~ubuntu-langpack/langpack-o-matic/, and I'll ping pitti as the maintainer about it11:08
dpmmgz, on http://bazaar.launchpad.net/~ubuntu-langpack/langpack-o-matic/main/view/head:/import#L21711:10
mgzheh, urllib seems to actually chuck the status code away...11:10
=== Pendulum_ is now known as Pendulum
=== gary_poster|away is now known as gary_poster
=== almaisan-away is now known as al-maisan
mgzdpm: did rerunning the script work?13:52
dpmmgz, it seems it did, yes13:52
mgzokay, I'll file bug and fix for the error handling. seems like you just don't want to run it near launchpad downtime.13:54
dpmyeah, I'll try to remember that :) thanks mgz14:11
cjohnstonHey guys... on bug #1035661 Its fix released.. It's still effecting me (screenshot attached). should I open a new bug or reopen that bug?14:16
_mup_Bug #1035661: group membership expire date "self renewal" can not be set: "Wrong Type" <disclosure> <regression> <sharing> <Launchpad itself:Fix Released by sinzui> < https://launchpad.net/bugs/1035661 >14:16
=== al-maisan is now known as almaisan-away
=== jcsackett changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On call reviewer: jcsackett | Firefighting: - | Critical bugs: 4.0*10^2
=== dpm is now known as dpm-laptop
=== dpm-laptop is now known as dpm
=== frankban_ is now known as frankban
=== deryck is now known as deryck[lunch]
=== matsubara-lunch is now known as matsubara
=== deryck[lunch] is now known as deryck
abentleyrick_h_: Do you know how to debug "extend failed, verify dependencies"?18:06
rick_h_abentley: it's a tough one, usually I comment out all objects/extend() in the file and open them up one by one18:07
rick_h_to find the missing dep18:07
abentleyrick_h_: The file has no objects.  It's all functions.  So I'm assuming one of the dependencies, itself, is broken.18:09
rick_h_abentley: try to run the YUI test layer and see if one of them blow up to hint?18:10
abentleyrick_h_: I guess I can try.  I don't think any other files have been changed.18:12
rick_h_abentley:  xvfb-run ./bin/test -x -cvv --layer=YUITestLayer  should run pretty quick18:12
abentleyrick_h_: Only failure was in my file.18:14
rick_h_abentley: can you pastebin and I can look for anything that jumps out ?18:14
abentleyrick_h_: The source file itself?18:15
rick_h_abentley: yea, the file with the error18:15
abentleyrick_h_: http://pastebin.ubuntu.com/1176379/18:16
rick_h_abentley: lazr.choiceedit does that still existing? I thought it was killed18:21
rick_h_I wonder if including that requirement is causing it to fail, check the build/js/meta.js18:21
abentleyrick_h_: It still existing.  at build/js/lp/app/choiceedit/choiceedit.js18:21
rick_h_ah ok. There's some work on killing lazr and I don't see that module used in your code18:22
abentleyrick_h_: It provides Y.ChoiceSource.18:22
rick_h_yea, see it. Is the branch pushed up to check out?18:25
rick_h_nothing jumps out in there, but wonder if it's the used location18:26
rick_h_is this in a test file? is the test file YUI() vs YUI?18:26
abentleyrick_h_: branch is at ~abentley/launchpad/blueprint-info-type-ui and up-to-date.18:31
abentleyrick_h_: The test runs fail with "extend failed, verify dependencies", but only if information_types.js includes lp.app.choice.18:32
abentleys/includes/requires18:32
rick_h_abentley: in test_information_type.html it's including information_type.js from the build directory, but then also including it via ../information_type.js18:36
abentleyrick_h_: Ah, that's got it.18:37
abentleyrick_h_: Human error while merging.18:37
rick_h_cool18:37
=== almaisan-away is now known as al-maisan
abentleyrick_h_: Thanks very much.18:38
=== al-maisan is now known as almaisan-away
abentleyjcsackett: Could you take a look at https://code.launchpad.net/~abentley/launchpad/blueprint-info-type-ui/+merge/122140?  Sorry it's a bit long.20:31
jcsackettabentley: sure.20:37
jcsackettabentley: r=me, but some comments about QA on the MP.21:09
jcsackettinformation_type_choice has been a hotbed of accidental breakages, so it's worth your time to double check things that seem somewhat redundant. :-P21:09
=== jcsackett changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On call reviewer: - | Firefighting: - | Critical bugs: 4.0*10^2
wgrantwallyworld_: I think your AP changes have caused a sampledata conflict with db-devel? Could you have a look at that soonish before PQM spams us to death, please?23:13
wallyworld_sure23:14
wallyworld_but i didn't change sample data? i guess there's a constraint violation23:14
wgrantHm23:14
wgrantMaybe it's not your fault, then23:14
wgrantI thought you might have prepopulated sampledata23:14
wallyworld_noooo23:15
wgrantMight just be fallout from my merge, then23:15
* wgrant fixes23:15
wgrantProbably related to the reverted reverted reversion23:15
wallyworld_bb is ok, did you see it locally?23:15
wgrantPQM's failing to merge23:16
wgrantAnyway, fixing23:16
wgrantIt's indeed a criss-cross from the mismerge23:17
StevenKAh, I was about to look at that.23:18
wgrantStevenK: How'd your AP creation branch go in ec2 last night?23:18
StevenKwgrant: 4 failures, I'm starting to peer at them now.23:19
wgrantIf you fix them in a few minutes then we can massacre buildbot and deploy them today23:20
StevenKBut, oh, no pressure. :-)23:20
StevenKHah23:21
StevenKwgrant: Hah. All four failures are caused by factory.makeLegacyProduct(licenses=[License.OTHER_PROPRIETARY]) and then having the bugs forced to USERDATA23:27
wgrantStevenK: Ah, right. Maybe have makeLegacyProduct set them to PUBLIC and then unset them23:29
wgrantto ensure the APs exist23:29
StevenKWhy? The whole reason they don't get set is because setB{ranch,ug}SharingPolicy says oh, License.OTHER_PROPRIERAY, here, have PROPRIETARY only23:30
wgrantStevenK: Not for a legacy product23:31
wgrantLicense.OTHER_PROPRIETARY is handled by createProduct23:31
wgrantto set the sharing policies to PROPRIETARY23:31
wgrantmakeLegacyProduct then unsets them, to get the old behaviour23:32
wgrantBut it relies on the fact that the USERDATA/PRIVATESECURITY APs will exist already, because they did until your branch23:32
wgrantNow you'll need to create them by either calling _ensurePolicies directly, or setBugSharingPolicy(PUBLIC) before setting it to None23:32
StevenKYeah, I get it now.23:33
wgrant(IIRC the tests that use makeLegacyProduct with License.OTHER_PROPRIETARY are testing that owners can set private_bugs if there's a commercial sub?)23:33
Laneyis there a way to delete a packageset?23:36
Laneyvia API23:36
cjwatsonNot even sure there's one internally23:40
wgrantThere isn't one23:40
wgrantEasy enough to add and expose if someone wants to23:40
Laneyhmm23:42
LaneyThis causes me to reconsider how much we care about doing this23:42
Laneyvs, say, deleting all the uploaders and leaving them23:42
cjwatsonIt'd be about one hour to develop, test, and write up the MP, I suspect23:43
wgrantAgreed, just have to check that all the permissions are gone, basically23:44
StevenKwgrant: Test failures fixed, pushing now.23:45
StevenKBranch is now +023:45
wgrant:)23:45
Laneypossibly could be something to do on the train on Saturday morning23:46
StevenKwgrant: r1589023:51

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