Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(893)

Issue 4547087: site_job.py extension used in virt testing

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 8 months ago by cleber
Modified:
11 years, 5 months ago
Reviewers:
lmr, jme, lmr, crosa
Visibility:
Public.

Description

site_job.py extension used in virt testing

Patch Set 1 #

Total comments: 11
Unified diffs Side-by-side diffs Delta from patch set Stats (+314 lines, -0 lines) Patch
A contrib/virt/README View 1 chunk +74 lines, -0 lines 4 comments Download
A contrib/virt/control.template View 1 chunk +47 lines, -0 lines 0 comments Download
A contrib/virt/site_job.py View 1 chunk +193 lines, -0 lines 7 comments Download

Messages

Total messages: 4
cleber
14 years, 8 months ago (2011-06-07 20:34:40 UTC) #1
lmr
Hi Cleber, I read your patchset and I have some minor comments to make. http://codereview.appspot.com/4547087/diff/1/contrib/virt/README ...
14 years, 8 months ago (2011-06-21 18:40:40 UTC) #2
cleber
http://codereview.appspot.com/4547087/diff/1/contrib/virt/README File contrib/virt/README (right): http://codereview.appspot.com/4547087/diff/1/contrib/virt/README#newcode58 contrib/virt/README:58: -f "<autotest_root>/contrib/virt/control.template" -T --timestamp \ On 2011/06/21 18:40:40, lmr ...
14 years, 8 months ago (2011-06-21 21:07:56 UTC) #3
lmr
14 years, 8 months ago (2011-06-21 22:22:59 UTC) #4
> On 2011/06/21 18:40:40, lmr wrote:
> > You have mentioned you have concerns about how to make this code more
> > modular/reusable among other site extensions that want to use some of this
> > functionality. I have thought about this and the answer is fairly simple: We
> can
> > encapsulate the actual functionality as additional API in autotest
libraries,
> > and then make the site extensions to just call them. Example: this method
can
> > just
> > 
> > return utils.check_koji_packages(arg1, arg2...argn)
> > 
> > Same goes for any other interesting features the extension has.
> 
> Yeah, that would probably do it some of what I meant. I was really worried
about
> not being able to use multiple site extension files at once, say one that adds
> virt features and other that adds performance measurement features.

I see what you mean. we can certainly think about doing that. I have created
this task on the autotest trac:

http://autotest.kernel.org/ticket/51

To track this work item. Meanwhile, let's keep it simple and if we want to reuse
components, just encapsulate them. Not quite what you wanted, but close.

> That would really require the site extensions to work more like plugins as we
> known them in browsers: you would never feel that it's right to disable your
> browser's java plugin to enable flash, right? They should just add to each
> other's features.
> 
> In this specific case, I believe that we can indeed move that into the
> framework, but the point of some extensions might be exactly the need to stay
> away from the "core" API.

Yep. Remember the site extension itself is an importable lib, so we can keep the
extensions code away from the core API.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b