[Engine-devel] Proposal for new commit msg design for engine commits

2013-07-09 Thread Eyal Edri
Hi,

You all probably know and familiar with 'ovirt-engine' git hook for commit msg 
template [1].
this helps understand the general area of the patch in the project but it lacks 
additional info that might
be valuable for scaling automatic tests in Jenkins CI.

Let me explain:

Infra team is working hard on expanding oVirt CI infrastructure and adding more 
tests in jenkins (per commit/patch).
Adding important meta-data per patch can significatly improve the ability to 
run specific tests for each patch/commit,
and not waste valuable resources on Jenkins jobs that are not relevant to the 
code in the patch.

So the idea is to add/expand current metadata per patch, in the form of: 
(either)
 1. expanding current header template to include more data like 'network' , 
'setup', 'tools', 'virt'
 2. adding a new label with relevant tags for the patch, called e.g 'METADATA: 
network, rest, virt'

Jenkins jobs will then be able to parse that data and trigger only relevant 
jobs for it.
this can also allow us to add more jobs per patch, an option that is very 
problematic today considering the amount of 
patches coming in to engine.

Once agreed on a format, we'll be able to add a git hook to verify the validity 
of the commit msg. (similar to bug-url). 

if we're not 100% sure that the tags will cover all corner cases and we feel 
like we need to run the code on all jobs,
we can a nightly job to run all the remaining jobs (but at least it won't run 
on every patch/commit).

[1] core | restapi | tools | history | engine | userportal | webadmin:


thoughts? 

Eyal Edri.
___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel


Re: [Engine-devel] Proposal for new commit msg design for engine commits

2013-07-09 Thread Antoni Segura Puimedon
I like the idea of having a label in the bottom part of the commit that is:

METADATA: network

which would be your second proposal.

- Original Message -
 From: Eyal Edri ee...@redhat.com
 To: engine-devel engine-devel@ovirt.org
 Cc: infra in...@ovirt.org
 Sent: Tuesday, July 9, 2013 11:38:51 AM
 Subject: [Engine-devel] Proposal for new commit msg design for engine commits
 
 Hi,
 
 You all probably know and familiar with 'ovirt-engine' git hook for commit
 msg template [1].
 this helps understand the general area of the patch in the project but it
 lacks additional info that might
 be valuable for scaling automatic tests in Jenkins CI.
 
 Let me explain:
 
 Infra team is working hard on expanding oVirt CI infrastructure and adding
 more tests in jenkins (per commit/patch).
 Adding important meta-data per patch can significatly improve the ability to
 run specific tests for each patch/commit,
 and not waste valuable resources on Jenkins jobs that are not relevant to the
 code in the patch.
 
 So the idea is to add/expand current metadata per patch, in the form of:
 (either)
  1. expanding current header template to include more data like 'network' ,
  'setup', 'tools', 'virt'
  2. adding a new label with relevant tags for the patch, called e.g
  'METADATA: network, rest, virt'
 
 Jenkins jobs will then be able to parse that data and trigger only relevant
 jobs for it.
 this can also allow us to add more jobs per patch, an option that is very
 problematic today considering the amount of
 patches coming in to engine.
 
 Once agreed on a format, we'll be able to add a git hook to verify the
 validity of the commit msg. (similar to bug-url).
 
 if we're not 100% sure that the tags will cover all corner cases and we feel
 like we need to run the code on all jobs,
 we can a nightly job to run all the remaining jobs (but at least it won't run
 on every patch/commit).
 
 [1] core | restapi | tools | history | engine | userportal | webadmin:
 
 
 thoughts?
 
 Eyal Edri.
 ___
 Engine-devel mailing list
 Engine-devel@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/engine-devel
 
___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel


Re: [Engine-devel] Proposal for new commit msg design for engine commits

2013-07-09 Thread Moran Goldboim

On 07/09/2013 12:41 PM, Antoni Segura Puimedon wrote:

I like the idea of having a label in the bottom part of the commit that is:

METADATA: network

which would be your second proposal.

- Original Message -

From: Eyal Edri ee...@redhat.com
To: engine-devel engine-devel@ovirt.org
Cc: infra in...@ovirt.org
Sent: Tuesday, July 9, 2013 11:38:51 AM
Subject: [Engine-devel] Proposal for new commit msg design for engine commits

Hi,

You all probably know and familiar with 'ovirt-engine' git hook for commit
msg template [1].
this helps understand the general area of the patch in the project but it
lacks additional info that might
be valuable for scaling automatic tests in Jenkins CI.

Let me explain:

Infra team is working hard on expanding oVirt CI infrastructure and adding
more tests in jenkins (per commit/patch).
Adding important meta-data per patch can significatly improve the ability to
run specific tests for each patch/commit,
and not waste valuable resources on Jenkins jobs that are not relevant to the
code in the patch.

So the idea is to add/expand current metadata per patch, in the form of:
(either)
  1. expanding current header template to include more data like 'network' ,
  'setup', 'tools', 'virt'
  2. adding a new label with relevant tags for the patch, called e.g
  'METADATA: network, rest, virt'

Jenkins jobs will then be able to parse that data and trigger only relevant
jobs for it.
this can also allow us to add more jobs per patch, an option that is very
problematic today considering the amount of
patches coming in to engine.

Once agreed on a format, we'll be able to add a git hook to verify the
validity of the commit msg. (similar to bug-url).

if we're not 100% sure that the tags will cover all corner cases and we feel
like we need to run the code on all jobs,
we can a nightly job to run all the remaining jobs (but at least it won't run
on every patch/commit).

[1] core | restapi | tools | history | engine | userportal | webadmin:


thoughts?

Eyal Edri.
___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel


___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel


+1 beside of letting CI know which tests to run (main goal) it will also 
help people understand the scope and effect of the change on a quick look.
i think that we can do feature based 
(live-snapshot,upgrade,live-migration...) or area base tagging 
(virt,storage,network..), what do you think?


___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel


Re: [Engine-devel] Proposal for new commit msg design for engine commits

2013-07-09 Thread Dan Kenigsberg
On Tue, Jul 09, 2013 at 05:41:45AM -0400, Antoni Segura Puimedon wrote:
 I like the idea of having a label in the bottom part of the commit that is:
 
 METADATA: network
 

This makes sense, but I find METADATA as an overly general term. Even
something like

Region_of_Interest: network

is more humanly comprehensible.

Another idea would be to add a gerrit-only set of flags, where the
poster or reviewers have to tick which group of tests are most important
to be run.

 which would be your second proposal.
 
 - Original Message -
  From: Eyal Edri ee...@redhat.com
  To: engine-devel engine-devel@ovirt.org
  Cc: infra in...@ovirt.org
  Sent: Tuesday, July 9, 2013 11:38:51 AM
  Subject: [Engine-devel] Proposal for new commit msg design for engine 
  commits
  
  Hi,
  
  You all probably know and familiar with 'ovirt-engine' git hook for commit
  msg template [1].
  this helps understand the general area of the patch in the project but it
  lacks additional info that might
  be valuable for scaling automatic tests in Jenkins CI.
  
  Let me explain:
  
  Infra team is working hard on expanding oVirt CI infrastructure and adding
  more tests in jenkins (per commit/patch).
  Adding important meta-data per patch can significatly improve the ability to
  run specific tests for each patch/commit,
  and not waste valuable resources on Jenkins jobs that are not relevant to 
  the
  code in the patch.
  
  So the idea is to add/expand current metadata per patch, in the form of:
  (either)
   1. expanding current header template to include more data like 'network' ,
   'setup', 'tools', 'virt'
   2. adding a new label with relevant tags for the patch, called e.g
   'METADATA: network, rest, virt'
  
  Jenkins jobs will then be able to parse that data and trigger only relevant
  jobs for it.
  this can also allow us to add more jobs per patch, an option that is very
  problematic today considering the amount of
  patches coming in to engine.
  
  Once agreed on a format, we'll be able to add a git hook to verify the
  validity of the commit msg. (similar to bug-url).
  
  if we're not 100% sure that the tags will cover all corner cases and we feel
  like we need to run the code on all jobs,
  we can a nightly job to run all the remaining jobs (but at least it won't 
  run
  on every patch/commit).
  
  [1] core | restapi | tools | history | engine | userportal | webadmin:
  
  
  thoughts?
  
  Eyal Edri.
  ___
  Engine-devel mailing list
  Engine-devel@ovirt.org
  http://lists.ovirt.org/mailman/listinfo/engine-devel
  
 ___
 Engine-devel mailing list
 Engine-devel@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/engine-devel
___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel


[Engine-devel] oVirt GUI: GWT(P) Upgrade overview session starts NOW

2013-07-09 Thread Einav Cohen
to connect:

Intercall dial-in numbers: 
https://www.intercallonline.com/listNumbersByCode.action?confCode=7128867405
Intercall conference code: 712 886 7405 #

Elluminate session link:
https://sas.elluminate.com/m.jnlp?sid=819password=M.132A81E7D3610CF042FB58CA335C55


Regards, 
Einav
___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel


Re: [Engine-devel] Proposal for new commit msg design for engine commits

2013-07-09 Thread Eyal Edri


- Original Message -
 From: Fabian Deutsch fabi...@redhat.com
 To: Alon Bar-Lev alo...@redhat.com
 Cc: engine-devel engine-devel@ovirt.org, infra in...@ovirt.org
 Sent: Tuesday, July 9, 2013 3:54:06 PM
 Subject: Re: [Engine-devel] Proposal for new commit msg design for engine 
 commits
 
 Am Dienstag, den 09.07.2013, 08:49 -0400 schrieb Alon Bar-Lev:
  
  
  - Original Message -
   From: Yair Zaslavsky yzasl...@redhat.com
   To: Alon Bar-Lev alo...@redhat.com
   Cc: Eyal Edri ee...@redhat.com, engine-devel
  engine-devel@ovirt.org, infra in...@ovirt.org
   Sent: Tuesday, July 9, 2013 3:42:24 PM
   Subject: Re: [Engine-devel] Proposal for new commit msg design for
  engine commits
   
   
   
   - Original Message -
From: Alon Bar-Lev alo...@redhat.com
To: Eyal Edri ee...@redhat.com
Cc: engine-devel engine-devel@ovirt.org, infra
  in...@ovirt.org
Sent: Tuesday, July 9, 2013 3:33:57 PM
Subject: Re: [Engine-devel] Proposal for new commit msg design for
  engine
commits



- Original Message -
 From: Eyal Edri ee...@redhat.com
 To: engine-devel engine-devel@ovirt.org
 Cc: infra in...@ovirt.org
 Sent: Tuesday, July 9, 2013 12:38:51 PM
 Subject: Proposal for new commit msg design for engine commits
 
 Hi,
 
 You all probably know and familiar with 'ovirt-engine' git hook
  for
 commit
 msg template [1].
 this helps understand the general area of the patch in the
  project but it
 lacks additional info that might
 be valuable for scaling automatic tests in Jenkins CI.
 
 Let me explain:
 
 Infra team is working hard on expanding oVirt CI infrastructure
  and
 adding
 more tests in jenkins (per commit/patch).
 Adding important meta-data per patch can significatly improve
  the ability
 to
 run specific tests for each patch/commit,
 and not waste valuable resources on Jenkins jobs that are not
  relevant to
 the
 code in the patch.
 
 So the idea is to add/expand current metadata per patch, in the
  form of:
 (either)
  1. expanding current header template to include more data like
  'network'
  ,
  'setup', 'tools', 'virt'

Please do not expand header, it is too short anyway.

  2. adding a new label with relevant tags for the patch, called
  e.g
  'METADATA: network, rest, virt'

Having:

CI-Tests: xxx
CI-Tests: yyy
CI-Tests: zzz

Is much better.
   
   I'm not sure we should have CI-Test - as we might use this for
  something else
   besides CI.
   Region_of_Interest as Dan suggests sounds better IMHO.
  
  I don't care how this is to be called.
  However, I do not think that commit message is the place for
  instructing CI to do anything.
  Commit message stays for good, it should contain information that is
  required a year from now.
  It has nothing to do with tests and such.
 
 I agree with Alon here that the Ci informations don't belong in the
 commit msg.
 My opinion is that a testcase should know what it covers. This
 information from the testcase can then be used by any party to determin
 if the testcase should be run on a specific commit (which yields
 informations about the changed paths, files, owner, author, etc ...
 which might be valuable).

i don't understand what you mean by a testcase should know what it covers.
of course it does. that's not the problem though.
the problem is ovirt-engine has multiple components with him that apply to 
various 
fields, some patches are relevant to specific areas and not not.

so a test case (that clones ovirt-engine repo) can't know which tests to run 
if he doesn't have that info somewhere in the patch.

if we don't want info in the git commit msg, we can try using git notes [1]

but i think that this meta-data isn't all about ci jobs, it's about additional 
info on 
what the patch touches/adds. it can also help qa testing later to pinpoint 
where the code was changed
and perhaps enable the use of future automation scripts that can scan the 
commits 
and generate statics on coverage per subject/field.

[1]  https://www.kernel.org/pub/software/scm/git/docs/git-notes.html
 http://alblue.bandlem.com/2011/11/git-tip-of-week-git-notes.html
 
 - fabian
 
 ___
 Infra mailing list
 in...@ovirt.org
 http://lists.ovirt.org/mailman/listinfo/infra
 
___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel


Re: [Engine-devel] Proposal for new commit msg design for engine commits

2013-07-09 Thread Giuseppe Vallarelli
Hi Eyal, I really appreciate your concern and desire to streamline our
CI infrastructure, but I'm afraid there might be some issues worth of
discussing.

If I've understood correctly a developer should add some kind of tags
to idenfity the impact of the patch and so the subsets of tests (impact areas)
that are going to be executed. I think it might be hard in some cases to
properly identify the correct 'areas' and even error prone. I think that
it really depends on how much engine software components are independent
from each other and developer's codebase knowledge. I think it might be useful
to have a dependency graph of components let's say at package level to define
which tests should be executed, perhaps this is something that can be automate.
We might discover that for transitivity a component depends on the whole
engine.

My 2 Czech Crowns

Cheers, Giuseppe




- Original Message -
| From: Eyal Edri ee...@redhat.com
| To: engine-devel engine-devel@ovirt.org
| Cc: infra in...@ovirt.org
| Sent: Tuesday, July 9, 2013 11:38:51 AM
| Subject: [Engine-devel] Proposal for new commit msg design for engine commits
| 
| Hi,
| 
| You all probably know and familiar with 'ovirt-engine' git hook for commit
| msg template [1].
| this helps understand the general area of the patch in the project but it
| lacks additional info that might
| be valuable for scaling automatic tests in Jenkins CI.
| 
| Let me explain:
| 
| Infra team is working hard on expanding oVirt CI infrastructure and adding
| more tests in jenkins (per commit/patch).
| Adding important meta-data per patch can significatly improve the ability to
| run specific tests for each patch/commit,
| and not waste valuable resources on Jenkins jobs that are not relevant to the
| code in the patch.
| 
| So the idea is to add/expand current metadata per patch, in the form of:
| (either)
|  1. expanding current header template to include more data like 'network' ,
|  'setup', 'tools', 'virt'
|  2. adding a new label with relevant tags for the patch, called e.g
|  'METADATA: network, rest, virt'
| 
| Jenkins jobs will then be able to parse that data and trigger only relevant
| jobs for it.
| this can also allow us to add more jobs per patch, an option that is very
| problematic today considering the amount of
| patches coming in to engine.
| 
| Once agreed on a format, we'll be able to add a git hook to verify the
| validity of the commit msg. (similar to bug-url).
| 
| if we're not 100% sure that the tags will cover all corner cases and we feel
| like we need to run the code on all jobs,
| we can a nightly job to run all the remaining jobs (but at least it won't run
| on every patch/commit).
| 
| [1] core | restapi | tools | history | engine | userportal | webadmin:
| 
| 
| thoughts?
| 
| Eyal Edri.
| ___
| Engine-devel mailing list
| Engine-devel@ovirt.org
| http://lists.ovirt.org/mailman/listinfo/engine-devel
| 
___
Engine-devel mailing list
Engine-devel@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-devel