IMHO that test is ridiculously slow for what it does. How does min_rays=7 
test anything that isn't already tested with min_rays=4, say? It just 
grinds CPU cycles, but doesn't cover any new line of code.



On Saturday, March 12, 2016 at 6:25:05 PM UTC+1, Michael Orlitzky wrote:
>
> On 03/12/2016 12:54 AM, Andrey Novoseltsev wrote: 
> > On Friday, 11 March 2016 03:08:47 UTC-7, Volker Braun wrote: 
> > 
> >     I've seen that before on the buildbot. The doctest in question 
> >     generates a random cone, it might randomly pick a very hard problem 
> >     (even though we should be fixing the random seed). I haven't had 
> >     time to investigate. 
> > 
>
> Sorry I missed the beginning of this thread. This is the culprit: 
>
>     Ensure that we can obtain a cone in three dimensions with a large 
>     number (in particular, more than 2*dim) rays:: 
>
>         sage: set_random_seed()                  # long time 
>         sage: K = random_cone(min_ambient_dim=3, # long time 
>         ....:                 max_ambient_dim=3, # long time 
>         ....:                 min_rays=7)        # long time 
>         sage: K.nrays() >= 7                     # long time 
>         True 
>         sage: K.lattice_dim()                    # long time 
>         3 
>
> It's a test for random_cone(). When the user asks for a cone in three 
> dimensions having (at least) seven generating rays, that can fail. Often 
> the first six rays will generate all of R^3, at which point it's 
> hopeless to continue to add rays. Something similar happens if the user 
> wants a strictly convex cone, but that's already impossible, because 
> we've generated two rays that point in opposite directions. 
>
> The random_cone() function deals with that by giving up. We throw out 
> the hopeless set of rays, and start over. The point of that test is to 
> make sure that if you ask for something hard (but not impossible), then 
> it will *eventually* succeed. 
>
> Did any of those # very long time proposals ever come to fruition? If 
> not, I'm much more confident in the behavior of random_cone() now, so it 
> may make sense to disable that test and open a ticket to replace it at a 
> later time when we have more control over the test suite. 
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-release" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-release.
For more options, visit https://groups.google.com/d/optout.

Reply via email to