You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@gump.apache.org by Adam Jack <aj...@TrySybase.com> on 2003/06/05 05:23:45 UTC
FOG Factor
For some reason I got to thinking about the "Friend of Gump" rating again
today. (Probably 'cos I am curious to know how centipede would build on full
gump, but know it hasn't built in a week or many more 'cos of dependent
failures). As product get higher up the stack they build less, and that
limits gumps effectiveness at keeping community unity. As such, I think FOG
is a very important statistic.
I am sure there are some interesting statistics (total # of sub-projects a
project depends upon, total # of project dependent upon this) I wonder if
there is a value in the following simple approach.
Gump could store three counters for each project (1) successful builds [S]
(2) unsuccessful builds [U] (2) missing dependency [D]. I wonder if the "FOG
factor" ought be:
[S] / [U] + [D].
I thought about weighting [U] or [D], so as not to penalise a project for
it's dependencies, but the end result is the same. Build on quicksand and
you'll sink, however stable your are.
If gump were to store each of these (in one file or three) and increment
them (as appropriate) each time it ran, and present them in a simple HTML
table (perhaps even the build status main table on index.html) it'd allow
folks to know (1) age [total builds] (2) reliability to build on top of.
Not a perfect measure, but might be informative...
regards
Adam
--
<http://www.try.sybase.com>
Experience Sybase Technology ...
Re: FOG Factor
Posted by Peter Donald <pe...@realityforge.org>.
On Fri, 6 Jun 2003 11:14 pm, Berin Loritsch wrote:
> So how do you set up optional dependencies? I've seen GUMP fail before
> were the dependency was supposed to be optional.
You may want to invest some time in reading the documentation.
http://jakarta.apache.org/gump/project.html#option
--
Cheers,
Peter Donald
------------------------------------------------------------
militant agnostic: i don't know, and you don't know either.
------------------------------------------------------------
Re: FOG Factor
Posted by Berin Loritsch <bl...@apache.org>.
Sam Ruby wrote:
> Berin Loritsch wrote:
>
>>
>> So how do you set up optional dependencies? I've seen GUMP fail before
>> were the dependency was supposed to be optional.
>
>
> Without a specific instance that you can cite, this is hard to debug.
>
> If a dependency is optional, the results won't be found in the
> classpath. I've seen some Ant build files that don't properly handle
> optional dependencies - in each case it was a simple bug or oversight.
TO be honest, it has been a while... Perhaps before the feature was
added. I have not been following GUMP that closely until more recently.
I also noticed that the XML Entities are not processing properly,
causing just about everything to fail, which was in part to central
projects failing because of that. However that does not demonstrate
how optional components fail.
However it did show some very surprising things. For instance,
Excalibur I18N is somehow linked to Commons CLI which failed because
another Commons project failed which failed because Commons Logging
failed, which failed because Avalon LogKit used an entity in the
build file.
I18N does not specify any kind of command line interface, and looking
at the GUMP descriptor did not give any clues as to how or why
the Commons projects were included at all.
To me it is a big mystery.
Re: FOG Factor
Posted by Sam Ruby <ru...@apache.org>.
Berin Loritsch wrote:
>
> So how do you set up optional dependencies? I've seen GUMP fail before
> were the dependency was supposed to be optional.
Without a specific instance that you can cite, this is hard to debug.
If a dependency is optional, the results won't be found in the
classpath. I've seen some Ant build files that don't properly handle
optional dependencies - in each case it was a simple bug or oversight.
- Sam Ruby
Re: FOG Factor
Posted by Berin Loritsch <bl...@apache.org>.
Nicola Ken Barozzi wrote:
>
> Sam Ruby wrote, On 06/06/2003 1.08:
>
>> Berin Loritsch wrote:
>>
>>>
>>> One of the things about GUMP is that it is an _all_ or _nothing_ thing.
>>> Either ALL of your dependencies build or your project fails--even if the
>>> dependency is optional. If your build can survive one or two different
>>> dependencies not being present, should you _really_ be penalized for it?
>>
>>
>> Huh?
>>
>> If an optional dependency is not present, the build continues. I've
>> seen it happen many times.
>
>
> That's why it's called "optional" BTW ;-)
So how do you set up optional dependencies? I've seen GUMP fail before
were the dependency was supposed to be optional.
Re: FOG Factor
Posted by Nicola Ken Barozzi <ni...@apache.org>.
Sam Ruby wrote, On 06/06/2003 1.08:
> Berin Loritsch wrote:
>
>>
>> One of the things about GUMP is that it is an _all_ or _nothing_ thing.
>> Either ALL of your dependencies build or your project fails--even if the
>> dependency is optional. If your build can survive one or two different
>> dependencies not being present, should you _really_ be penalized for it?
>
> Huh?
>
> If an optional dependency is not present, the build continues. I've
> seen it happen many times.
That's why it's called "optional" BTW ;-)
--
Nicola Ken Barozzi nicolaken@apache.org
- verba volant, scripta manent -
(discussions get forgotten, just code remains)
---------------------------------------------------------------------
Re: FOG Factor
Posted by Sam Ruby <ru...@apache.org>.
Berin Loritsch wrote:
>
> One of the things about GUMP is that it is an _all_ or _nothing_ thing.
> Either ALL of your dependencies build or your project fails--even if the
> dependency is optional. If your build can survive one or two different
> dependencies not being present, should you _really_ be penalized for it?
Huh?
If an optional dependency is not present, the build continues. I've
seen it happen many times.
- Sam Ruby
RE: FOG Factor
Posted by Adam Jack <aj...@TrySybase.com>.
It would be really great if GUMP created a WARNING if the optional
dependency failed, but still attempt to build the project anyway.
Sounds reasonable to me. Sounds like either an enhancement request or a bug
request...
regards
Adam
Re: FOG Factor
Posted by Berin Loritsch <bl...@apache.org>.
Adam Jack wrote:
> Ok, my head is now a fog. ;-)
>
> Do we need to be so "fair", or so complex? This is just a rough statistic.
> If an optional dependency is missing the project ought build, right, so it'd
> get "successful". Maybe this'd promote more 'optional' savvy
> descriptors/builds -- and (as you say) more modules.
Ok.
However GUMP will not even attempt the build if a dependency is declared
and the other project failed.
That is a great optimization if the dependency is truly required, but
not so much if the dependency is not required.
Sure you can create a GUMP build that did not use any optional
dependencies, but then you lose the advantage of the early warning
system.
It would be really great if GUMP created a WARNING if the optional
dependency failed, but still attempt to build the project anyway.
It would take longer, but then you would learn if your optional
dependencies were truly optional or not.
>
> regards
>
> Adam
> -----Original Message-----
> From: news [mailto:news@main.gmane.org]On Behalf Of Berin Loritsch
> Sent: Thursday, June 05, 2003 7:27 AM
> To: gump@jakarta.apache.org
> Subject: Re: FOG Factor
>
>
> Adam Jack wrote:
>
>>For some reason I got to thinking about the "Friend of Gump" rating again
>>today. (Probably 'cos I am curious to know how centipede would build on
>
> full
>
>>gump, but know it hasn't built in a week or many more 'cos of dependent
>>failures). As product get higher up the stack they build less, and that
>>limits gumps effectiveness at keeping community unity. As such, I think
>
> FOG
>
>>is a very important statistic.
>>
>>I am sure there are some interesting statistics (total # of sub-projects a
>>project depends upon, total # of project dependent upon this) I wonder if
>>there is a value in the following simple approach.
>>
>>Gump could store three counters for each project (1) successful builds [S]
>>(2) unsuccessful builds [U] (2) missing dependency [D]. I wonder if the
>
> "FOG
>
>>factor" ought be:
>>
>> [S] / [U] + [D].
>>
>>I thought about weighting [U] or [D], so as not to penalise a project for
>>it's dependencies, but the end result is the same. Build on quicksand and
>>you'll sink, however stable your are.
>
>
> One of the things about GUMP is that it is an _all_ or _nothing_ thing.
> Either ALL of your dependencies build or your project fails--even if the
> dependency is optional. If your build can survive one or two different
> dependencies not being present, should you _really_ be penalized for it?
>
> I mean if we are going to do an FOG type of thing, we really need to
> take into consideration the possibility of *optional* dependencies.
>
> A modified version of the algorithm above accounting for optional
> dependencies might look like this:
>
> ( S + O/Ot ) / ( U + Rt/R )
>
> S = Successful build
> O = Successful Optional dependency
> Ot = Total number of Optional dependencies
> U = Unseccessful build
> R = Successful Required dependency
> Rt = Total number of Required dependencies
>
> Which means the numerator is augmented for every successful optional
> dependency and the denominator is decremented for every unsuccessful
> required dependency.
>
> You would find that project like Centipede that are very modular
> would fare much better, and it would encourage that modular way
> of development.
>
> For something like Foo Project, we would have:
>
> Optional Dependency: DBPool, XMLPersistance
> Required Dependency: XML-APIs, Bar Project
>
> If all works properly:
>
> (1 + 2/2) / (0 + 2/2) = (1 + 1) / (1) = 2/1 = 2
>
> If an optional dep fails the second time:
>
> (2 + 1/2) / (0 + 2/2) = (2.5) / (1) = 2.5
>
> If a required dep fails the third time:
>
> (2 + 2/2) / (1 + 2/1) = (2.5) / (1 + 2) = 2.5/3 = 0.83
>
> And if two optionals fail the fourth time:
>
> (3 + 0/2) / (1 + 2/2) = (3) / (1 + 1) = 3/2 = 1.5
>
> As you can see, failures hurt, but there is a difference
> between a true dependency and an optional dependency.
>
> The FOG value of 1.5 after four builds versus the FOG value if
> everything was successful in every build would be 5. As you can
> see there is a penalty. If the optional dependencies failed every
> time though the result would be 4.
>
> There are some problems with this approach, so it is not perfect.
> For example: 0/0 would have to be interpreted as 1 as opposed to
> NaN. That would make the deps to evaluate to 1 if there are no
> dependencies and avoids the DivideByZeroException if there are no
> failures.
>
> For example something like Basic Project that has no dependencies
> whatsoever would be evaluated strictly by its pass/fail rate.
> If it passes four times, its FOG value would be 5 (i.e. num Passes
> + [ 0/0 == 1 ] ). If it failed 2 out of four times it would be
> 1. If it failed one out of four times it would be 2.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: gump-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: gump-help@jakarta.apache.org
RE: FOG Factor
Posted by Adam Jack <aj...@TrySybase.com>.
Ok, my head is now a fog. ;-)
Do we need to be so "fair", or so complex? This is just a rough statistic.
If an optional dependency is missing the project ought build, right, so it'd
get "successful". Maybe this'd promote more 'optional' savvy
descriptors/builds -- and (as you say) more modules.
regards
Adam
-----Original Message-----
From: news [mailto:news@main.gmane.org]On Behalf Of Berin Loritsch
Sent: Thursday, June 05, 2003 7:27 AM
To: gump@jakarta.apache.org
Subject: Re: FOG Factor
Adam Jack wrote:
> For some reason I got to thinking about the "Friend of Gump" rating again
> today. (Probably 'cos I am curious to know how centipede would build on
full
> gump, but know it hasn't built in a week or many more 'cos of dependent
> failures). As product get higher up the stack they build less, and that
> limits gumps effectiveness at keeping community unity. As such, I think
FOG
> is a very important statistic.
>
> I am sure there are some interesting statistics (total # of sub-projects a
> project depends upon, total # of project dependent upon this) I wonder if
> there is a value in the following simple approach.
>
> Gump could store three counters for each project (1) successful builds [S]
> (2) unsuccessful builds [U] (2) missing dependency [D]. I wonder if the
"FOG
> factor" ought be:
>
> [S] / [U] + [D].
>
> I thought about weighting [U] or [D], so as not to penalise a project for
> it's dependencies, but the end result is the same. Build on quicksand and
> you'll sink, however stable your are.
One of the things about GUMP is that it is an _all_ or _nothing_ thing.
Either ALL of your dependencies build or your project fails--even if the
dependency is optional. If your build can survive one or two different
dependencies not being present, should you _really_ be penalized for it?
I mean if we are going to do an FOG type of thing, we really need to
take into consideration the possibility of *optional* dependencies.
A modified version of the algorithm above accounting for optional
dependencies might look like this:
( S + O/Ot ) / ( U + Rt/R )
S = Successful build
O = Successful Optional dependency
Ot = Total number of Optional dependencies
U = Unseccessful build
R = Successful Required dependency
Rt = Total number of Required dependencies
Which means the numerator is augmented for every successful optional
dependency and the denominator is decremented for every unsuccessful
required dependency.
You would find that project like Centipede that are very modular
would fare much better, and it would encourage that modular way
of development.
For something like Foo Project, we would have:
Optional Dependency: DBPool, XMLPersistance
Required Dependency: XML-APIs, Bar Project
If all works properly:
(1 + 2/2) / (0 + 2/2) = (1 + 1) / (1) = 2/1 = 2
If an optional dep fails the second time:
(2 + 1/2) / (0 + 2/2) = (2.5) / (1) = 2.5
If a required dep fails the third time:
(2 + 2/2) / (1 + 2/1) = (2.5) / (1 + 2) = 2.5/3 = 0.83
And if two optionals fail the fourth time:
(3 + 0/2) / (1 + 2/2) = (3) / (1 + 1) = 3/2 = 1.5
As you can see, failures hurt, but there is a difference
between a true dependency and an optional dependency.
The FOG value of 1.5 after four builds versus the FOG value if
everything was successful in every build would be 5. As you can
see there is a penalty. If the optional dependencies failed every
time though the result would be 4.
There are some problems with this approach, so it is not perfect.
For example: 0/0 would have to be interpreted as 1 as opposed to
NaN. That would make the deps to evaluate to 1 if there are no
dependencies and avoids the DivideByZeroException if there are no
failures.
For example something like Basic Project that has no dependencies
whatsoever would be evaluated strictly by its pass/fail rate.
If it passes four times, its FOG value would be 5 (i.e. num Passes
+ [ 0/0 == 1 ] ). If it failed 2 out of four times it would be
1. If it failed one out of four times it would be 2.
---------------------------------------------------------------------
To unsubscribe, e-mail: gump-unsubscribe@jakarta.apache.org
For additional commands, e-mail: gump-help@jakarta.apache.org
Re: FOG Factor
Posted by Berin Loritsch <bl...@apache.org>.
Adam Jack wrote:
> For some reason I got to thinking about the "Friend of Gump" rating again
> today. (Probably 'cos I am curious to know how centipede would build on full
> gump, but know it hasn't built in a week or many more 'cos of dependent
> failures). As product get higher up the stack they build less, and that
> limits gumps effectiveness at keeping community unity. As such, I think FOG
> is a very important statistic.
>
> I am sure there are some interesting statistics (total # of sub-projects a
> project depends upon, total # of project dependent upon this) I wonder if
> there is a value in the following simple approach.
>
> Gump could store three counters for each project (1) successful builds [S]
> (2) unsuccessful builds [U] (2) missing dependency [D]. I wonder if the "FOG
> factor" ought be:
>
> [S] / [U] + [D].
>
> I thought about weighting [U] or [D], so as not to penalise a project for
> it's dependencies, but the end result is the same. Build on quicksand and
> you'll sink, however stable your are.
One of the things about GUMP is that it is an _all_ or _nothing_ thing.
Either ALL of your dependencies build or your project fails--even if the
dependency is optional. If your build can survive one or two different
dependencies not being present, should you _really_ be penalized for it?
I mean if we are going to do an FOG type of thing, we really need to
take into consideration the possibility of *optional* dependencies.
A modified version of the algorithm above accounting for optional
dependencies might look like this:
( S + O/Ot ) / ( U + Rt/R )
S = Successful build
O = Successful Optional dependency
Ot = Total number of Optional dependencies
U = Unseccessful build
R = Successful Required dependency
Rt = Total number of Required dependencies
Which means the numerator is augmented for every successful optional
dependency and the denominator is decremented for every unsuccessful
required dependency.
You would find that project like Centipede that are very modular
would fare much better, and it would encourage that modular way
of development.
For something like Foo Project, we would have:
Optional Dependency: DBPool, XMLPersistance
Required Dependency: XML-APIs, Bar Project
If all works properly:
(1 + 2/2) / (0 + 2/2) = (1 + 1) / (1) = 2/1 = 2
If an optional dep fails the second time:
(2 + 1/2) / (0 + 2/2) = (2.5) / (1) = 2.5
If a required dep fails the third time:
(2 + 2/2) / (1 + 2/1) = (2.5) / (1 + 2) = 2.5/3 = 0.83
And if two optionals fail the fourth time:
(3 + 0/2) / (1 + 2/2) = (3) / (1 + 1) = 3/2 = 1.5
As you can see, failures hurt, but there is a difference
between a true dependency and an optional dependency.
The FOG value of 1.5 after four builds versus the FOG value if
everything was successful in every build would be 5. As you can
see there is a penalty. If the optional dependencies failed every
time though the result would be 4.
There are some problems with this approach, so it is not perfect.
For example: 0/0 would have to be interpreted as 1 as opposed to
NaN. That would make the deps to evaluate to 1 if there are no
dependencies and avoids the DivideByZeroException if there are no
failures.
For example something like Basic Project that has no dependencies
whatsoever would be evaluated strictly by its pass/fail rate.
If it passes four times, its FOG value would be 5 (i.e. num Passes
+ [ 0/0 == 1 ] ). If it failed 2 out of four times it would be
1. If it failed one out of four times it would be 2.