From: Ian Campbell <ian.campbell@citrix.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: xen-devel@lists.xen.org
Subject: Re: [PATCH OSSTEST v2] cs-adjust-flight: Add jobs-rename command which applies a perlop to job names
Date: Tue, 19 Jan 2016 14:36:40 +0000 [thread overview]
Message-ID: <1453214200.29930.63.camel@citrix.com> (raw)
In-Reply-To: <22174.18262.22824.133116@mariner.uk.xensource.com>
On Tue, 2016-01-19 at 14:25 +0000, Ian Jackson wrote:
> Ian Campbell writes ("[PATCH OSSTEST v2] cs-adjust-flight: Add jobs-
> rename command which applies a perlop to job names"):
> > My intention was to allow creation of adhoc jobs based on a template
> > but modified e.g. to enable/disable XSM with a sequence something
> > like:
> ...
> > Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
> > Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
>
> I know I acked this, and my next observations don't mean we shouldn't
> apply it as-is, but:
>
> > + UPDATE jobs
> > + SET job = ?
> > + WHERE flight = ? AND job = ?
> > +END
>
> This can be applied to flights in intended blessing `play' in
> blessings later than `constructing', or via `running:F' to running
> flights.
>
> And if that happens, there might be entries in the steps table which
> ought also to be renamed. If you don't rename them you will trip the
> foreign key constraint.
But fail immediately in this invocation of cs-adjust-flight with a
(hopefully) comprehensible SQL error spew?
Or is that the distinction between INNTIALLY IMMEDIATE vs DEFERRED you were
trying to get at?
Having stuffed the flight in this way would it have effects elsewhere (i.e.
on production flights) or do you just get to keep both pieces of this
particular flight?
>
> I think a similar problem exists with jobs_del.
>
> Note that this constraint is INITIALLY IMMEDIATE. If we were to make
> it INITIALLY DEFERRED then this code would become dangerous, because
> ./cs-adjust-flight F jobs-rename x 's/x/y/' copy-jobs G x
> would leave F.x containing the steps from the old x but the
> recipe and runvars from G.x. But I don't think INITIALLY DEFERRED is
> a good default for constraints so this is probably not relevant.
>
> Ian.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2016-01-19 14:36 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-19 12:47 [PATCH OSSTEST v2] cs-adjust-flight: Add jobs-rename command which applies a perlop to job names Ian Campbell
2016-01-19 14:25 ` Ian Jackson
2016-01-19 14:36 ` Ian Campbell [this message]
[not found] ` <22174.19392.695718.990474@mariner.uk.xensource.com>
2016-01-19 14:58 ` Ian Campbell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1453214200.29930.63.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=Ian.Jackson@eu.citrix.com \
--cc=xen-devel@lists.xen.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.