On Wed, Mar 2, 2016 at 8:09 AM, sebb <seb...@gmail.com> wrote:
> Some of the code needs access to a single file in SVN, e.g.
>
> https://svn.apache.org/repos/asf/incubator/public/trunk/content/podlings.xml
>
> AFAIK there are no other items needed in the same part of SVN.
>
> Yet one has to checkout the parent directory and keep it updated.
>
> This is a nuisance for testing purposes.
>
> For SVN files that don't need authentication, it is easy enough to
> fetch the file using HTTP(S) and cache it locally. For subsequent
> requests, the cache date can be used in an If-Modified request.
> The last checked date can also be saved to avoid checking the file too often.
>
> This technique has been used in reporter.a.o for checking the chair
> index in foundation/index.mdtext:
>
> https://svn.apache.org/repos/asf/comdev/reporter.apache.org/trunk/scripts/parsepmcs.py
>
> Might be worth cosidering re-implementing the python caching code used there.

As very few of the resources accessed by whimsy are public, that would
only solve a small part of the problem.

Given that the resources needed are declared in
https://github.com/apache/whimsy/blob/master/repository.yml, perhaps a
more complete solution would be to use the 'svn:update' task defined
in https://github.com/apache/whimsy/blob/master/Rakefile#L66 ?

At the moment, that task is assuming that you do *NOT* override :svn:
in your .whimsy config file.  Perhaps it should handle that case?

- Sam Ruby

Reply via email to