/srv/irclogs.ubuntu.com/2015/03/10/#launchpad-dev.txt

cjwatsonHm, the oops linked from https://bugs.launchpad.net/launchpad/+bug/1429358 isn't making sense to me; that stuff *is* preloaded.  I wonder if we're running up against the Storm cache size?12:36
mupBug #1429358: Bugs with large numbers of linked branches time out <bug-branch-links> <oops> <timeout> <Launchpad itself:Triaged> <https://launchpad.net/bugs/1429358>12:36
wgrantcjwatson: That's not implausible. And even if we weren't we'd hit serious CPU time rendering all those branches.12:57
wgrantcjwatson: btw, that's possibly a dupe of bug #72402512:58
mupBug #724025: BugTask:+index timeout due to high cpu time rendering many bug tasks in bug 230350 <qa-ok> <timeout> <Launchpad itself:Triaged> <https://launchpad.net/bugs/724025>12:58
wgrantMay be worth closing 724025 in favour of it.12:58
wgrantcjwatson: I think all we can reasonably do it truncate the list of branches.12:59
wgrantIt's not as if a page that listed 700 branches would be particularly usable anyway.13:00
cjwatsonis it in fact that many?13:09
cjwatsonlaunchpad_dogfood=# select count(*) from bugbranch where bug=230350;13:09
cjwatson count13:09
cjwatson-------13:09
cjwatson    8413:09
cjwatson(1 row)13:09
wgrantOh, now that's a bit odd...13:10
wgrantcjwatson: Can you test with a larger cache size on DF?13:10
wgrantAh ahhahahahujfewuifweuohjiwfeuihjo13:11
wgrantcjwatson: It's the stacking security checker.13:11
wgrantWith the pathological stacking behaviour of branch-distro.py, which creates a chain a dozen branches long for these.13:12
wgrantcjwatson: Feel like writing a recursive CTE?13:12
cjwatsonYeah, bumping the storm cache size to 100000 on DF doesn't appear to change the query count.13:18
cjwatsonPossibly I should finish my ref scanner first :-)13:19
wgrantThe tracebacks confirm my diagnosis:13:19
wgrant  File "/srv/launchpad.net/production/launchpad-rev-17374/lib/lp/code/model/branch.py", line 1408, in visibleByUser13:19
wgrant    user, checked_branches)13:19
wgrant  File "/srv/launchpad.net/production/launchpad-rev-17374/lib/lp/code/model/branch.py", line 1408, in visibleByUser13:19
wgrant    user, checked_branches)13:19
cjwatsonI've been experimenting with a rhythm of misc maintenance in the morning, git development in the afternoon13:19
wgrant  File "/srv/launchpad.net/production/launchpad-rev-17374/lib/lp/code/model/branch.py", line 1408, in visibleByUser13:19
wgrant    user, checked_branches)13:19
wgrantetc13:19
wgrantOh yeah, it's your afternoon. I should probably sleep.13:20
cjwatsonBut don't want to get distracted by inflating morning tasks13:20
wgrantIndeed.13:20
cjwatsonSee you at the meeting then.  I should be on time - we had to cancel our guest-for-dinner due to Kirsten being ill13:21
wgrantUgh, that's unfortunate. See you then.13:21
wgrantcjwatson: btw, https://code.launchpad.net/~wgrant/launchpad/sca-api/+merge/252420 fixes one of the OLS issues, if you could look at that today.13:23
blrcjwatson: when running the tests, hosting_path appears to be an integer?21:09
blrfeel like I'm missing something fundamental that may require more coffee.21:10
cjwatsonblr: It's a stringified integer21:14
cjwatsonWe'll need something more sophisticated at some point, this was a "make it work" measure, we just stringify the id to get the hosting path21:14
cjwatson    def getInternalPath(self):21:14
cjwatson        """See `IGitRepository`."""21:14
cjwatson        # This may need to change later to improve support for sharding.21:14
cjwatson        return str(self.id)21:14
cjwatson(comment is an understatement)21:14
cjwatsonwgrant: argh I missed your comment from earlier21:15
* cjwatson looks21:15
blrcjwatson: I see, thanks21:15
cjwatsonwgrant: r=me, just minor things that looked a bit odd21:36
wgrantcjwatson: Thanks.21:47

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