[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] Missing bits for production usage (was: [PATCH v5 00...)



On Thu, Jul 20, 2017 at 04:57:50PM +0100, Ian Jackson wrote:
> Roger Pau Monne writes ("Missing bits for production usage (was: [PATCH v5 
> 00...)"):
> > A script to mark/unmark a $flight.$job as blessed. Marking a
> > $flight.$job as blessed means that it's build output is never deleted
> > from osstest storage, a proposed command line would be:
> 
> We can't call it "blessed" because that's something else.  Best I
> could come with with is "anointed" but maybe we will think of
> something better.

besaint? Not being a native speaker I'm not sure I can be more
helpful than searching for thesaurus of blessed online :).

> Suggested design:
> 
> Each flavour of anointment is represented by a row in tasks:
> 
>  type      anoint
>  refkey    <scope> <details...>
>    the flavour, eg   freebsd build <bsdbranch> <arch>
>  username  NULL
>  comment   <for human consumption>
>  live      t
>  refinfo   keep=<number to keep>
> 
> Each anointment is represented by a row in resources:
> 
>  restype    'share-flight'
>  resname    <flight>
>  shareix    <incrementing integer>
>  owntaskid  <the anointment flavour taskid>
>  subtask    <job>
> 
> So originally we do something like:
> 
>   ./mg-anoint prepare --keep=3 'freebsd build master amd64' 'FreeBSD builds'
> 
> which I guess should be done by mg-branch-setup.
> 
> > ./mg-freebsd-modify-blessed <$flight.$job> <arch> <branch> <bless/unbless>
> 
>   ./mg-anoint anoint "freebsd build $bsdbranch $arch" $flight $job
> 
> This would clean out older anointments, in a single db transaction.
> 
> > A script to fetch the latest current blessed flight:
> > 
> > ./mg-freebsd-get-blessed <arch> <branch>
> 
> How about
> 
>   ./mg-anoint retrieve "freebsd build $bsdbranch $arch"

That seems all fine to me, but I cannot really comment on the database
part of it.

> which prints "$flight $job".

For consumption it might be easier to simply return $flight.$job, but
that's a nit.

Thanks, Roger.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.