Re: [sage-release] Re: Sage 7.4.beta2 released

2016-08-29 Thread leif
Sébastien Labbé wrote:
> All tests passed on Ubuntu 14.04 with make ptestlong using
> --optional=mpir,python2,sage
> 
> Other than the Tutte polynomial one, I get two other slow doctests that
> are not marked with #long time. I can not confirm whether it is a
> regression as I don't keep my old version of sage.
> 
> 
> sage -t --long --warn-long 31.5 src/sage/graphs/generators/families.py
> **
> File "src/sage/graphs/generators/families.py", line 2053, in
> sage.graphs.generators.families.petersen_family
> Warning, slow doctest:
> F2 = graphs.petersen_family(generate=True)
> Test ran for 99.31 s
> [280 tests, 128.07 s]
> 
> 
> sage -t --long --warn-long 31.5 src/sage/combinat/posets/posets.py
> **
> File "src/sage/combinat/posets/posets.py", line 6430, in
> sage.combinat.posets.posets.FinitePoset._kl_poly
> Warning, slow doctest:
> L._kl_poly()
> Test ran for 127.72 s
> [1122 tests, 146.65 s]

Both keep calling 'pip list' as well (same issue as with Tutte polynomial).

Perhaps retry with

diff --git a/src/sage/misc/package.py b/src/sage/misc/package.py
index bdddb63..6422e87 100644
--- a/src/sage/misc/package.py
+++ b/src/sage/misc/package.py
@@ -290,7 +290,7 @@ def installed_packages():
 """
 from sage.env import SAGE_SPKG_INST
 installed = dict(pkgname_split(pkgname) for pkgname in
os.listdir(SAGE_SPKG_INST))
-installed.update(pip_installed_packages())
+# installed.update(pip_installed_packages())
 return installed

 def is_package_installed(package):


(Don't forget to run './sage -b' after changing the file, or just change
$SAGE_LOCAL/lib/python/site-packages/sage/misc/package.py temporarily.)

A branch doing a bit more can be found on #21291 [1].


The main issue is of course still that is_package_installed() gets
called far too often.  (There are meanwhile tickets addressing some
instances at least.)


-leif

[1] https://trac.sagemath.org/ticket/21291

-- 
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 sage-release+unsubscr...@googlegroups.com.
To post to this group, send email to sage-release@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-release.
For more options, visit https://groups.google.com/d/optout.


[sage-release] Re: Sage 7.4.beta2 released

2016-08-29 Thread Sébastien Labbé
All tests passed on Ubuntu 14.04 with make ptestlong using 
--optional=mpir,python2,sage

Other than the Tutte polynomial one, I get two other slow doctests that are 
not marked with #long time. I can not confirm whether it is a regression as 
I don't keep my old version of sage.


sage -t --long --warn-long 31.5 src/sage/graphs/generators/families.py
**
File "src/sage/graphs/generators/families.py", line 2053, in 
sage.graphs.generators.families.petersen_family
Warning, slow doctest:
F2 = graphs.petersen_family(generate=True)
Test ran for 99.31 s
[280 tests, 128.07 s]


sage -t --long --warn-long 31.5 src/sage/combinat/posets/posets.py
**
File "src/sage/combinat/posets/posets.py", line 6430, in 
sage.combinat.posets.posets.FinitePoset._kl_poly
Warning, slow doctest:
L._kl_poly()
Test ran for 127.72 s
[1122 tests, 146.65 s]
 

-- 
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 sage-release+unsubscr...@googlegroups.com.
To post to this group, send email to sage-release@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-release.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-release] Re: Sage 7.4.beta2 released

2016-08-27 Thread leif
leif wrote:
> Steven Trogdon wrote:
>> I have the following failure:
>>
>> sage: P = graphs.PetersenGraph() ## line 539 ##
>> sage: P.tutte_polynomial() ## line 540 ##
>> x^9 + 6*x^8 + 21*x^7 + 56*x^6 + 12*x^5*y + y^6 + 114*x^5 + 70*x^4*y +
>> 30*x^3*y^2 + 15*x^2*y^3 + 10*x*y^4 + 9*y^5 + 170*x^4 + 170*x^3*y +
>> 105*x^2*y^2 + 65*x*y^3 + 35*y^4 + 180*x^3 + 240*x^2*y + 171*x*y^2 +
>> 75*y^3 + 120*x^2 + 168*x*y + 84*y^2 + 36*x + 36*y
>> sage: G = graphs.RandomGNP(10,0.6) ## line 549 ##
>> sage: G.tutte_polynomial()(1,1) == G.spanning_trees_count() ## line 550 ##
>>
>> **
>> --
>> sage -t --long src/sage/graphs/tutte_polynomial.py  # Timed out
>> --
>>
>> which indicates progress in testing tutte_polynomial.py. When the file
>> is tested individually I get
>>
>> sage -t --long src/sage/graphs/tutte_polynomial.py
>> [105 tests, 1621.87 s]
>> --
>> All tests passed!
>> --
>> Total time for all tests: 1622.0 seconds
>> cpu time: 26.9 seconds
>> cumulative wall time: 1621.9 seconds
>>
>> The most recent previous test is with 7.2.rc2 where I have
>>
>> sage -t --long src/sage/graphs/tutte_polynomial.py
>> [105 tests, 3.99 s]
>>
>> And with my sage-on-gentoo install (7.4.beta2) I have
>>
>> sage -t --long
>> /usr/lib/python2.7/site-packages/sage/graphs/tutte_polynomial.py
>> [105 tests, 3.52 s]
>> --
>> All tests passed!
>> --
>> Total time for all tests: 3.6 seconds
>> cpu time: 3.5 seconds
>> cumulative wall time: 3.5 seconds
>>
>> So, something strange is going on?
> 
> Good catch, that's clearly a regression.  (For me it never timed out in
> ptestlong tho.)
> 
> 
> Sage 7.3, GCC 5.4:
> ==
> sage -t --long src/sage/graphs/tutte_polynomial.py
> [105 tests, 2.41 s]
> --
> All tests passed!
> --
> Total time for all tests: 2.5 seconds
> cpu time: 2.2 seconds
> cumulative wall time: 2.4 seconds
> 
> real  0m5.195s
> user  0m3.940s
> sys   0m0.750s
> 
> 
> Sage 7.3, GCC 6.1:
> ==
> sage -t --long ../src/sage/graphs/tutte_polynomial.py
> [105 tests, 3.23 s]
> --
> All tests passed!
> --
> Total time for all tests: 3.3 seconds
> cpu time: 3.0 seconds
> cumulative wall time: 3.2 seconds
> 
> real  0m7.406s
> user  0m6.150s
> sys   0m0.800s
> 
> 
> Sage 7.4.beta2, GCC 6.1:
> 
> sage -t --long src/sage/graphs/tutte_polynomial.py
> [105 tests, 956.75 s]
> --
> All tests passed!
> --
> Total time for all tests: 956.8 seconds
> cpu time: 13.8 seconds
> cumulative wall time: 956.7 seconds
> 
> real  15m59.486s
> user  12m9.160s
> sys   3m56.850s
> 
> 
> There's a Python process doing almost nothing most of the time...

P.S.:  It's not even a '# long' test (105 tests also without '--long').

And the regression happened *after* beta0 (i.e., in beta1 or beta2).


-leif

-- 
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 sage-release+unsubscr...@googlegroups.com.
To post to this group, send email to sage-release@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-release.
For more options, visit https://groups.google.com/d/optout.


[sage-release] Re: Sage 7.4.beta2 released

2016-08-27 Thread Volker Braun
This is https://trac.sagemath.org/ticket/21355

On Saturday, August 27, 2016 at 8:03:10 PM UTC+2, Steven Trogdon wrote:
>
> sage -t --long src/sage/graphs/tutte_polynomial.py  # Timed out
>

-- 
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 sage-release+unsubscr...@googlegroups.com.
To post to this group, send email to sage-release@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-release.
For more options, visit https://groups.google.com/d/optout.


Re: [sage-release] Re: Sage 7.4.beta2 released

2016-08-27 Thread leif
Steven Trogdon wrote:
> I have the following failure:
> 
> sage: P = graphs.PetersenGraph() ## line 539 ##
> sage: P.tutte_polynomial() ## line 540 ##
> x^9 + 6*x^8 + 21*x^7 + 56*x^6 + 12*x^5*y + y^6 + 114*x^5 + 70*x^4*y +
> 30*x^3*y^2 + 15*x^2*y^3 + 10*x*y^4 + 9*y^5 + 170*x^4 + 170*x^3*y +
> 105*x^2*y^2 + 65*x*y^3 + 35*y^4 + 180*x^3 + 240*x^2*y + 171*x*y^2 +
> 75*y^3 + 120*x^2 + 168*x*y + 84*y^2 + 36*x + 36*y
> sage: G = graphs.RandomGNP(10,0.6) ## line 549 ##
> sage: G.tutte_polynomial()(1,1) == G.spanning_trees_count() ## line 550 ##
> 
> **
> --
> sage -t --long src/sage/graphs/tutte_polynomial.py  # Timed out
> --
> 
> which indicates progress in testing tutte_polynomial.py. When the file
> is tested individually I get
> 
> sage -t --long src/sage/graphs/tutte_polynomial.py
> [105 tests, 1621.87 s]
> --
> All tests passed!
> --
> Total time for all tests: 1622.0 seconds
> cpu time: 26.9 seconds
> cumulative wall time: 1621.9 seconds
> 
> The most recent previous test is with 7.2.rc2 where I have
> 
> sage -t --long src/sage/graphs/tutte_polynomial.py
> [105 tests, 3.99 s]
> 
> And with my sage-on-gentoo install (7.4.beta2) I have
> 
> sage -t --long
> /usr/lib/python2.7/site-packages/sage/graphs/tutte_polynomial.py
> [105 tests, 3.52 s]
> --
> All tests passed!
> --
> Total time for all tests: 3.6 seconds
> cpu time: 3.5 seconds
> cumulative wall time: 3.5 seconds
> 
> So, something strange is going on?

Good catch, that's clearly a regression.  (For me it never timed out in
ptestlong tho.)


Sage 7.3, GCC 5.4:
==
sage -t --long src/sage/graphs/tutte_polynomial.py
[105 tests, 2.41 s]
--
All tests passed!
--
Total time for all tests: 2.5 seconds
cpu time: 2.2 seconds
cumulative wall time: 2.4 seconds

real0m5.195s
user0m3.940s
sys 0m0.750s


Sage 7.3, GCC 6.1:
==
sage -t --long ../src/sage/graphs/tutte_polynomial.py
[105 tests, 3.23 s]
--
All tests passed!
--
Total time for all tests: 3.3 seconds
cpu time: 3.0 seconds
cumulative wall time: 3.2 seconds

real0m7.406s
user0m6.150s
sys 0m0.800s


Sage 7.4.beta2, GCC 6.1:

sage -t --long src/sage/graphs/tutte_polynomial.py
[105 tests, 956.75 s]
--
All tests passed!
--
Total time for all tests: 956.8 seconds
cpu time: 13.8 seconds
cumulative wall time: 956.7 seconds

real15m59.486s
user12m9.160s
sys 3m56.850s


There's a Python process doing almost nothing most of the time...


-leif

-- 
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 sage-release+unsubscr...@googlegroups.com.
To post to this group, send email to sage-release@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-release.
For more options, visit https://groups.google.com/d/optout.


[sage-release] Re: Sage 7.4.beta2 released

2016-08-27 Thread Steven Trogdon
I have the following failure:

sage: P = graphs.PetersenGraph() ## line 539 ##
sage: P.tutte_polynomial() ## line 540 ##
x^9 + 6*x^8 + 21*x^7 + 56*x^6 + 12*x^5*y + y^6 + 114*x^5 + 70*x^4*y + 
30*x^3*y^2 + 15*x^2*y^3 + 10*x*y^4 + 9*y^5 + 170*x^4 + 170*x^3*y + 
105*x^2*y^2 + 65*x*y^3 + 35*y^4 + 180*x^3 + 240*x^2*y + 171*x*y^2 + 75*y^3 
+ 120*x^2 + 168*x*y + 84*y^2 + 36*x + 36*y
sage: G = graphs.RandomGNP(10,0.6) ## line 549 ##
sage: G.tutte_polynomial()(1,1) == G.spanning_trees_count() ## line 550 ##

**
--
sage -t --long src/sage/graphs/tutte_polynomial.py  # Timed out
--

which indicates progress in testing tutte_polynomial.py. When the file is 
tested individually I get

sage -t --long src/sage/graphs/tutte_polynomial.py
[105 tests, 1621.87 s]
--
All tests passed!
--
Total time for all tests: 1622.0 seconds
cpu time: 26.9 seconds
cumulative wall time: 1621.9 seconds

The most recent previous test is with 7.2.rc2 where I have

sage -t --long src/sage/graphs/tutte_polynomial.py
[105 tests, 3.99 s]

And with my sage-on-gentoo install (7.4.beta2) I have

sage -t --long 
/usr/lib/python2.7/site-packages/sage/graphs/tutte_polynomial.py
[105 tests, 3.52 s]
--
All tests passed!
--
Total time for all tests: 3.6 seconds
cpu time: 3.5 seconds
cumulative wall time: 3.5 seconds

So, something strange is going on?

On Friday, August 26, 2016 at 12:51:24 PM UTC-5, Volker Braun wrote:
>
> As always, you can get the latest beta version from the "develop" git 
> branch. Alternatively, the self-contained source tarball is at 
> http://www.sagemath.org/download-latest.html
>
>

-- 
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 sage-release+unsubscr...@googlegroups.com.
To post to this group, send email to sage-release@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-release.
For more options, visit https://groups.google.com/d/optout.