/srv/irclogs.ubuntu.com/2010/11/07/#launchpad-dev.txt

=== e1th0r is now known as salchichon
=== salchichon is now known as e1th0r
=== e1th0r is now known as salchichon
=== salchichon is now known as ROLLOECARNE
=== ROLLOECARNE is now known as TUBOECARNE
lifeless=== Top 10 Time Out Counts by Page ID ===04:57
lifeless    Hard / Soft  Page ID04:57
lifeless     270 /   12  Archive:EntryResource:getBuildSummariesForSourceIds04:57
lifeless     151 /   43  Person:+commentedbugs04:57
lifeless      75 /  269  CodeImportSchedulerApplication:CodeImportSchedulerAPI04:57
lifeless      58 /  230  BugTask:+index04:57
lifeless      10 /  265  Distribution:+bugs04:57
lifeless       7 /   63  Archive:+packages04:57
lifeless       7 /    7  ProjectGroup:+milestones04:57
lifeless       6 /   62  MaloneApplication:+bugs04:57
lifeless       6 /    9  Archive:+copy-packages04:57
lifeless       5 /    1  BugTask:+editstatus-page04:57
thumperlifeless: no mailing list ones :)04:57
lifelessbecause we raised the timeout04:58
lifelesshard_timeoutpageid:MailingListApplication:MailingListAPIView61700004:59
lifelesshttps://launchpad.net/+feature-rules04:59
thumper:(05:01
thumperI thought my fix would have fixed that05:01
thumperlifeless: it isn't in the top 10 statement counts any more05:01
lifelessthats good05:02
thumperlifeless: worth checking, but we should be able to get rid of that exception05:02
lifelessit may be that we can remove ... yeah05:02
lifelesssee what the ppr shows05:02
thumpercheck tomorrow05:02
* thumper agrees05:02
thumperlifeless: I am a little upset though, I was hoping it whould have made some of the code import scheduler ones go away05:03
thumperbut not05:03
thumpers/not/no05:03
lifelessthumper: https://devpad.canonical.com/~stub/ppr/lpnet/latest-daily-pageids.html05:04
lifelessthumper: it looks like its peaking at 10s now05:04
lifelessthumper: so improved - yes.05:05
thumperI'm guessing it is a different call that is peaking05:05
lifelessthumper: I think the big thing is getting it off of the one machine.05:05
thumperhence my desire for the method to be included in the pageid05:05
lifelessthumper: about 0.01% of calls I'd say05:05
thumperFailed to discover an OpenID server?05:05
lifelessthumper: I agree, definitely doit05:05
lifelessthumper: hmmm, I saw that the other day05:05
lifelessI think SSO is having trouble of some sort05:05
* thumper feels a bid sad that he is on a work channel on Sunday afternoon :-|05:06
* thumper leaves05:06
lifelessmorning17:28
thumpermorning20:59
wallyworldmorning21:05
thumperwallyworld: hi, I'm just moving, we can have a chat after that if you like21:08
thumperwallyworld: or do you have kid stuff to do?21:08
wallyworldthumper: i have school drop off in 30 minutes; that will tale 20 minutes or so; i can ping you when i'm back?21:09
thumperyep21:09
thumperttyl21:09
lifelessany soyuz folk around ?21:39
wgrantlifeless: Hi.21:46
lifelesshi21:50
lifelessso I'm fixing the timeout21:50
lifelessArchivePublication injects itself into the code path for getBuilds21:50
lifelessand this makes things slow.21:50
lifelessthere is a test that this works21:50
lifelessbut its being done 'to make things fast' - oh, the irony.21:50
wgrantIt makes things slow?21:50
wgrantNice.21:50
wgrantHow is it making things slow?21:50
lifelessthe API doesn't use ArchivePublication21:51
lifelesshttps://bugs.launchpad.net/soyuz/+bug/66252321:51
_mup_Bug #662523: Archive:EntryResource:getBuildSummariesForSourceIds times out <timeout> <Soyuz:Triaged> <https://launchpad.net/bugs/662523>21:51
wgrantAh, the API timeout, I see.21:51
lifelessso, I'm wondering whether, when the core is fast, if that delegate is still needed21:51
lifelessor if I need to support the injection (hacky) because other layers will be impacted21:51
lifelessI'm groupifying the code21:51
wgrantWhere's the injection?21:51
lifelessgimme a minute to get the test passing and I'll push so you can see21:52
lifelesslib/lp/soyuz/adapters/archivesourcepublication.py21:52
lifelessgetStatusSummaryForBuilds21:52
wgrantAhh, I see.21:52
wgrantIt should be fast enough if you rewrite it. It's only there to cache getBuilds and getUnpublishedBuilds.21:53
lifelessUsing saved push location: lp:~lifeless/launchpad/getBuildSummariesForSourceIds21:56
lifelessrev 11878 should be there now21:57
thumperwallyworld: you back?22:13
wallyworldthumper: yep22:17
thumperwallyworld: shall we mumble?22:17
wallyworldalready logged in22:17
lifelessaahhhhhhhhhh22:54
wgrantWhat have you fixed?22:55
lifelessgetBuildStatusSummariesForSourceIdsAndArchive calls getBuildsForSourceIds and getUnpublishedBuilds22:55
lifelessgetUnpublishedBuilds calls getBuildsForSourceIds22:55
lifelessoh22:56
lifelessand did I mention that we do a (potentially -huge-) set difference in python? :last line of getUnpublishedBuildsForSources22:56
wgrantlifeless: That .difference is a Storm operation.22:58
wgrantIt's done in SQL.22:58
lifelessok, thats a relief.22:59
lifelessBut it totally sucks that you can't tel.22:59
lifeless*tell*22:59
wgrantI only know because I looked at the SQL and saw the EXCEPT.22:59
lifelessso22:59
lifelesswe *still* end up doing the same thing twice23:00
lifelessexcept more of its on the db server23:00
lifelessI'll batch that up23:00
wgrantGreat.23:00
lifelessand then call and end to this branch23:00
wgrantI might be able to look at it after Thursday.23:02
lifelessthat would be sweet.23:06
lifelessI think it will be approximately constant queries now23:06
lifelessthough I haven't reached the activation energy to write a test for that23:06
wgrantExcellent.23:06
lifelessI've just been refactoring as I read stuff23:06
wgrantIt's very easy to get carried away refactoring in Soyuz...23:06
lifelessthe core query is still going ot be slow (8.4 regression)23:06
lifelessI'd really like to see:23:07
lifeless - the adapter nuked23:07
wgrantNow that we're more allowed to cache in model objects, sure.23:07
lifeless - only one retrieval of the spph's (vs twice in my branch (or 3N in trunk))23:07
lifelesswgrant: caching isn't needed23:07
lifelesswgrant: you can cache, but its not what was needed23:08
wgrantArchiveSourcePackageRelease may still be needed.23:08
lifelesssure23:08
lifelesstheres a lot of refactoring to do23:08
lifelessmany single object methods to nuke23:08
wgrantI wonder if we should strongly encourage query count tests for new APIs and views.23:10
lifelesscertainly23:12
lifelessif you're writing something new, a query count test at the start is an awesome idea.23:12
lifelesshttps://code.launchpad.net/~lifeless/launchpad/getBuildSummariesForSourceIds/+merge/40298 if you're interested in this branch23:13
wgrantI was just looking for it.23:13
wgrantAny chance you could ec2 https://code.edge.launchpad.net/~wgrant/launchpad/destroy-distroseries-lucilleconfig/+merge/38648? PQM testfix-rejected it twice last week.23:13
lifelesswhat flags23:14
lifelessoh23:14
lifelesswe're in testfix right now23:14
lifelesswhat are the odds23:14
wgrantAwesome.23:14
lifeless38 mins to go23:15
lifelessthat should have the fix from sinzui23:15
wgrantAh, sinzui's fix still hasn't made it through?23:15
wgrantRight.23:15
lifelessso23:15
lifelesswhat flags do you want?23:15
lifeless--no-qa?23:15
wgrant--no-qa was what was used last time.23:15
wgrantSo sounds good.23:15
lifelessok, kicked it off23:16
wgrantThanks.23:16
lifelessde nada23:16
lifelessjelmer: when you get up; https://bugs.launchpad.net/soyuz/+bug/669676 still needs qa, and its blocking further deployments.23:20
wgrantIt's easy enough to QA that on qastaging like we did last week.23:23
lifelessa bit more involved23:24
lifelessgiven we're looking for race conditions23:24
lifelessanyhow, we'll be only 4 days back once we deploy up to it23:25
wgrantHm.23:27
wgrantI think that has a bug.23:28
wgrantYeah, it looks like it has the same bug that r11812 fixed.23:29

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