arturadib / botio

Launch unit/regression tests directly from pull requests
http://documentup.com/arturadib/botio
112 stars 19 forks source link

Add option to cache main repo #1

Open lightsofapollo opened 12 years ago

lightsofapollo commented 12 years ago

For b2g/gaia we have a large repo. Would be nice to have an option to cache the main repo then do a git reset --hard && git clean && git pull origin master before merging PR branch into it.

lightsofapollo commented 12 years ago

Will submit a PR in the next week or so. Issue do I don't forget...

arturadib commented 12 years ago

that's a great idea, thanks James

lightsofapollo commented 12 years ago

OK how does this sound:

  1. new directory private/_master
  2. when we create the private/rev update private/_master (git pull origin master)
  3. cp private/_master to create private/$REV
  4. add remote, merge PR branch
  5. biz as usual

This should keep the _master is a completely clean slate at all times as we don't run any operatons on it just use it as a cache so we don't need to re-clone the repo each time.

If this sounds good I will go ahead and start on the PR.

arturadib commented 12 years ago

hi James, that sounds good.

would you mind testing that in production for a few days/weeks before we merge the PR? (ironically we don't have a test bot for Botio... :))

On Thu, May 31, 2012 at 5:50 PM, James Lal reply@reply.github.com wrote:

OK how does this sound:

  1. new directory private/_master
  2. when we create the private/rev update private/_master (git pull origin master)
  3. cp private/_master to create private/$REV
  4. add remote, merge PR branch
  5. biz as usual

This should keep the _master is a completely clean slate at all times as we don't run any operatons on it just use it as a cache so we don't need to re-clone the repo each time.

If this sounds good I will go ahead and start on the PR.


Reply to this email directly or view it on GitHub: https://github.com/arturadib/botio/issues/1#issuecomment-6048520

lightsofapollo commented 12 years ago

Yeah sounds good. I will work on a test environment as well.