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

wgrantBlah, smartmeter installation00:00
wgrantNo power for an hour00:00
wallyworldyou have solar?00:01
wgrantNo00:01
wallyworldi only got my smart meter because i got solar00:01
wgrantThey're replacing them nation-wide eventually. And state-wide now00:01
bigjoolswgrant is going to feel like he's had an arm cut off with no interwebs00:29
* StevenK peers at Jenkins00:36
wallyworldwgrant: StevenK: +7/-4 https://code.launchpad.net/~wallyworld/launchpad/edit-sharing-policies-1040336/+merge/12089400:43
StevenKYou can't keep but add lines :-P00:43
wallyworldi know :-(00:44
wallyworldlittle choice here though00:44
StevenKwallyworld: r=me, with one thing to keep in mind.00:47
* wallyworld looks00:47
wallyworldthanks00:47
wallyworldStevenK: i looked at the other choice source popups which have descriptions (there are only a few on bugtask), and they are all ok00:48
StevenKwgrant: BAH, tharwted by your factory.makeBug(target=) rather than product=01:17
wgrantStevenK: Oh?01:31
StevenKwgrant: Muscle prompted makeBug(product=product)01:34
StevenKMuscle memory, rather01:34
* wallyworld needs to go buy coffee. !caffeine === bad01:53
bigjoolssee you in 5 :)01:54
StevenKHmmm, wasn't test_getAllPermissions_constant_query_count failing about a week ago?02:46
wgrantStevenK: Yes03:24
StevenKwgrant: It failed in my destruction of security_contact with 19 != 2003:42
wgrantHmm03:44
StevenKHmm, it may not be failing locally.03:47
StevenKwgrant: I can paste the query log from the ec2 failure if you wish.03:48
wgrantProbably spurious03:56
wgrantLand :)03:56
StevenKwgrant: Hmmm, I may have introduced an unintended change.03:59
StevenKI think that the bug supervisor will be subscribed to private bugs.03:59
StevenKEr, PRIVATESECURITY bugs03:59
wgrantThat would be bad03:59
StevenKRight, the bug supervisor is subscribed to PRIVATESECURITY bugs if the pillar has private_bugs.04:02
StevenKStill bad?04:02
wgrantIf it's a regression, yes.04:04
wgrantBut it might not be04:04
StevenKwgrant: In createBug it used to be if information_type in SECURITY_RELATED, grab security_contact, else if pillar.private_bugs, grab the bug_supervisor04:06
wgrantHum hum04:07
wgrantI'd restore the old behaviour04:08
wgrantSubscribe the supervisor if pillar.private_bugs and it's not in SECURITY_RELATED04:08
StevenKRIght04:08
StevenKwgrant: xx-upstream-bug-privacy.txt is also dumb. I had to change it from name12 to name16 because name12 was no longer subscribed04:18
=== almaisan-away is now known as al-maisan
=== al-maisan is now known as almaisan-away
StevenKwallyworld, wgrant: https://code.launchpad.net/~stevenk/launchpad/sanity-for-rafa/+merge/12091205:03
wallyworldStevenK: i think it looks ok. i think we want a business exception rather than a ValueError though05:06
wallyworldactually, the logic may be a bit out05:07
wallyworldah, no, ok05:08
StevenKwallyworld: Happy to do so, I just couldn't think of a name, so went for ValueError05:11
wallyworldyeah, i'm not sure if we have one already05:11
StevenKraise SharingViolation("wgrant is very displeased with you.")05:12
wallyworldit's more a SharingIntegrityError perhaps?05:12
StevenKwgrant: ^05:14
wgrantI think an assertionerror is probably correct05:16
wgrantIt's not a valueerror or typeerror05:16
wgrantsomething is just broken05:16
wgrantIt certainly doesn't deserve its own Exception subclass05:16
wgrantIt'll hopefully never happen05:17
StevenKOh, then I'll just assert05:17
wgrantNo05:17
wgrantDo not just assert05:17
wgrantRaise AssertionError05:17
wgrantasserts are skipped sometimes, eg if running optimised05:17
wgrantWhich we don't but still05:17
wgrantWe prefer to raise AssertionError explicitly for important sanity checks, I believe05:17
wallyworldStevenK: i should have asked this up front sorry - could we include the info type in the message? not sure if we want to list the pillar names also?05:26
StevenKHmmm05:27
StevenKJust trying to figure out how to phrase it05:28
wgrantraise AssertionError("oh shit") :)05:28
StevenK        raise AssertionError("All pillars require access policies.")05:28
wallyworldIt's more for us so we can look into the problem easier05:28
StevenKWhich is what I have now.05:28
wgrantRight05:29
wgrantSo a list of pillars and APs might be useful05:29
wallyworldThese pillars (ccc, xxx, ccc) required access policies for information type xxxx but do not have one05:29
wallyworlds/required/require05:29
wallyworldor something05:29
StevenKWell, I don't know which one is missing, I just know one is.05:29
wallyworldyou can figure out which one(s)05:30
wallyworldthe returned polices have pillars05:30
wallyworldand compare that to the pillars parameter05:30
StevenKwallyworld: http://pastebin.ubuntu.com/1162099/05:45
=== almaisan-away is now known as al-maisan
wallyworldStevenK: look good. perhaps  ", ".join(...05:47
StevenKwallyworld: http://pastebin.ubuntu.com/1162104/05:47
wallyworldStevenK: great, thanks for the changes. +1 from me05:47
StevenKwallyworld: Pushing it up now, since I got distracted.05:56
wallyworldthat's ok, i already +105:56
StevenKYeah, I just saw, thanks.05:56
=== al-maisan is now known as almaisan-away
adeuringgood morning07:44
=== almaisan-away is now known as al-maisan
cjwatsonStevenK: I thought I'd testfixed test_getAllPermissions_constant_query_count.08:29
cjwatsonStevenK: Try sticking an extra list(self.main_archive.getAllPermissions()) before the record_two_runs call and see if that tickles it into appearing locally.08:29
StevenKcjwatson: So far, I'm ignoring it hoping that buildbot doesn't get infected.08:31
cjwatsonThe previous failure depended on test ordering.08:33
cjwatsonI'll be away for the next week, so your problem to fix it if it breaks. :-P08:33
czajkowskiheh08:34
czajkowskicjwatson: random non LP question.  when I plug my laptop into charge, it does start to charge, however the screen brightness doesnt change, if I reboot machine it picks this up, any ideas ?08:37
cjwatsonNo idea.  Not a kernel guy08:38
czajkowskicjwatson: you're also not a LP guy either but know a fair deal, so just thought I'd chance my arm :)08:38
cjwatsonThe kernel is a total blind spot for me08:38
bigjoolsczajkowski: check to see if the acpi events are picked up in scripts in /etc/acpi/08:52
bigjoolsnight all08:52
czajkowskibigjools: nn08:52
czajkowskiwill do08:52
=== al-maisan is now known as almaisan-away
=== almaisan-away is now known as al-maisan
=== Guest81255 is now known as jpds
=== jcsackett changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On call reviewer: jcsackett | Firefighting: - | Critical bugs: 4.0*10^2
=== al-maisan is now known as almaisan-away
=== almaisan-away is now known as al-maisan
sinzuisorry wallyworld. I see you have discovered that anything that adds a reference to the Person table require code to manage merges13:58
rick_h_deryck: abentley adeuring I forgot to ask int he stand up, any JS issues? Thinking of flipping 3.5.1 for ~launchpad?14:00
abentleyrick_h_: I haven't noticed any issues.14:00
adeuringrick_h_: i haven't noticed any14:00
deryckrick_h_none that I've found14:00
rick_h_ok thanks14:01
rick_h_deryck: any reason to hold off on increasing the range on the FF then?14:01
rick_h_I think we've been on it 1.5wk14:01
deryckrick_h_no, I think it's safe.  flacoste, any concerns about turning lp on to yuk 3.5 for everyone on launchpad?14:02
deryckyui rather14:02
sinzuideryck: JFDI. We can always change the flag if we are proven wrong14:03
derycksinzui, ah, good advice.  Thanks :)14:04
deryckrick_h_^^14:04
* sinzui wishes how could say the same about sharing flags14:04
rick_h_ok, will do14:04
sinzuijcsackett: once again fate pulls the chair out from under sharing14:14
jcsackettsinzui: oh no.14:15
sinzuijcsackett: Lp still does not permit structural subscriptions on ubuntu. It is not possible for the security team to subscribe to private security in ubuntu14:15
jcsackettsinzui: can we rectify that? what is/was the reason for no structsubs on ubuntu?14:17
sinzuiI have hacked a url: https://bugs.launchpad.net/ubuntu/+subscriptions14:17
jcsackettsinzui: so it's possible, we just don't have the UI in place?14:20
sinzuijcsackett: I do not have permission to compete the change14:21
jcsackettsinzui: ah, yes. i just did that same experiment.14:21
sinzuiSo the question, is, If a webops did that, can he select the ubuntu-security, and can he save14:21
sinzuiWell, I will try this in a dev instance to verify if the security contact role role can create its own subscription14:23
sinzuithen I will try admin14:23
sinzuithen I will ponder the value of going on immediate vacation14:23
* jcsackett laughs14:27
sinzuibugger. Dev permits anyone to subscribe to ubuntu14:27
sinzuiUbuntu is configured different;y in production14:27
jcsackettoh goody.14:27
flacostederyck: +1 to what sinzui said14:35
sinzuigary_poster: benji: gmb: bac: can any of you remember what controls/blocks structural subscriptions on Ubuntu? Alas our own stories in dev show it can be done. I think a config option is preventing me (well I want ubuntu-security team) from creating a subscription to all private security bugs in Ubuntu14:38
=== al-maisan is now known as almaisan-away
gary_postersinzui, I don't but maybe if I tried to duplicate what you want to do it would ring a bell.14:40
sinzuigary_poster: there is not link to subscribe to bug on ubuntu. not on the front page or on the bugs page. I can hack the url https://bugs.launchpad.net/ubuntu/+subscriptions and I can say what I want, but I get permission denied on save14:42
sinzuihttp://people.canonical.com/~curtis/configure-ubuntu-security-notifications.png14:42
* benji hears bells far, far in the distance.14:43
gary_postersinzui, I duped.  ISTR something hard coded about subscribing to all ubuntu bugs. I don't think we touched it, and I could be making it up.  IOW, I'm not much help.14:45
sinzuigary_poster: Indeed that is what I thought...but our dev instance lets me do it. I think I will try API or SQL to prevent ubuntu-security from getting a regression14:45
wgrantsinzui: Looks like you need to be in the bug supervisor14:46
wgrant        if IDistribution.providedBy(self) and self.bug_supervisor is not None:14:46
wgrant            if subscriber is None or subscribed_by is None:14:46
wgrant                return False14:46
wgrant            elif (subscriber != self.bug_supervisor14:46
wgrant                and not subscriber.inTeam(self.bug_supervisor)14:46
wgrant                and not subscribed_by.inTeam(admins)):14:46
sinzuiah, thank you14:46
wgrant                return False14:46
wgrantOh, not just you, but the subscriber14:46
wgrantI suspect an admin will have to do it through the API14:46
wgrantExcept ubuntu-security is in ~ubuntu-bugcontrol14:47
sinzuifab14:47
wgrantSo an ~ubuntu-security admin can probably do it14:47
sinzuiThey can do it.14:47
sinzuiI will show them my picture of what I recommend14:47
jcsackettsinzui: so we can pick the chair pack up for sharing?14:49
sinzuijcsackett: anyone with a clear head actually. wallyworld set a pre-emptive testfix to rollback a bad revision in db-devel. But since buildbot was running, it was ignored. Do I want to force a build to land a trivial testfix change to make the buildbot restart15:15
jcsackettsinzui: i think so, yes. i mean, right now db-devel buildbot isn't running, right?15:17
sinzuinot running15:17
sinzui^ jcsackett does forcing a build pul the latest revision? if not I want to land a trivial testfix change to poke buildbot15:29
jcsackettsinzui: i think you're right. forcing doesn't pull, it just restarts the known build.15:29
sinzuiokay. I will find a trivial text change to act as the test fix.15:29
sinzuiflacoste: Do you approve enabling writable sharing for everyone in production? https://pastebin.canonical.com/72918/15:43
flacostesinzui: of course!15:43
sinzuiThis is just a formality15:43
sinzuiflacoste: sharing is one for everyone. I am making change to /launchpad now to repeat my qastaging activities to very all is well15:58
flacoste\o/15:59
sinzuiha, yes, I can finally get rid of all the deactivated user and structural subscription spies on ~launchpad's projects16:03
lifelesssinzui: congrats16:04
sinzuiwtf? lifeless baby alarm go off?16:05
sinzuiI think I could celebrate by writing a api script that will share with a team, then unshare with the team members to cleanup any project's shares16:06
lifelesssinzui: lifeless' alarm baby went off16:09
lifelessIts like a baby alarm but organic.16:09
sinzui:016:13
sinzui:)16:13
cody-somervilleWhat is the 'findReferencedOOPS' API call on projects about?19:44
=== almaisan-away is now known as al-maisan
=== al-maisan is now known as almaisan-away
lifelesscody-somerville: it finds reference OOPS.21:09
lifelesscody-somerville: OOPS that are not referenced are gcable by oops-tools.21:09
lifelessif we had a generic fast RE engine across all project content, that method could go.21:10
cody-somervillelifeless, What does it mean for an OOPS to be 'referenced' in this context though? I didn't think Launchpad itself stored information about OOPs?21:13
lifelessIf the text OOPS-123456 etc is in a text field in an asset relevant to the project.21:14
cody-somervilleah, ok. So if someone mentions an OOPS in, for example, a bug report?21:15
lifelessyes21:16
lifelessoops.c.c sees I dunno, 40/50K per day21:17
lifelesswe toss most21:17
lifelessones folk put in bugs we keep21:17
lifelesswe keep them long enough for short term datamining21:17
lifelessjust long term we toss21:17
lifelessafter (IIRC) 5 days21:17
cody-somervilleOk, Cool.21:18
sinzuidoes anyone know if there is a team representing former canonical staff?21:42
sinzuiI have written a script that shares a project with a team, the revokes the direct access for the team members so that it is easy convert from subscriptions to shares21:45
jcsackettsinzui: https://code.launchpad.net/~jcsackett/launchpad/kill-lazr-1/+merge/12107922:07
=== jcsackett changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On call reviewer: - | Firefighting: - | Critical bugs: 4.0*10^2
lifelesssinzui: there is22:12
lifelesshttp://lmgtfy.com/?q=launchpad+not+canonical :P22:14
=== Ursinha` is now known as Ursinha
sinzuithank you lifeless22:21
* mwhudson learns from that about a couple of people who've left...22:21
cjwatsonnot-canonical includes people who never were22:36

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