feature request: record build space used

Ion-Mihai Tetcu itetcu at FreeBSD.org
Sun Jul 27 18:07:11 EDT 2008


On Sun, 27 Jul 2008 15:42:06 -0400
Joe Marcus Clarke <marcus at marcuscom.com> wrote:

> On Sun, 2008-07-27 at 19:59 +0300, Ion-Mihai Tetcu wrote:
> 
> > > But they're not.  Everything needed to install a port is copied
> > > to the chroot ({pb}/BUILD) during pre-setup. This way,
> > > buildscript can install all the dependent packages, build the
> > > port, install it, then create the package.  So the total space
> > > required will be sizeof(jail
> > > + dependency tbzs + dependencies installed + port built + port
> > > installed + package).
> > 
> > Oh, so the distfiles and and packages are first copied in the
> > chroot? I didn't realized that.
> > 
> > > > The way I see it implemented:
> > > > - record the space size for the last build if successful.
> > > > - record the space size of the last build if unsuccessful and
> > > > bigger that the one currently recorded.
> > > > - add a ports_fail_pattered to look for 'out of space'
> > > > - have the recorded space exported in prePortBuild hook so that
> > > > one could use his favorite mount command
> > > > for /TINDERBOX_ROOT/BUILD_NAME
> > > 
> > > All of this is doable, but we need to come to an understanding of
> > > what is counted toward total space.  If you agree with what I've
> > > said above, then I'll start work today.
> > 
> >  [ .. ]
> > 
> > Yes.
> > 
> 
> I have committed this feature.  The total size will be tracked in the
> database.  It can be obtained using tc getPortTotalSize -d DIRECTORY
> -b BUILD.  It is not displayed in either of the web frontends (unless
> someone wants to add code for that).

Cool, many thanks,

-- 
IOnut - Un^d^dregistered ;) FreeBSD "user"
  "Intellectual Property" is   nowhere near as valuable   as "Intellect"
FreeBSD committer -> itetcu at FreeBSD.org, PGP Key ID 057E9F8B493A297B
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <http://marcuscom.com/pipermail/tinderbox-list/attachments/20080728/a2ef1e9b/attachment.bin>


More information about the tinderbox-list mailing list