/srv/irclogs.ubuntu.com/2012/07/02/#launchpad-dev.txt

wgrantcjwatson: Do you think your seriesless copy change is OK to deploy?01:28
cjwatsonI'm just trying it out01:29
cjwatsonIf I can bend dogfood to my will01:29
wgrantHeh01:29
cjwatsonHum, copying https://dogfood.launchpad.net/~cjwatson/+archive/openssh/+packages to https://dogfood.launchpad.net/~cjwatson/+archive/dogfood-copy-target/+packages not obviously successful01:31
cjwatsonOh, maybe copyPackages is just not set up for this to work01:32
wgrantcjwatson: What broke?01:32
cjwatsonYeah, it worked as far as it went but from_series=None is useless01:32
wgrantIt may uniqueify the sources.01:32
wgrantAh01:32
cjwatsonBut the to_series=None side of it worked fine01:32
cjwatsonLet's try +copy-packages then01:32
cjwatsonhttps://dogfood.launchpad.net/~cjwatson/+archive/dogfood-copy-target/+packages looks OK to me, libpipeline was copied with +copy-packages01:35
cjwatsonSo it's just the permission bug you spotted, which I think we thought was currently fairly academic because PPAs are all published to main and that's the most restrictive component for Ubuntu?01:36
wgrantIndeed, looks reasonable.01:36
cjwatsonThe only slight awkwardness with qa-oking that is that I attached the other branch to the same bug ... but I guess I can deal with that later01:37
cjwatsonmarked qa-ok for now anyway01:38
wgrantcjwatson: It'll revert to qa-needstesting once the next branch hits qastaging.01:38
cjwatsonYeah01:39
cjwatsonI'll do a bit more testing with the relaxed feature flags on dogfood tomorrow; I want to see whether the cause for soyuz.copypackageppa.enabled being off is still valid01:41
cjwatsonAFAICS there'd be no reason not to experimentally lower soyuz.derived_series.max_synchronous_syncs after this is deployed, but it will probably only get any meaningful use if we can also switch on soyuz.copypackageppa.enabled01:42
cjwatsonAt least for beta testers01:42
cjwatsonI can probably get the LibreOffice guys to try it ;-)01:43
* cjwatson goes back to bed, immediate duty done01:43
wgrantNight cjwatson, thanks.01:46
StevenKBleh, buildout is still convinced it wants 'django', but it's 'Django' :-(02:22
nigelbo_O LP depends on django now?02:22
mwhudsonStevenK: i have both Django and django in my versions.cfg :/02:24
StevenKHm, I think that actually worked.02:26
rick_h_wallyworld_: r=me with a few small picks02:55
rick_h_thanks for the updates!02:56
wallyworld_rick_h_: awesome, thanks for the detailed review02:56
rick_h_wallyworld_: yea, sorry for being picky, tring hard to take some ownership of the JS and help improve things so I appreciate the time to make the small improvements02:57
wallyworld_rick_h_: no need to apologise, our js is poor in many places02:57
wallyworld_so it's great you are doing this02:58
wallyworld_rick_h_: many of the things you picked up on were cargo culted so there's a lot to fix02:58
rick_h_wallyworld_: yea, trying to do a goold old fashioned line the in sand. :)02:59
rick_h_wallyworld_: cool, I know I hate when I get long reviews so and irc isn't the best so want to make sure things come across well02:59
wallyworld_well, we gotta start fixing somewhere/sometime, now is as good a time as any02:59
rick_h_with you and jcsackett and sinzui doing some awesome stuff I'm feeling there's hope03:00
wallyworld_well, it's getting better slowly, but there's a lot of code to fix, and way too much code without test coverage03:01
rick_h_yea, it's scary sometimes, but as long as it's getting better03:02
rick_h_and hopefully as things get cleaner they get easier03:02
wgrantHeh03:02
wgrantBug #800515 and bug #101645403:02
_mup_Bug #800515: Enable "NotAutomatic: yes" for -proposed <soyuz-publish> <Launchpad itself:Triaged> < https://launchpad.net/bugs/800515 >03:02
wgrantDupes filed a year to the day apart03:03
wallyworld_having standard templates really helps, but there's still a lot of inconsistancy in terms of patterns etc03:03
wgrant3 hours off, though :(03:03
rick_h_wallyworld_: yea, it is. I've talked with deryck and one of my goals for this next year to try to get a couple of really polished JS modules as the gold standard.03:03
rick_h_if you've got a question, refer to these kind of things03:03
rick_h_but anway, past my bed time, but I saw your review come up and I wanted to try to unblock you asap.03:04
wallyworld_rick_h_: we also have way too much code that just adds methods to a namespace instead of using widgets. i used widgets for the sharing stuff and it makes it sooo much easier03:04
wallyworld_rick_h_: thanks for reviewing and unblocking, i really apprciate it03:04
rick_h_right, exactly. Widgets/Plugins, and I'm working on getting YUI 3.5 which adds Views03:04
wallyworld_\o/or 3.5, can't wait03:05
rick_h_so looking forward to doing a real View containing several Widgets03:05
wallyworld_s/or/for03:05
wallyworld_yeah, mvc03:05
rick_h_yea, gotten through all the code in app/blueprint/bugs and onto the code module03:05
rick_h_I'll have an email in the morning with the work/hits so far.03:05
rick_h_and probably turning on the combo loader for all this week unless osmeone brings up a blocker03:05
wallyworld_looking forward to it03:06
rick_h_so I'm pushing hard for 3.5 sooner vs later03:06
rick_h_anyway, wheee03:06
rick_h_night03:06
wallyworld_awesome03:06
wallyworld_goofnight03:06
lifelesswgrant: care to update the disklessarchives diagram ?03:18
wgrantlifeless: Have you finished your edits?03:22
lifelessI believe so03:23
lifelessit was slow on saving was all03:23
StevenKwgrant: How do you feel about reviewing https://code.launchpad.net/~stevenk/launchpad/auditor-layer/+merge/112962 ?04:49
wgrantStevenK: That looks pretty vile04:59
wgrantShouldn't we not be testing against the real thing?04:59
wgrantHow is its DB managed?04:59
wgrantetc04:59
StevenKReal thing, as in production auditor?05:01
StevenKAs this is an established pattern for at least longpoll05:02
wgrantOne pre-SOA service does not an SOA pattern make.05:02
StevenKThat ^ was the plan that lifeless and I agreed on at least.05:04
lifelesswgrant: your double negative has confused me, can you rephrase ?05:09
wgrantlifeless: I thought the SOA guidelines said to test against a (network) fake.05:09
wgrantNot the real DB-backed service.05:10
lifelesswgrant: yes, which sqlite is ~= too05:10
lifelesswgrant: in memory sqlite that is05:10
StevenKNot sure if the default config of auditor is in-memory, but that can be fixed.05:10
lifelesswgrant: I agree its not as lean as a reimplementation with no django at all, for instance, but its certainly fitting the spirit of the SOA, that it should be cheap to spin up, config-free etc.05:11
wgrantIf it's throw-away SQLite, then sure :)05:12
wgrantlifeless: The reference implementation shouldn't have Django at all either, but I think I lost that argument...05:13
lifelesswgrant: my understanding is that it is, or will be.05:13
lifelessI kindof think that that config should be in the fixture itself, to reduce the window for surprise, but for now its ok, I think.05:13
StevenKwgrant: So it's still vile, or you're refusing to deal with the MP? :-P05:35
StevenKwgrant: https://code.launchpad.net/~stevenk/launchpad/populate-branch-aag/+merge/112264 should be easy to review06:26
adeuringgood morning07:38
jam1can anyone help quickly with a testing question?07:40
jam1I have a test that does "login('email@address')" and I'd like to change it to use 'with person_logged_in(...)'07:40
jam1however the context manager takes a user object, not an email.07:40
jam1how does one get one of those from an email address07:40
=== jam1 is now known as jam
lifelessjam: there is a test helper module with consants07:43
lifelessjam: there is also a context manager that can deal with emails, I think07:43
lifelessjam: but the specific answer is PersonSet.find(email), IIRC.07:43
jamlifeless: there is admin_logged_in, anonymous_* celebrity_* and person_*07:44
wgrantjam: Which test?07:45
jamwgrant: I'm converting a doctest to a unittest07:45
wgrantAn email address is usually a sign that it's doing something horribly wrong.07:45
wgrantWhich address?07:45
jamwgrant: https://code.launchpad.net/~jameinel/launchpad/py27-xmlrpc-auth-1019292/+merge/11279207:46
jamwgrant: it is just trying to assert that the XMLRPC api is using a different user than whatever the current context is07:46
wgrantadmin_logged_in is correct there.07:46
wgrantOh07:46
wgrantHm07:46
wgrantIt's using foo.bar, but just as some random user. That's a bit odd.07:47
lifelessfubared07:47
wgrantSince foo.bar is an admin, it's a bit silly to use it to test that it's something arbitrary user07:47
wgrantJust create a new one07:47
wgrantself.factory.makePerson()07:47
wgrantUse that07:47
lifelessjam: general rules of thumb:07:49
lifeless - using existing admins is ok but not brillirant07:49
jamwgrant: ObjectFactory has no attribute makePerson07:50
lifeless - using existing persons is generally a bad idea as it ties you to sample data07:50
lifeless - better to bring up just what you need from scratch using the helpers07:50
lifelessjam: on developer LOC credit; the idea is to shrink, not stay static :)07:58
wgrantjam: It does so...08:01
wgrantlifeless: Creating new people frequently has major test suite performance implications, so I introduced admin_logged_in which always uses an existing one.08:02
lifelessperhaps wrong test base class?08:02
wgrantBut in this case it's just one, and it's meant to be an arbitrary person, so makePerson is correct.08:02
lifelesswgrant: yes, I know - tis a workaround though.08:02
=== almaisan-away is now known as al-maisan
=== al-maisan is now known as almaisan-away
StevenKwgrant: Can I have your attention now? :-)08:09
czajkowskimorning08:09
wgrantStevenK: Indeed, sorry, let me see08:12
wgrant64+ branch_to_artifact = dict([(artifact.branch_id, artifact)08:13
wgrant65+ for artifact in artifacts])08:13
wgranttsk08:13
wgrantbad linebreak is bad08:13
StevenKwgrant: What would you recommend?08:14
wgrantStevenK: http://www.python.org/dev/peps/pep-0008/#indentation08:18
wgrantStevenK: Convention is to say:08:18
wgrant    dict(08:18
wgrant        [(artifact.branch_id, artifact) for artifact in artifacts])08:18
wgrant    branch_to_artifact = dict(08:18
wgrant        [(artifact.branch_id, artifact) for artifact in artifacts])08:18
wgrantThat's the one.08:19
stubAnd you can probably drop the square brackets08:20
StevenKIt's a list comphresion in a dict() call08:21
wgrantStevenK: A generator expression in a dict() call should work just as well08:21
StevenKwgrant: I've pushed up a change08:27
wgrantStevenK: Thanks, r=me08:32
Laneyhttps://code.launchpad.net/~laney/launchpad/db-proposed-not-automatic-pre-release/+merge/112134 updated; could somebody review/land?09:10
mgzjam: using `nohup bin/test -vvv >~/test_out.log 2>~/test_err.log &` seems good09:43
lifelessmgz: testr run :>09:49
mgztestr was introducing subunit borkédness09:51
jamlifeless: that doesn't give any progress feedback (vs tee), etc. And yeah, subunit had some 2.7 issues (skip tests would cause broken stream)09:51
jamI think gmb fixed that with a newer zope.testing, though.09:52
gmbYep. The dependency update should be landing in LP devel today.09:52
jamgmb: I think it already did. At least, ISTR failing to start the test suite because it couldn't find a new enough zope.testing. Though maybe that was an unrelated zope.testing change09:53
gmbO.o09:53
gmbjam, devel still has p15, the 2.7 stuff is p16.09:53
gmbI think09:53
* gmb checks09:53
gmbjam, Yes, Still on p15 in devel.09:54
gmbp16 will be on its way to ec2 shortly09:54
jamgmb: probably devel rev 15470 which bumped it to r15. That was about 1.5weeks ago, but the checkout on my desktop was a bit old09:58
lifelessjam: ah, true enough10:04
lifelessjam: subunit itself should be 2.7 safe; been using it for months on 2.710:04
jamlifeless: yeah, zope.testing didn't handle skips, and in 2.6 unittest didn't support them either. So testtools passed them through as success.10:05
jamIn 2.7, unittest gets an 'addSkip' which wasn't getting sent on to the subunit stream10:05
lifelessah10:05
lifelesswin ;>10:05
jamso you would see the test start10:05
jambut not ever finish10:05
jmlperhaps stopTest should emit some kind of warning if that happens.10:06
jamjml: would have probably made tracking down the failure easier10:08
=== matsubara is now known as matsubara-afk
=== benji changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On call reviewer: benji | Firefighting: - | Critical bugs: 4.0*10^2
=== almaisan-away is now known as al-maisan
=== al-maisan is now known as almaisan-away
rick_h_adeuring: ivory https://plus.google.com/hangouts/_/ef4e3eeb2016cc8910d1dc31949a0597da77f5f0?authuser=0&hl=en-US13:31
rick_h_benji: can you take a peek when you get a chance please? https://code.launchpad.net/~rharding/launchpad/code_yui35_one/+merge/11303114:04
benjirick_h_: sure14:04
mgzhm, test for js stuff hung at:14:38
mgzwrite(2, "\n(test:2741): Gdk-CRITICAL **: g"..., 1014:38
mgzpresumably related to not having X running14:39
* mgz kills the layer14:39
jelmermgz: you might want to run inside of xvfb-run14:41
mgzpresumably, will try that when the run completes14:42
rick_h_mgz: yea, I had to do that with running tests in lxc14:55
jammgz:  lp.translations.tests.test_translationtemplatesbuildbehavior.TestTranslationTemplatesBuildBehavior.test_updateBuild_WAITING_notarballERROR:root:Slave returned no filemap.14:57
jamERROR:root:Build produced no tarball.14:57
jamFailure in test lp.soyuz.tests.test_packageupload.PackageUploadTestCase.test_realiseUpload_for_delayed_copies14:58
jammgz: ^^14:58
mgzjam: also lp.services.mail.tests.test_stub.test_simple_sendmail15:01
mgzagain email header wrapping15:02
mgzFailed example: message['X-Generated-By']15:02
mgzExpected: 'Launchpad (canonical.com); Revision="1999";\n\tInstance="launchpad-lazr.conf"'15:02
mgzGot: 'Launchpad (canonical.com); Revision="1999";\n Instance="launchpad-lazr.conf"'15:02
mgzslightly different doctest issue in lib/lp/services/webapp/doc/test_adapter.txt15:03
ivorysinzui: could you take a look at this? https://code.launchpad.net/~ivo-kracht/launchpad/bug-1013281/+merge/11306215:06
mgzthat last one is trivial, is a threading.Event object, and new in Python 2.7 returns the internal flag object rather than None15:06
sinzuithank you ivory. Do you want me to land this?15:11
ivorysinzui: adeuring will do it but thank you nevertheless15:14
mgzTotal duration of test run 18883.5 seconds.15:16
jelmerbenji: Thanks for the review!15:23
benjijelmer: my pleasure15:24
Laneybenji: could you help me to land https://code.launchpad.net/~laney/launchpad/db-proposed-not-automatic-pre-release/+merge/112134 please?15:25
benjiLaney: sure; how can I help?  "ec2 land" it?15:25
LaneyI don't know the commands you guys run :P15:25
LaneyI guess that's the one :)15:26
benjihmm, given that there is a DB change, I'll have to refresh my memory on the right way to handle that15:27
cjwatsonec2 land works for db-devel15:28
cjwatsonShouldn't require anything especially special15:28
cjwatson(The branch is targeted correctly)15:29
benjiyep, the target looks good; I'm firing off a job now15:30
Laneyta15:31
benjiLaney: the MP needs a commit message and then I'll try again.15:41
Laneybenji: there15:42
=== Ursinha_ is now known as Guest65630
benjiLaney: PQM doesn't like newlines in commit messages.  I have removed them and submitted.  The EC2 instance is starting now.15:59
Laneybenji: OK. So it's just the "short description" it wants then, for future reference?16:00
benjiLaney: I don't know of a prescribed guideline.  I like your commit message as-is.16:00
Laneywell I usually try to keep the first line under 72ish when writing them16:01
=== salgado is now known as salgado-lunch
=== matsubara-afk is now known as matsubara
=== salgado-lunch is now known as salgado
cjwatsonbenji: I have a couple of split-outs from queue-api up for review to start with; do those look like a more reasonable level of granularity?17:10
benjicjwatson: I'll take a look.17:11
cjwatsonI'm still juggling branches locally to find the next thing to separate17:11
cjwatsonProbably the read-only bits of the webservice exports17:13
sinzuiczajkowski, test-system failures are critical, not low. Lp's mailman installation is brittle, we cannot tolerate missing test coverage17:27
benjicjwatson: looking good; the only thing I spotted was some extra parens (details in the comment)17:31
mgzsinzui: I had some luck poking things with mailman, manually creating parent directories makes tests pass, but then oddly the buildmailman.py in make starts failing from not having any lists17:46
mgzdoes buildmailman.py just need fixing to be better about creating needed directories and tolerating different state?17:46
sinzuimgz, I think it needs fixing for the lxc case. Mailman always has at least one list. There is a control list that out code must discount. if it was not created, Mailman goes tits up17:47
sinzuimgz, Other developers have reported problems were /tmp/var/mailman was not created properly, so I think this is an old issue17:48
mgzdid seem odd no one else had run into problems, I'll dig a bit further and see where I get17:51
benjigary_poster: indeed17:57
cjwatsonbenji: ta18:29
=== matsubara is now known as matsubara-afk
mgzokay, that's all the remaining py27 things I've logged as having issues, though didn't get complete run due to mailman and X issues20:16
rick_h_jcsackett: ping, if you remove the renderUI in the extending class does it still work right? You shouldn't need it since it's not doing anything extra?21:17
rick_h_jcsackett: r=me with the two notes.21:27
=== salgado is now known as salgado-afk
sinzuiStevenK, wallyworld_, jcsackett https://dev.launchpad.net/Projects/Disclosure22:14
sinzuihttps://bugs.launchpad.net/launchpad/+bugs?field.tag=disclosure+privacy-transitions&field.tags_combinator=ALL22:21
sinzuihttps://bugs.launchpad.net/launchpad/+bugs?field.tag=disclosure+information-type&field.tags_combinator=ALL22:33
=== wgrant is now known as Guest78124
=== Guest78124 is now known as wgrant_
wgrant_Grar22:36
StevenKHaha22:37
wgrant_This 3G is so slow I'm not actually sure it's 3G at all22:37
StevenKHahahaha, Optus 3G22:38
wgrant_No mobile coverage is very good around here :)22:39
=== benji changed the topic of #launchpad-dev to: http://dev.launchpad.net/ | On call reviewer: - | Firefighting: - | Critical bugs: 4.0*10^2
wgrant_ooh23:51
wgrant_flashing lights23:51
wgrant_maybe they have fixed it23:51
lifelesswgrant: where are you ?23:52
wgrantlifeless: Some HFC fault took the entire street's phone and Internet out from about 4am until 90 seconds ago.23:53
lifelesswgrant: \o/23:55
StevenKwgrant: Six hour outage. Pretty short for Optus.23:56
wgrantApparently their monitoring sucks enough that I was the first to report it, at around 8:10.23:56

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