From: Ryan Harper <ryanh@us.ibm.com>
To: Michael Goldish <mgoldish@redhat.com>
Cc: Ryan Harper <ryanh@us.ibm.com>,
autotest@test.kernel.org, uril@redhat.com, kvm@vger.kernel.org,
Lucas Meneghel Rodrigues <lmr@redhat.com>
Subject: Re: [Autotest] [PATCH] [RFC] KVM test: Major control file cleanup
Date: Mon, 2 Nov 2009 16:10:40 -0600 [thread overview]
Message-ID: <20091102221040.GQ13808@us.ibm.com> (raw)
In-Reply-To: <1276240077.1333571257019276425.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com>
* Michael Goldish <mgoldish@redhat.com> [2009-10-31 16:02]:
> >
> > If I'm understanding things, we are talking about moving the large
> > body
> > of kvm_tests.cfg test definitions, guest definitions into a
> > "library",
> > and then moving the requested test config (bottom on kvm_tests.cfg)
> > into
> > the control file itself which means the autotest webui would be able
> > to
> > control which tests get run; I like this idea very well. My concern
> > that I mentioned is that as you edit the "library" it can be
> > difficult
> > to ensure you described exactly which set of tests on which guests
> > you
> > want to run and kvm_config.py is invaluable in the process of getting
> > it
> > right.
> >
> > Why not have kvm_config.py , or some other wrapper generate a
> > "kvm_tests.cfg" file dynamically from the "library" and the strings
> > from
> > the control file? That way we could still debug configuration via
> > kvm_config.py? I much perfer this over queueing up jobs in the
> > webiu,
> > waiting for it to run, checking the results in the DEBUG dir,
> > adjusting,
> > repeat.
>
> I'm not sure I understand your idea: you want some program to read the
> control file and generate a new file (kvm_tests.cfg or something) from
> the control file and the library file, so that this file can be debugged
> with kvm_config.py?
I wanted something that would take the test description string from the
control file, run that through the library such that it can print out
the tests that will run -- the equivalent of running kvm_config.py on a
kvm_tests.cfg file...
>
> IMO this solution is "dirty" because the control file is python code, not
> our own format, so it's not nice to automatically extract stuff from it.
> It would be nice to do something that eases debugging, but if you ask me,
> I'd rather have something as clean as possible.
>
> Here's another idea, which I suggested but haven't received any feedback
> on: let's write a little proggie that runs the control file just like
> client/bin/autotest does. The proggie will supply the control file with
> a fake job object that has nothing but a run_test() method, but instead
> of running a test, that method will simply nicely print out the test
> params, like kvm_config.py does. So the user will be able to do something
> like './dry_run.py control.mine' which will list all the tests to be
> executed. We might also want to implement job.parallel() in addition to
> job.run_test() but that should be very easy (it doesn't really have to be
> parallel at all).
> Does that make any sense?
It does, though I don't see how it's different then what I suggested; I
don't really care how we do it; I still need something to debug test
config files outside of cycling through job output via the webui;
--
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
ryanh@us.ibm.com
next prev parent reply other threads:[~2009-11-02 22:10 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1285393002.1333521257019268689.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com>
2009-10-31 20:01 ` [Autotest] [PATCH] [RFC] KVM test: Major control file cleanup Michael Goldish
2009-11-02 22:10 ` Ryan Harper [this message]
[not found] <630174680.1165391256752423162.JavaMail.root@zmail05.collab.prod.int.phx2.redhat.com>
2009-10-28 18:04 ` Michael Goldish
2009-11-04 7:25 ` Yolkfull Chow
2009-11-04 12:33 ` Lucas Meneghel Rodrigues
2009-10-28 11:14 Lucas Meneghel Rodrigues
2009-10-28 15:43 ` Michael Goldish
2009-10-28 15:58 ` [Autotest] " Lucas Meneghel Rodrigues
2009-10-28 18:18 ` Ryan Harper
2009-10-28 19:47 ` [Autotest] " Lucas Meneghel Rodrigues
2009-10-28 20:48 ` Michael Goldish
2009-10-30 13:54 ` Ryan Harper
2009-10-30 14:36 ` Lucas Meneghel Rodrigues
2009-10-28 15:57 ` Michael Goldish
2009-10-28 15:59 ` [Autotest] " Lucas Meneghel Rodrigues
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=20091102221040.GQ13808@us.ibm.com \
--to=ryanh@us.ibm.com \
--cc=autotest@test.kernel.org \
--cc=kvm@vger.kernel.org \
--cc=lmr@redhat.com \
--cc=mgoldish@redhat.com \
--cc=uril@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox