Trouble with Launchpad...
Martin Pool
mbp at canonical.com
Wed Jun 30 02:07:55 BST 2010
On 30 June 2010 01:36, John Arbash Meinel <john at arbash-meinel.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> John Szakmeister wrote:
>> This probably isn't the right forum, but I don't have access to IRC
>> right now. I tried viewing the NEWS file in bzr using this link (it's
>> the "browse source code" link on the code page), and it's been failing
>> since last night:
>> <http://bazaar.launchpad.net/~bzr-pqm/bzr/bzr.dev/annotate/head:/NEWS>
>>
>> -John
>>
>>
>
> So:
> http://bazaar.launchpad.net/~bzr-pqm/bzr/bzr.dev/annotate/head:/bzr
>
> Works. I'm guessing that NEWS is failing just because NEWS is a really
> big and really old file (lots of history, lots of text to annotate).
>
> I count 6060 changes to NEWS, and it is a 473kB file. Digging a bit, it
> accounts for 6.2MB of compressed content, and 1.37GB of uncompressed
> content.
>
> 'bzr annotate NEWS > /dev/null' takes 37.5s. And I think that is longer
> than the timeout on Loggerhead.
>
> I believe there is already an open bug that we should allow you to have
> a way to get the content of a file without having to request its annotation.
>
> Anyway, I don't know if you used to be able to do this, but I wouldn't
> be surprised if the annotate view of NEWS has never worked.
>
> I would say you could use the 'download' link, but it appears that
> requires knowing the file-id.
>
> http://bazaar.launchpad.net/~bzr-pqm/bzr/bzr.dev/download/head:/NEWS-20050323055033-4e00b5db738777ff/NEWS
There are a couple of things we can do here beyond speeding up and
caching annotations. I think there are already Loggerhead bugs for
them:
* don't show annotations if the person just wants to see the content
of the file
* load the text first then load the annotations through asynchronous javascript
* as John mentioned above, just have a predictable URL for the
current version of a file
<https://bugs.edge.launchpad.net/loggerhead/+bug/322295>
* give a better message if we do fail
--
Martin
More information about the bazaar
mailing list