/srv/irclogs.ubuntu.com/2010/12/24/#launchpad-dev.txt

wgrantNow it's time to play everyone's favourite game: "work out how to run that untested Soyuz script that probably hasn't run outside cocoplum for 5 years."00:01
lifelesswgrant: archive:+index is still slow :(00:26
lifelesswgrant: 5K > 10 seconds00:26
lifelessyesterday00:26
wgrantlifeless: Yeah.00:31
wgrantlifeless: I can probably get it down slightly by removing the remaining couple of duplicate queries.00:31
wgrantBut the main issue is that the remaining queries are slow.00:31
wgrantNeeds a stub.00:31
=== jelmer is now known as Guest82858
lifelesswgrant: if he starts while you're still working today, you could ask him about it01:18
lifelessI think I pointed him at it already, he may have some ideas01:18
wgrantlifeless: I will hopefully not be around much this evening.01:28
wgrantBut I will poke him if our hours intersect.01:28
=== Ursinha is now known as Ursinha-afk
LPCIBotProject db-devel build (252): STILL FAILING in 3 hr 32 min: https://hudson.wedontsleep.org/job/db-devel/252/01:59
lifeless=== Top 10 Time Out Counts by Page ID ===02:09
lifeless    Hard / Soft  Page ID02:09
lifeless      33 /  189  BugTask:+index02:09
lifeless      15 /  358  Distribution:+bugs02:09
lifeless      14 /    2  Archive:+copy-packages02:09
lifeless       9 /    0  Bug:EntryResource:markUserAffected02:09
lifeless       8 / 3280  Archive:+index02:09
lifeless       8 /    3  ProjectGroup:+milestones02:09
lifeless       5 /  392  Distribution:+bugtarget-portlet-bugfilters-stats02:09
lifeless       5 /    8  NullBugTask:+index02:09
lifeless       4 /   92  ProjectGroupSet:CollectionResource:#project_groups02:09
lifeless       4 /   62  MailingListApplication:MailingListAPIView02:09
LPCIBotProject devel build (338): STILL FAILING in 3 hr 12 min: https://hudson.wedontsleep.org/job/devel/338/02:27
LPCIBotLaunchpad Patch Queue Manager: [r=sinzui][ui=none][bug=579502] Do not send bug email to distro owner02:27
LPCIBotif the distro does not use Lauchpad for bugs.02:27
=== rockstar` is now known as rockstar
LPCIBotProject db-devel build (253): STILL FAILING in 3 hr 11 min: https://hudson.wedontsleep.org/job/db-devel/253/05:10
LPCIBotLaunchpad Patch Queue Manager: [rs=buildbot-poller] automatic merge from stable. Revisions: 1214405:10
LPCIBotincluded.05:10
stubAnyone know where the code that pulls launchpadlib doctests into the testsuite lives?08:15
lifelesswhats the path of one of these doctests?08:18
stubeggs/launchpadlib-1.6.5-py2.6.egg/launchpadlib/docs/hosted-files.txt08:52
stubnm though08:52
stubGenuine problem, not an issue with the setup environment08:52
stubOr maybe not... *sigh*09:07
stubCan we make the current config_fixture a global?09:11
stubLibrarianFixture is useless without a ConfigFixture. This will pretty much always be BaseLayer.config_fixture. I don't want to use BaseLayer.config_fixture as the default, because that is going circular.09:12
stubLooking at explicitly passing it in now - not sure how many call sites there are.09:13
stubHmm... add_section modifies the generated config, but there is no way of popping those changes...09:23
stubMaybe would have been better to use the standard push/pop on the config and just get it to write new config files and update LPCONFIG so push/pop also work with subprocesses.09:24
jmlhelloall10:13
jmlmy space bar isn't responding as well as I would like.10:14
jmlanyone around today?10:16
jelmer_'morning jml10:17
jmljelmer_: hi10:17
jelmer_it's very quiet here and on the mailing list today10:18
jmlI'll bet.10:20
jmlI'm tackling distributionmirror_prober, trying to make it more like a normal twisted script10:22
jmlso that it leaks resources less10:22
jmlhas anyone got a recent subunit log of the full test suite that I could borrow?10:49
jmlahh, glory. StevenK's hudson builder has the full output10:54
lifelessstub: yes, that probably would be better11:07
lifelessstub: given that there was no concept of keeping the necessary fragments, I felt it might be too high a bar to reach in a reasonable timeframe, so I opted for a separate, lesser interface11:07
lifelessstub: the main config system being hugely complex.11:08
lifelessstub: I'm interested (but not right now) in why you need to pop stuff out, but certainly you could add that.11:08
stubSo launchpadlib (and old-testing.txt) don't use layers. LaunchpadServerFixture.setUp() doesn't setup everything ready for use. You still need to add the new stanzas to the config, and invoke ConfigUseFixture. I've added the config_fixture as a parameter to LaunchpadServerFixture, and am about to make that also invoke ConfigUseFixture. Which pretty much means ConfigUseFixture is unnecessary, and its functionality moved to ConfigFixture.add_sectio11:10
stublifeless: push/pop is more a purity thing. At the moment, a test (or set of tests) that modify the config leave things in a different state than they started.11:11
lifelessok11:11
lifelessthat sounds plausible11:11
lifelessby which I mean - you've clearly looked at it, and nothing there contradicts the overall arch I was working on11:12
lifeless(AFAICT at this distance)11:12
lifelessstub: I'd like to nuke layers11:12
StevenKAnd I'd like to nuke buildbot, but nothing seems to be happening there11:12
lifelessstub: but I need to finish the reuse-optimisation support for fixtures + glue them to testresources which has ordering-optimisations.11:12
stubSure. Tree has never suited us.11:12
jmlI still don't get why push/pop require names11:29
lifelessjml: hysterical rasins11:30
jmllifeless: yeah, but I remember asking about it when the functionality was first added and not getting a clear answer.11:31
lifelessI think the custom config stuff was engineered with requirements different to our needs.11:31
jmlalso, do you know what's awesome? threads.11:31
lifelessjml: its safer in doctests because they don't [in general] have cleanups11:31
lifelessand here, gnight all11:33
jmllifeless: g'night.11:34
stubjml: Its to make sure you pop what you think you are popping11:36
stubjml: Otherwise, if code forgets to pop a config later pops succeed and your errors end up in entirely the wrong place.11:36
jmlstub: hmm.11:38
jmllooks like initializing a LaunchpadScript causes bzr functions in the same process to dump to stderr.12:08
stubjml: That is supposed to be silenced in lib/lp_sitecustomize.py - not sure where the magic that includes that is (buildout.cfg mentions it)12:36
stubjml: oh... parts/scripts/sitecustomize.py12:37
jmlstub: interesting.12:37
* jml manually copy-pastes those bits into a minimal test case12:38
jmlstub: doesn't work. c.l.scripts.logger blats all over it.12:38
jmlit adds an INFO-level log handler to the root logger12:38
jmlso everything logged at INFO level is printed to stderr12:39
stubYes, but the bzr logger should dev null events and not propagate them.12:39
stubHmm... which we don't seem to be doing12:40
stubUnless NullHandler does the magic12:40
jmlback12:44
jmlbut stub is gone12:44
jmloh well.12:44
jmlI think this just leaves lazr.smtptest "No handler" complaints.13:03
jml(which I have no idea how to address)13:06
jmlanyway, off for lunch13:07
jelmerbon appetit13:08
* jelmer follows13:12
jmlback again14:43
LPCIBotProject devel build (339): STILL FAILING in 3 hr 33 min: https://hudson.wedontsleep.org/job/devel/339/14:57
jmlanyone want to review my branch?15:37
jmlno behaviour changes, just moves some code around.15:37
jelmerjml: Sure15:39
jmljelmer: https://code.launchpad.net/~jml/launchpad/distribution-mirror-prober/+merge/4465615:39
jmlreally starting to hate Python logging.15:56
jelmerjml: At least it *has* a standard mechanism for logging15:59
jelmerunlike C where every library has its own custom thing, with different log level names, callbacks, etc15:59
jmlyeah16:00
jmlI guess that's a good thing16:00
jmlbtw16:02
jmlalways be careful when constructing a LaunchpadCronScript in a test16:02
jmlif you do it wrong, it'll call sys.exit16:02
jelmerOuch16:02
jelmerI bet that can be a bit of a surprise, especially if the output is redirected to something that doesn't go to the terminal.16:03
jmlsomething is changing the log level too.16:13
jelmerthat reminds me..16:17
jelmerwe added a log handler a couple of months ago that automatically logs OOPSes on Logger.error and Logger.warning.16:17
jmlyes.16:18
jelmerdoing so for warnings isn't really consistent given our policy of treating all OOPSes as high priority bugs IMHO16:18
jelmers/given/with/16:18
jmlyeah, quite possibly16:20
jmlhttps://bugs.launchpad.net/launchpad/+bug/69414016:49
_mup_Bug #694140: canonical.launchpad.scripts.logger magic breaks bzr logging <Launchpad itself:New> < https://launchpad.net/bugs/694140 >16:49
jelmerjml: You're creating an old style class in distributionmirror_prober.py16:55
jmljelmer: hah. so I am.16:55
jelmerjml: Actually, you're not. the __metaclass__ assignment is just in an unusual place.16:56
jmleasy enough to move16:57
jelmerjml: It would be nice to have a couple more docstrings - for example, it isn't obvious to me that the "notify_owner" argument to mirror() means notifying the owner when their mirror is disabled17:00
jmljelmer: fair enough17:03
jelmerjml: Other than that I'd be happy to +1 it17:04
jmljelmer: thanks.17:08
jmljelmer: I've pushed up changes.17:08
jelmerjml: r=me17:17
lifelesshappy thingy,world17:18
lifelessjelmer:  on logging -> oopses17:19
lifelessjelmer: if someone should read it, its worth oopsing17:19
lifelessjelmer: is the logic that was followed, and I think that thats reasonable17:19
jelmerlifeless: I agree, but that doesn't mean it's necessarily a high level bug.17:19
jelmers/level/priority/17:19
lifelessjelmer: the question then is 'what logging level means "someone should read it".' ?17:20
lifelessjelmer: actually, I think it is17:20
lifelessoperational problems drown us out at the moment, and that will only get better once we're on top of it.17:21
jelmerlifeless: it doesn't help if we just end up with lots of high priority bugs because of this.17:22
lifelessjelmer: its been active for a month or more now, and we haven't been flooded.17:22
jelmerlifeless: some calls to Logger.warning have been changed to Logger.info17:22
lifelessjelmer: and, if we end up fixing lots of production glitchy things because of it, then I argue it would help.17:22
lifelessjelmer: yes, I saw, and thought those were appropriate choices17:23
lifelessjelmer: *because* they were things which really didn't need action taken17:23
jelmerlifeless: hmm17:30
jelmerlifeless: This makes it harder to distinguish between informational messages and things that look odd but can occur (what I would use warning for)17:32
lifelessso, ignore logging for a second17:34
lifelessas a framework17:34
lifelesswe have something running somewhere, with no ui17:34
lifelesswe have a facility you can output high-volume debug stuff that will by default go nowhere17:35
lifelessa facility that will be logged and you can read on disk17:35
lifelessand a facility that will generate an OOPS17:35
lifelessis this insufficient?17:35
lifelessthe first facility is for performance reasons - we can't afford to grab everything every time17:37
jelmerWith the way we currently handle OOPS reports and logs on disk, somewhat.17:37
jelmerthere is no way for something to trigger attention by a human without causing a high level bug report.17:38
lifelessthe second for stuff that we can afford to gather, for helping with bug analysis etc, but which doesn't require an action17:38
lifelessand the third thing is for triggering human attention17:38
lifelessjelmer: well, if its not *high* it will sit there and be ignored, based on current stats, for a year or more17:38
lifelessjelmer: 'needs human attention sometime in 2012' isn't a very useful signal IMO17:39
lifelessI gotta run. sorry!17:40
jelmerlifeless: Merry christmas, ttyl!17:40
* jelmer is about to EOD, shops close at 7 today apparantly :-/17:41
jelmerjml: Merry christmas!17:43
jmlhttps://bugs.launchpad.net/launchpad/+bug/69415217:44
_mup_Bug #694152: LaunchpadScript constructor breaks logging for subsequent tests <Launchpad itself:New> < https://launchpad.net/bugs/694152 >17:44
jmloh17:46
jmlI think https://bugs.launchpad.net/launchpad/+bug/694140 is also why lazr.smtptest keeps generating warnings about no handlers17:47
_mup_Bug #694140: canonical.launchpad.scripts.logger magic breaks bzr logging <Launchpad itself:New> < https://launchpad.net/bugs/694140 >17:47
jmllifeless: merry Christmas. You should sleep more :)17:49
jmlGood night all.18:39
jmlMerry Christmas.18:39
LPCIBotProject db-devel build (254): STILL FAILING in 3 hr 32 min: https://hudson.wedontsleep.org/job/db-devel/254/19:28
LPCIBotProject devel build (340): STILL FAILING in 3 hr 31 min: https://hudson.wedontsleep.org/job/devel/340/20:28
=== Ursinha-afk is now known as Ursinha
=== Ursinha is now known as Ursinha-afk
LPCIBotProject devel build (341): STILL FAILING in 3 hr 11 min: https://hudson.wedontsleep.org/job/devel/341/23:39
LPCIBot* Launchpad Patch Queue Manager: [r=allenap][ui=none][bug=435316] Add tests to make sure Binary: lines23:39
LPCIBotwith newlines are supported in sync_source.23:39
LPCIBot* Launchpad Patch Queue Manager: [r=bac, jcsackett][ui=sinzui][bug=440406,23:39
LPCIBot560701] Help with alternate language usage. List languages on a23:39
LPCIBotpersons translation dashboard.23:39

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