I'm curious as to what Integrity users are doing to disk their disk usage down. Just ran into an issue where our Integrity server on EC2 just used up all its disk space. After investigation, its because the build directory was full. It's hard to believe that there isn't an option to purge old builds inside Integrity already, especially considering that it does a full clone of the repository each time instead of just doing a reset and pull on the same repos for each new build. So, what are people doing to keep this clean? Anyone already have some CRON scripts or something written to purge out old builds? - Craig
Hi Craig Like most people, I'd guess, I'm ignoring the issue at the moment and will probably panic look at it when it goes tits up :-) I am interested, it wouldn't be that much work to write a function into the integrity app itself would it? Fancy forking one off and starting work on that? I'll help. matt On 17 March 2010 20:14, Craig Jolicoeur <cpjolicoeur@gmail.com> wrote: > I'm curious as to what Integrity users are doing to disk their disk usage down. > > Just ran into an issue where our Integrity server on EC2 just used up > all its disk space. After investigation, its because the build > directory was full. > > It's hard to believe that there isn't an option to purge old builds > inside Integrity already, especially considering that it does a full > clone of the repository each time instead of just doing a reset and > pull on the same repos for each new build. > > So, what are people doing to keep this clean? Anyone already have > some CRON scripts or something written to purge out old builds? > > - Craig >
To get by for now I just wrote this quick script that I dropped into cron.hourly to purge old builds for me: http://gist.github.com/336330 I'll take a look at adding the same type of support to Integrity directly. It's really the same type of thing that capistrano does to purge old builds so hopefully it won't take too much work to do it. I am the one in charge of the Cerberus CI tool, but I'm sure my users won't mind me adding this feature to the "competition" :). - Craig On Thu, Mar 18, 2010 at 3:12 AM, Matt Davies <tonmatt@gmail.com> wrote: > Hi Craig > > Like most people, I'd guess, I'm ignoring the issue at the moment and > will probably panic look at it when it goes tits up :-) > > I am interested, it wouldn't be that much work to write a function > into the integrity app itself would it? > > Fancy forking one off and starting work on that? I'll help. > > matt > On 17 March 2010 20:14, Craig Jolicoeur <cpjolicoeur@gmail.com> wrote: >> I'm curious as to what Integrity users are doing to disk their disk usage down. >> >> Just ran into an issue where our Integrity server on EC2 just used up >> all its disk space. After investigation, its because the build >> directory was full. >> >> It's hard to believe that there isn't an option to purge old builds >> inside Integrity already, especially considering that it does a full >> clone of the repository each time instead of just doing a reset and >> pull on the same repos for each new build. >> >> So, what are people doing to keep this clean? Anyone already have >> some CRON scripts or something written to purge out old builds? >> >> - Craig >> >
I've been using this rake task for a while
desc "Clean-up build directory"
task :cleanup do
require "init"
Integrity::Build.all(:completed_at.not => nil).each { |build|
dir = Integrity.directory.join(build.id.to_s)
dir.rmtree if dir.directory?
}
end
On Thu, Mar 18, 2010 at 6:12 AM, Craig Jolicoeur <cpjolicoeur@gmail.com> wrote:
> To get by for now I just wrote this quick script that I dropped into
> cron.hourly to purge old builds for me:
>
> http://gist.github.com/336330
>
> I'll take a look at adding the same type of support to Integrity
> directly. It's really the same type of thing that capistrano does to
> purge old builds so hopefully it won't take too much work to do it.
>
> I am the one in charge of the Cerberus CI tool, but I'm sure my users
> won't mind me adding this feature to the "competition" :).
>
> - Craig
>
>
>
> On Thu, Mar 18, 2010 at 3:12 AM, Matt Davies <tonmatt@gmail.com> wrote:
>> Hi Craig
>>
>> Like most people, I'd guess, I'm ignoring the issue at the moment and
>> will probably panic look at it when it goes tits up :-)
>>
>> I am interested, it wouldn't be that much work to write a function
>> into the integrity app itself would it?
>>
>> Fancy forking one off and starting work on that? I'll help.
>>
>> matt
>> On 17 March 2010 20:14, Craig Jolicoeur <cpjolicoeur@gmail.com> wrote:
>>> I'm curious as to what Integrity users are doing to disk their disk
usage down.
>>>
>>> Just ran into an issue where our Integrity server on EC2 just used up
>>> all its disk space. After investigation, its because the build
>>> directory was full.
>>>
>>> It's hard to believe that there isn't an option to purge old builds
>>> inside Integrity already, especially considering that it does a full
>>> clone of the repository each time instead of just doing a reset and
>>> pull on the same repos for each new build.
>>>
>>> So, what are people doing to keep this clean? Anyone already have
>>> some CRON scripts or something written to purge out old builds?
>>>
>>> - Craig
>>>
>>
>
--
github.com/sr
+1 to putting this in integrity's Rakefile. Just had an out of space error on my build server due to this. On Thu, Mar 18, 2010 at 2:31 PM, Simon Rozet <simon@rozet.name> wrote: > I've been using this rake task for a while > > desc "Clean-up build directory" > task :cleanup do > require "init" > Integrity::Build.all(:completed_at.not => nil).each { |build| > dir = Integrity.directory.join(build.id.to_s) > dir.rmtree if dir.directory? > } > end > > On Thu, Mar 18, 2010 at 6:12 AM, Craig Jolicoeur <cpjolicoeur@gmail.com> > wrote: > > To get by for now I just wrote this quick script that I dropped into > > cron.hourly to purge old builds for me: > > > > http://gist.github.com/336330 > > > > I'll take a look at adding the same type of support to Integrity > > directly. It's really the same type of thing that capistrano does to > > purge old builds so hopefully it won't take too much work to do it. > > > > I am the one in charge of the Cerberus CI tool, but I'm sure my users > > won't mind me adding this feature to the "competition" :). > > > > - Craig > > > > > > > > On Thu, Mar 18, 2010 at 3:12 AM, Matt Davies <tonmatt@gmail.com> wrote: > >> Hi Craig > >> > >> Like most people, I'd guess, I'm ignoring the issue at the moment and > >> will probably panic look at it when it goes tits up :-) > >> > >> I am interested, it wouldn't be that much work to write a function > >> into the integrity app itself would it? > >> > >> Fancy forking one off and starting work on that? I'll help. > >> > >> matt > >> On 17 March 2010 20:14, Craig Jolicoeur <cpjolicoeur@gmail.com> wrote: > >>> I'm curious as to what Integrity users are doing to disk their disk > usage down. > >>> > >>> Just ran into an issue where our Integrity server on EC2 just used up > >>> all its disk space. After investigation, its because the build > >>> directory was full. > >>> > >>> It's hard to believe that there isn't an option to purge old builds > >>> inside Integrity already, especially considering that it does a full > >>> clone of the repository each time instead of just doing a reset and > >>> pull on the same repos for each new build. > >>> > >>> So, what are people doing to keep this clean? Anyone already have > >>> some CRON scripts or something written to purge out old builds? > >>> > >>> - Craig > >>> > >> > > > > > > -- > github.com/sr >
+1 too I said I'd help but I've done fuck all apart from watch, apologies On 24 Mar 2010, at 20:30, Nick Quaranto wrote: > +1 to putting this in integrity's Rakefile. Just had an out of space > error on my build server due to this. > > On Thu, Mar 18, 2010 at 2:31 PM, Simon Rozet <simon@rozet.name> wrote: > I've been using this rake task for a while > > desc "Clean-up build directory" > task :cleanup do > require "init" > Integrity::Build.all(:completed_at.not => nil).each { |build| > dir = Integrity.directory.join(build.id.to_s) > dir.rmtree if dir.directory? > } > end > > On Thu, Mar 18, 2010 at 6:12 AM, Craig Jolicoeur <cpjolicoeur@gmail.com > > wrote: > > To get by for now I just wrote this quick script that I dropped into > > cron.hourly to purge old builds for me: > > > > http://gist.github.com/336330 > > > > I'll take a look at adding the same type of support to Integrity > > directly. It's really the same type of thing that capistrano does > to > > purge old builds so hopefully it won't take too much work to do it. > > > > I am the one in charge of the Cerberus CI tool, but I'm sure my > users > > won't mind me adding this feature to the "competition" :). > > > > - Craig > > > > > > > > On Thu, Mar 18, 2010 at 3:12 AM, Matt Davies <tonmatt@gmail.com> > wrote: > >> Hi Craig > >> > >> Like most people, I'd guess, I'm ignoring the issue at the moment > and > >> will probably panic look at it when it goes tits up :-) > >> > >> I am interested, it wouldn't be that much work to write a function > >> into the integrity app itself would it? > >> > >> Fancy forking one off and starting work on that? I'll help. > >> > >> matt > >> On 17 March 2010 20:14, Craig Jolicoeur <cpjolicoeur@gmail.com> > wrote: > >>> I'm curious as to what Integrity users are doing to disk their > disk usage down. > >>> > >>> Just ran into an issue where our Integrity server on EC2 just > used up > >>> all its disk space. After investigation, its because the build > >>> directory was full. > >>> > >>> It's hard to believe that there isn't an option to purge old > builds > >>> inside Integrity already, especially considering that it does a > full > >>> clone of the repository each time instead of just doing a reset > and > >>> pull on the same repos for each new build. > >>> > >>> So, what are people doing to keep this clean? Anyone already have > >>> some CRON scripts or something written to purge out old builds? > >>> > >>> - Craig > >>> > >> > > > > > > -- > github.com/sr >