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

StevenKwgrant: Do I have to drop indicies that reference a column before dropping it or will Postgres just deal?00:46
wgrantStevenK: postgres will drop any indices that involve the column00:46
wgrantStevenK: This can sometimes be undesirable, in the case of compound indices00:46
wgrantSo be careful00:46
StevenKproduct is fine, just a partial index, no compounds00:47
StevenKdistribution is also fine, one index, no compounds00:48
wgrantStevenK: Right01:10
StevenKwgrant: make newsampledata seems to ignore the column drop01:20
wgrantStevenK: You've applied the patch to launchpad_dev and launchpad_ftest_playground?01:21
StevenKHmm, my apply ... didn't.01:23
* StevenK stabs it harder01:23
wgrantStevenK: Fail01:30
wgrantStevenK: Instead of subscribing the security contact or the maintainer, you now unconditionally subscribe the maintainer01:30
wgrantThat block should go01:30
wgrantBoth of them01:30
wgrant1121+ getattr(info, 'bug_supervisor_tasks').append(value)01:31
wgrantThat can be simplified01:31
StevenKwgrant: http://pastebin.ubuntu.com/1160033/01:35
wgrantwhat the driver01:36
wgrantOh01:36
wgrantThat's during the transition01:36
wgrantHm01:36
wgrantI think that diff is correct01:38
wgrantBut I was never a fan of the unsubscription rules01:38
StevenKwgrant: Thanks, I've commited and pushed that bit01:43
* StevenK stabs the branch scanner for being terrible02:12
StevenKDear branch scanner, DIAF.02:32
StevenKwgrant: Is https://code.launchpad.net/~stevenk/launchpad/db-destroy-security-contact cursed?02:47
wgrantStevenK: Let me consult with my colleagues02:48
wgrantStevenK: The spirits have indeed placed a curse upon it02:49
wgrantRename and repush02:49
* StevenK sacrifies wallyworld to the branch scanner.02:56
wallyworldno not me, i've also had the same issues02:56
wallyworldso i vote to sacrifice wgrant02:56
StevenKHe's useful to have around.02:56
wallyworldbut he's a young virgin and the gods like those02:57
StevenKROFL02:57
wallyworldquotes page :-D02:57
StevenKwallyworld: It looks like threatning to sacrifice you was enough02:58
wallyworldyay02:58
wgrantHeh02:59
wgrantStevenK: Did you create an early MP or subscription or anything on that branch?02:59
wgrantBefore it had first scanned?03:00
StevenKwgrant: Nope03:00
wgrant:(03:00
StevenKI didn't touch it for fear of a curse.03:00
StevenKAnd it got cursed anyway03:00
StevenKwgrant: Hahahaha04:29
StevenKwgrant: You added POLICY_ALLOWED_TYPES to code/model/branchnamespace.py for branches and bugs/interfaces/bugtarget.py for bugs.04:30
wgrantStevenK: Is that a problem?04:31
wgrantTheir meanings are different04:31
wgrantAnd they were private until you came along04:31
StevenKwgrant: I was amused at the model vs interface split04:33
wgrantAh, right04:33
wgrantI wasn't quite sure where to put the latter04:33
wgrantSince it's not used by model.bugtarget04:33
wgrantBut by the things that inherit it04:33
wgrantWhereas for BranchNamespace it's only used by that class and tests.04:34
StevenKAnd now a garbo job04:34
=== almaisan-away is now known as al-maisan
StevenKwallyworld_, wgrant: https://code.launchpad.net/~stevenk/launchpad/remove-unused-sharing-garbo/+merge/12069805:24
wgrantStevenK: The RAM, oh god, the RAM05:26
wallyworld_StevenK: just running out for school pickup, can look when i get back05:26
StevenKwgrant: What do you think we should do to get the used or even better, the unused APs?05:44
wgrantStevenK: You could search for artifacts for each and use is_empty05:45
wgrantMeans a couple of extra queries05:45
wgrantBut meh05:45
StevenKIsn't apas = getUtility(IAccessPolicyArtifactSource).findByPolicy(05:55
StevenKAlready doing so?05:55
StevenKAnd looping over it is bad?05:56
wgrantStevenK: That's finding all the APAs, not just the APAs' distinct policies05:58
wgrantlaunchpad_dogfood=# SELECT policy, COUNT(*) FROM accesspolicyartifact GROUP BY policy ORDER BY COUNT(*) DESC LIMIT 20;05:58
wgrant policy | count05:58
wgrant--------+-------05:58
wgrant    137 | 4559805:58
wgrant  68775 | 1023305:58
StevenKYeah, I see what you mean.05:59
StevenKwallyworld_, wgrant: https://code.launchpad.net/~stevenk/launchpad/moar-auditor/+merge/12070606:01
wgrantStevenK: Why's lp.services.auditor.server not in testing/fixtures/something?06:02
StevenKI was following txlongpoll's pattern06:02
wgrantStevenK: Antipattern06:10
StevenKStill06:11
StevenKwgrant: Back to the garbo job: http://pastebin.ubuntu.com/1160294/06:21
wgrantunused_aps = [ap for ap in candidate_aps if apa_source.findByPolicy([ap]).is_empty()]?06:26
StevenKwgrant: http://pastebin.ubuntu.com/1160307/06:38
wgrantStevenK: I'd tend to wrap just before the 'if' for cleanliness06:39
StevenKwgrant: http://pastebin.ubuntu.com/1160309/06:41
wgrantStevenK: Also, unless the two args to both get() calls don't fit on one line, please wrap before the first arg. But apart from that it looks excellent.06:42
wgrantAnd I'm glad access is no longer policing.06:42
StevenKwgrant: http://pastebin.ubuntu.com/1160312/06:43
StevenKYes, access made constable.06:43
StevenKwgrant: No opinion?06:57
wgrantStevenK: Looks good07:00
StevenKwgrant: Thanks, pushing it up.07:01
StevenKwgrant: Diff *finally* updated07:21
adeuringgood morning07:26
StevenKwgrant: No approval for me? :-(07:33
wgrantStevenK: Could you a docstring to the TunableLoop and perhaps some comments describing what it's doing and why?07:36
wgrantApart from that it's fine07:36
wgrantI accidentally the whole thing, but anyway07:37
=== mthaddon` is now known as mthaddon
cjwatsonSpads: Hi.  Since the DC move, we've been short all the dogfood.lp builders, and rather a lot of Launchpad revisions are now blocked on a single revision that requires dogfood build QA.  There's been some insinuation that we might be able to get king for a while, but I'm assuming that's non-trivial since it hasn't happened yet; is there any chance we might be able to temporarily steal a production PPA builder for the ...08:27
cjwatson... task?  It should only take maybe half an hour.08:27
cjwatsonErr, why did that end up on #lp-dev08:28
cjwatsonGiven that Spads isn't here08:28
* cjwatson moves to a cleverer channel08:28
BjornTis something wrong with qastaging? i get timeouts (OOPS-64204c86af12c8a1d8c6fa597795a531) and oopses (OOPS-307f7eabfe6fed73cfa46b6dbb3b21d5) all the time12:35
rick_h_BjornT: the db on there isn't primed up with requests and it times out a lot more often12:36
rick_h_BjornT: are you trying to qa something or just tinker with disposable data? There are some smaller projects that tend to work ok for testing purposes12:36
wgrantBjornT: Project group bug listings on qastaging... good luck with that12:37
wgrantThey're slow on production12:37
wgrantAnd not indexed well12:37
wgrantI'd try something else, or a very very small project group :)12:37
BjornTrick_h_: i'm trying out an api script of mine. i guess i could try on a smaller project. although, i get oopses just looking at bugs as well (OOPS-6bdbc2384d11ecd88e64f635d5162828)12:38
wgrantHm12:39
wgrantBjornT: Oh, that one's an OOPS, not a timeout12:39
wgrantqastaging lacks a DB patch12:39
czajkowskiwgrant: any update on the DB patch on qastaging ?12:40
=== abentley changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On call reviewer: abentley | Firefighting: - | Critical bugs: 4.0*10^2
rick_h_abentley: ping13:28
abentleyrick_h_: HI.13:28
deryckadeuring, abentley, rick_h_ -- hey there.  Everyone good to join now?13:44
rick_h_deryck: rgr13:45
adeuringderyck: sure13:45
abentleyderyck: yup13:45
=== al-maisan is now known as almaisan-away
=== cody-somerville_ is now known as cody-somerville
=== cody-somerville_ is now known as cody-somerville
sinzuijcsackett: I am having terrible connectivity issues15:31
sinzuijcsackett: can you rollback cjwatson's rev that blocks deployment: http://lpqateam.canonical.com/qa-reports/deployment-stable.html15:31
wgrantBjornT: qastaging has had the missing column added, so it should have stopped OOPSing. But I'm afraid there'll still be lots of timeouts15:34
mptHey, does the Launchpad code include a PPA picker in the same way that it has a person picker and a project picker?15:36
sinzuino15:37
sinzuimpt: no ppa-picker15:37
wgrantThere is actually a PPA picker15:37
wgrantIt's very basic15:37
sinzuiroe recipes?15:38
sinzuifor15:38
wgrantPrecisely.15:38
sinzuisorry, network and stress make my only tpy in Curtisese15:38
wgrantThe "Daily build archive" field on SourcePackageRecipe:+index uses it15:38
mptwgrant, basic in what way? That it lets you choose from only your own PPAs?15:40
wgrantmpt: And your teams'15:41
wgrantmpt: Without searching15:41
cjwatsonIs that the same as the terrible list drop-down on +copy-packages?15:41
wgrantcjwatson: It's arguably worse15:41
wgrantalthough it at least shows the actual name15:41
wgrantNot just the displayname15:41
wgrantBut it's paginated15:42
cjwatson(Which is ambiguous if displaynames ever collide across teams)15:42
wgrantAnd unsearchable15:42
mptwgrant, perfect. (For the purpose I'm thinking of, at least. Not necessarily Colin's.)15:42
cjwatson+copy-packages would be improved by having to toggle in the PPA name in octal15:42
wgrantIndeed15:42
wgrantIt's probably from back in the good old days when PPA names were immutable.15:42
cjwatson(Also, IIRC it defaults to the copy target being the same PPA and same series.)15:43
wgrant(although that still would have run into the duplicate person display name issue)15:43
=== salgado is now known as salgado-lunch
jcsackettsinzui: i can.15:45
sinzuithank you.15:45
sinzuiI am switching dns servers at this moment so I was not certain I missed your reply15:46
jcsackettsinzui: should it be marked qa-bad bad-commit &c?15:50
jcsackett(the bug on said rollback branch)15:51
sinzuijcsackett: yes, for our purposes15:51
jcsackettsinzui: ok.15:51
jcsacketti'll tag it as well.15:51
sinzuijcsackett: we cannot prove it is safe to release so we do not want it to go out with the sharing code15:52
jcsackettdig.15:53
jcsackettsinzui: two more things. do you want to look at the MP, or are you cool with rs=me, and do we know if a rollback of this branch is safe to bzr lp-land or does it need to play on ec2?15:57
cjwatsonShould be safe to lp-land.15:58
sinzuicjwatson: thank you15:58
cjwatsonNothing else since then has touched related code.15:58
sinzuijcsackett: use rs=you since cjwatson is the authority in this case15:59
jcsackettcjwatson: thanks.15:59
jcsackettsinzui: got it.15:59
jcsackettsinzui: it's off.16:08
sinzuithank you very much16:09
sinzuijcsackett: cjwatson: buildbot now sees my restore of rev 15823. I think everything is now good. I have some hope another branch will land in the next few hours to justify the  build we have queued in build bot.17:13
=== salgado-lunch is now known as salgado
cjwatsonPhew.17:15
=== almaisan-away is now known as al-maisan
abentleyderyck: I'm the OCR.  Do you have the time to review https://code.launchpad.net/~abentley/launchpad/upgrade-badly-stacked/+merge/120854 ?19:12
deryckabentley, sure19:13
deryckabentley, heh.  "I have a LOC credit of 1860."  Now you're just showing off there. ;)19:23
abentleyderyck: :-)19:23
sinzuiI believe wgrant is -26,000 LoC. I an -10,000 LoC since we started Disclosure19:50
sinzuiPS. The squad is as whole is +10,000 because of the new features19:50
elmois there a black market in LoC?19:52
elmoif not, should I file a bug about implementing one in LP itself?19:53
abentleyelmo: I can hook you up.  There's some code that I know is going obsolete soon :-)19:53
=== al-maisan is now known as almaisan-away
deryckIt's like a bunch of MMO gold farmers up in here.20:13
deryckabentley, r=me, looks good.20:13
abentleyderyck: thanks.20:13
sinzuifab, I was going to as if that branch needed a review20:18
=== jelmer is now known as Guest73241
=== jpds is now known as Guest81255
=== salgado is now known as salgado-brb
=== salgado-brb is now known as salgado
=== Guest73241 is now known as jelmer
StevenKwgrant: http://pastebin.ubuntu.com/1161748/22:57
StevenKwgrant, wallyworld: What kind of sanity check does reconcile_access_for_artifact need?23:46
wallyworldStevenK: when adding a new bug target, the target project may not have the relevant access policy defined23:47
wallyworldso a check needs to be done that pillar count == policy count (in simplistc terms)23:48
wallyworldwgrant says we should just raise an exception in that case23:48
StevenK>= surely23:48
wallyworldyes23:48
wallyworldother way round perhaps23:49
StevenKAh, no, we need to make sure that each pillar has an AP.23:49
StevenKAnd if no, croak23:49
wallyworldeach pillar needs to have an access policy for the relevant bug information type23:49
wgrantwallyworld, StevenK: I think an exact match is best23:55
wallyworldreason being?23:56
wgrantThere should be exactly one for each23:57
wgrantIf there isn't, something is wrong23:57
wgrantIf something's wrong, better to crash than corrupt23:57
wgrant(eg. a private junk branch is being transferred to a public team somehow)23:57
wallyworldok, be interesting to see how many times we need to raise an exception in practice23:58

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