On Thu, Nov 28, 2019 at 7:45 PM Dima Pasechnik <[email protected]> wrote:
>
> what does happen if you run
>
> sage: from sage.graphs.strongly_regular_db import SRG_280_135_70_60
> sage: SRG_280_135_70_60()
>
> Does it print
>
> J_2 on cosets of 3.PGL(2,9): Graph on 280 vertices

here is a ticket that improves this function by switching from GAP to
libGAP interface,
please review
https://trac.sagemath.org/ticket/28818

Perhaps that was the general flakiness of pexpect that caused that failure.

Dima
>
> ?
>
>
> On Thu, 28 Nov 2019, 19:06 Emmanuel Charpentier, 
> <[email protected]> wrote:
>>
>> After rebuilding from scratch, reinstalling packages (this time including 
>> gap_packages), ptestlong gives me :
>>
>> no transient failure
>> the usual permanent failure on gap_packages
>> and a very strange, reproducible failure on 
>> rc/sage/graphs/strongly_regular_db.pyx.
>>
>>
>> Details on the latter :
>>
>> charpent@p-202-021:/usr/local/sage-9$ sage -t --long --warn-long 53.5 
>> src/sage/graphs/strongly_regular_db.pyx  # 4 doctests failed
>> Running doctests with ID 2019-11-28-19-21-27-1f4d95ea.
>> Git branch: develop
>> Using 
>> --optional=build,dochtml,dot2tex,fricas,gap_packages,giacpy_sage,libsemigroups,memlimit,python2,sage,sagenb
>> Doctesting 1 file.
>> sage -t --long --warn-long 53.5 src/sage/graphs/strongly_regular_db.pyx
>> **********************************************************************
>> File "src/sage/graphs/strongly_regular_db.pyx", line 2242, in 
>> sage.graphs.strongly_regular_db.SRG_280_135_70_60
>> Failed example:
>>     g=SRG_280_135_70_60()                  # long time # optional - 
>> gap_packages
>> Exception raised:
>>     Traceback (most recent call last):
>>       File 
>> "/usr/local/sage-9/local/lib/python3.7/site-packages/sage/interfaces/gap.py",
>>  line 769, in _eval_line
>>         raise RuntimeError("%s produced error output\n%s\n   executing 
>> %s"%(self, error,line))
>>     RuntimeError: Gap produced error output
>>     Error, Record Element: <rec> must be a record (not a boolean or fail)
>>
>>        executing \$sage1:=AtlasGenerators("J2",2).generators;;
>>
>>     During handling of the above exception, another exception occurred:
>>
>>     Traceback (most recent call last):
>>       File 
>> "/usr/local/sage-9/local/lib/python3.7/site-packages/sage/interfaces/expect.py",
>>  line 1471, in __init__
>>         self._name = parent._create(value, name=name)
>>       File 
>> "/usr/local/sage-9/local/lib/python3.7/site-packages/sage/interfaces/interface.py",
>>  line 491, in _create
>>         self.set(name, value)
>>       File 
>> "/usr/local/sage-9/local/lib/python3.7/site-packages/sage/interfaces/gap.py",
>>  line 1427, in set
>>         self._eval_line(cmd, allow_use_file=True)
>>       File 
>> "/usr/local/sage-9/local/lib/python3.7/site-packages/sage/interfaces/gap.py",
>>  line 803, in _eval_line
>>         raise RuntimeError(exc)
>>     RuntimeError: Gap produced error output
>>     Error, Record Element: <rec> must be a record (not a boolean or fail)
>>
>>        executing \$sage1:=AtlasGenerators("J2",2).generators;;
>>
>>     During handling of the above exception, another exception occurred:
>>
>>     Traceback (most recent call last):
>>       File 
>> "/usr/local/sage-9/local/lib/python3.7/site-packages/sage/doctest/forker.py",
>>  line 681, in _run
>>         self.compile_and_execute(example, compiler, test.globs)
>>       File 
>> "/usr/local/sage-9/local/lib/python3.7/site-packages/sage/doctest/forker.py",
>>  line 1123, in compile_and_execute
>>         exec(compiled, globs)
>>       File "<doctest sage.graphs.strongly_regular_db.SRG_280_135_70_60[1]>", 
>> line 1, in <module>
>>         g=SRG_280_135_70_60()                  # long time # optional - 
>> gap_packages
>>       File "sage/graphs/strongly_regular_db.pyx", line 2253, in 
>> sage.graphs.strongly_regular_db.SRG_280_135_70_60 
>> (build/cythonized/sage/graphs/strongly_regular_db.c:34308)
>>         J2    = PermutationGroup(gap('AtlasGenerators("J2",2).generators'))
>>       File 
>> "/usr/local/sage-9/local/lib/python3.7/site-packages/sage/interfaces/interface.py",
>>  line 288, in __call__
>>         return cls(self, x, name=name)
>>       File 
>> "/usr/local/sage-9/local/lib/python3.7/site-packages/sage/interfaces/expect.py",
>>  line 1476, in __init__
>>         raise_(TypeError, TypeError(*x.args), sys.exc_info()[2])
>>       File "/usr/local/sage-9/local/lib/python3.7/site-packages/six.py", 
>> line 692, in reraise
>>         raise value.with_traceback(tb)
>>       File 
>> "/usr/local/sage-9/local/lib/python3.7/site-packages/sage/interfaces/expect.py",
>>  line 1471, in __init__
>>         self._name = parent._create(value, name=name)
>>       File 
>> "/usr/local/sage-9/local/lib/python3.7/site-packages/sage/interfaces/interface.py",
>>  line 491, in _create
>>         self.set(name, value)
>>       File 
>> "/usr/local/sage-9/local/lib/python3.7/site-packages/sage/interfaces/gap.py",
>>  line 1427, in set
>>         self._eval_line(cmd, allow_use_file=True)
>>       File 
>> "/usr/local/sage-9/local/lib/python3.7/site-packages/sage/interfaces/gap.py",
>>  line 803, in _eval_line
>>         raise RuntimeError(exc)
>>     TypeError: Gap produced error output
>>     Error, Record Element: <rec> must be a record (not a boolean or fail)
>>
>>        executing \$sage1:=AtlasGenerators("J2",2).generators;;
>> **********************************************************************
>> File "src/sage/graphs/strongly_regular_db.pyx", line 2243, in 
>> sage.graphs.strongly_regular_db.SRG_280_135_70_60
>> Failed example:
>>     g.is_strongly_regular(parameters=True) # long time # optional - 
>> gap_packages
>> Exception raised:
>>     Traceback (most recent call last):
>>       File 
>> "/usr/local/sage-9/local/lib/python3.7/site-packages/sage/doctest/forker.py",
>>  line 681, in _run
>>         self.compile_and_execute(example, compiler, test.globs)
>>       File 
>> "/usr/local/sage-9/local/lib/python3.7/site-packages/sage/doctest/forker.py",
>>  line 1123, in compile_and_execute
>>         exec(compiled, globs)
>>       File "<doctest sage.graphs.strongly_regular_db.SRG_280_135_70_60[2]>", 
>> line 1, in <module>
>>         g.is_strongly_regular(parameters=True) # long time # optional - 
>> gap_packages
>>     NameError: name 'g' is not defined
>> **********************************************************************
>> File "src/sage/graphs/strongly_regular_db.pyx", line 2349, in 
>> sage.graphs.strongly_regular_db.SRG_416_100_36_20
>> Failed example:
>>     g = SRG_416_100_36_20()                # optional - gap_packages # long 
>> time
>> Exception raised:
>>     Traceback (most recent call last):
>>       File 
>> "/usr/local/sage-9/local/lib/python3.7/site-packages/sage/doctest/forker.py",
>>  line 681, in _run
>>         self.compile_and_execute(example, compiler, test.globs)
>>       File 
>> "/usr/local/sage-9/local/lib/python3.7/site-packages/sage/doctest/forker.py",
>>  line 1123, in compile_and_execute
>>         exec(compiled, globs)
>>       File "<doctest sage.graphs.strongly_regular_db.SRG_416_100_36_20[1]>", 
>> line 1, in <module>
>>         g = SRG_416_100_36_20()                # optional - gap_packages # 
>> long time
>>       File "sage/graphs/strongly_regular_db.pyx", line 2359, in 
>> sage.graphs.strongly_regular_db.SRG_416_100_36_20 
>> (build/cythonized/sage/graphs/strongly_regular_db.c:36484)
>>         h.add_edges(g.Orbit([1,5],libgap.OnSets))
>>       File "sage/libs/gap/element.pyx", line 2666, in 
>> sage.libs.gap.element.GapElement_MethodProxy.__call__ 
>> (build/cythonized/sage/libs/gap/element.c:20291)
>>         return GapElement_Function.__call__(self, * ([self.first_argument] + 
>> list(args)))
>>       File "sage/libs/gap/element.pyx", line 2514, in 
>> sage.libs.gap.element.GapElement_Function.__call__ 
>> (build/cythonized/sage/libs/gap/element.c:19304)
>>         sig_on()
>>     sage.libs.gap.util.GAPError: Error, no method found! Error, no 1st 
>> choice method found for `GeneratorsOfMagmaWithInverses' on 1 arguments
>>     The 1st argument is 'fail' which might point to an earlier problem
>> **********************************************************************
>> File "src/sage/graphs/strongly_regular_db.pyx", line 2350, in 
>> sage.graphs.strongly_regular_db.SRG_416_100_36_20
>> Failed example:
>>     g.is_strongly_regular(parameters=True) # optional - gap_packages # long 
>> time
>> Exception raised:
>>     Traceback (most recent call last):
>>       File 
>> "/usr/local/sage-9/local/lib/python3.7/site-packages/sage/doctest/forker.py",
>>  line 681, in _run
>>         self.compile_and_execute(example, compiler, test.globs)
>>       File 
>> "/usr/local/sage-9/local/lib/python3.7/site-packages/sage/doctest/forker.py",
>>  line 1123, in compile_and_execute
>>         exec(compiled, globs)
>>       File "<doctest sage.graphs.strongly_regular_db.SRG_416_100_36_20[2]>", 
>> line 1, in <module>
>>         g.is_strongly_regular(parameters=True) # optional - gap_packages # 
>> long time
>>     NameError: name 'g' is not defined
>> **********************************************************************
>> 2 items had failures:
>>    2 of   4 in sage.graphs.strongly_regular_db.SRG_280_135_70_60
>>    2 of   4 in sage.graphs.strongly_regular_db.SRG_416_100_36_20
>>     [334 tests, 4 failures, 812.98 s]
>> ----------------------------------------------------------------------
>> sage -t --long --warn-long 53.5 src/sage/graphs/strongly_regular_db.pyx  # 4 
>> doctests failed
>> ----------------------------------------------------------------------
>> Total time for all tests: 813.1 seconds
>>     cpu time: 27.9 seconds
>>     cumulative wall time: 813.0 seconds
>>
>> The discrepancy between CPU time and elapsed time is puzzling. It s not an 
>> artifact : a system monitor confirmed that CPU activity was minimal during 
>> most of this test.
>>
>> I have been unable to reproduce the problem on my other machine, running the 
>> same rebuilt 9.0.beta7, where this tests passes without any failure.
>>
>> Cherry on the cake: I have been unable to run ptestalllong on this machine : 
>> this (reproducibly !) dies with a "too many open files" error (not captured 
>> in the log) about halfway, after a (failed) attempt to run sage -t --long 
>> src/sage/groups/perm_gps/permgroup_named.py, which passes normally on the 
>> other machine.
>>
>> Last lines of the log:
>>
>> Killing test src/sage/groups/perm_gps/permgroup_named.py
>> Killing test src/sage/combinat/designs/twographs.py
>> Killing test src/sage/databases/findstat.py
>> ----------------------------------------------------------------------
>> sage -t --long src/sage/graphs/strongly_regular_db.pyx  # 5 doctests failed
>> sage -t --long src/sage/graphs/generators/smallgraphs.py  # 6 doctests failed
>> sage -t --long src/sage/plot/animate.py  # 7 doctests failed
>> sage -t --long src/sage/combinat/posets/posets.py  # 1 doctest failed
>> sage -t --long src/sage/combinat/matrices/hadamard_matrix.py  # 2 doctests 
>> failed
>> sage -t --long src/sage/misc/latex.py  # 1 doctest failed
>> sage -t --long src/sage/combinat/designs/ext_rep.py  # 2 doctests failed
>> sage -t --long src/sage/coding/databases.py  # 2 doctests failed
>> sage -t --long src/sage/misc/persist.pyx  # 2 doctests failed
>> sage -t --long src/sage/repl/load.py  # 1 doctest failed
>> Doctests interrupted: 1444/3793 files tested
>> ----------------------------------------------------------------------
>>
>>
>> Any hint ?
>>
>>
>>
>> Le mercredi 27 novembre 2019 14:56:36 UTC+1, Emmanuel Charpentier a écrit :
>>>
>>> Doubleplusungood...
>>>
>>> On Deboan testing running on core i5 + 8 GB RAM, ptestalllong gets me (part 
>>> of) the usual suspects (transient failures, plus 6 (six) permanent failures 
>>> due to abort:
>>>
>>> | File                                                     | Result         
>>>      | P/T |
>>> |----------------------------------------------------------+---------------------+-----|
>>> | src/sage/crypto/mq/sr.py                                 | Killed due to 
>>> abort | P   |
>>> | src/sage/rings/polynomial/multi_polynomial_sequence.py   | Killed due to 
>>> abort | P   |
>>> | src/sage/combinat/posets/posets.py                       | 1 doctest 
>>> failed    | T   |
>>> | src/sage/plot/animate.py                                 | 7 doctests 
>>> failed   | T   |
>>> | src/sage/combinat/matrices/hadamard_matrix.py            | 2 doctests 
>>> failed   | T   |
>>> | src/sage/rings/polynomial/pbori.pyx                      | Killed due to 
>>> abort | P   |
>>> | src/sage/misc/latex.py                                   | 1 doctest 
>>> failed    | T   |
>>> | src/sage/coding/databases.py                             | 2 doctests 
>>> failed   | T   |
>>> | src/sage/misc/persist.pyx                                | 2 doctests 
>>> failed   | T   |
>>> | src/sage/repl/load.py                                    | 1 doctest 
>>> failed    | T   |
>>> | src/sage/graphs/graph_latex.py                           | 2 doctests 
>>> failed   | T   |
>>> | src/sage/rings/polynomial/polynomial_ring_constructor.py | Killed due to 
>>> abort | P   |
>>> | src/sage/sat/solvers/dimacs.py                           | Killed due to 
>>> abort | P   |
>>> | src/doc/en/reference/sat/index.rst                       | Killed due to 
>>> abort | P   |
>>> | src/sage/sat/boolean_polynomials.py                      | Killed due to 
>>> abort | P   |
>>> | src/sage/misc/remote_file.py                             | 2 doctests 
>>> failed   | T   |
>>> | src/sage/databases/findstat.py                           | 7 doctests 
>>> failed   | T   |
>>> | src/sage/interfaces/magma_free.py                        | 2 doctests 
>>> failed   | T   |
>>>
>>> Details : see the enclose checkerrs.txt
>>>
>>> HTH,
>>>
>>> Le mercredi 27 novembre 2019 01:28:33 UTC+1, Volker Braun a écrit :
>>>>
>>>> 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
>>>>
>>>>
>>>> d48a21c149 (tag: 9.0.beta7, trac/develop) Updated SageMath version to 
>>>> 9.0.beta7
>>>> 22426a509b Trac #28797: 32-bit Python 3 failures in combinat
>>>> 54072f6c3b Trac #28795: Python 3 overflow in IntegerModRing pow
>>>> 7f2572fcdf Trac #28685: Upgrade from beautifulsoup to beautifulsoup4
>>>> c597ceea70 Trac #28737: remove deprecated stuff in old coercion model
>>>> a5c1185e7c Trac #28736: fix Texture for negative inputs
>>>> 6c66325a63 Trac #28698: py3: HTML documentation for GlobalOptions does not 
>>>> show up correctly
>>>> aa0ac42b16 Trac #28675: Deprecate GraphicsArray import from 
>>>> sage.plot.graphics
>>>> 5882b7f376 Trac #28564: Tensor Fields and Sections: Naming Consistencies
>>>> 8f9b67d25c Trac #28304: add type information to _repr_ of Macaulay2 
>>>> elements
>>>> e6e616380a Trac #28214: Compute and display graph of nth-preimage tree
>>>> a5bb40f91c Trac #27838: 5 internet doctests failing in findstat.py
>>>> 6553536757 Trac #27790: compatibility with cplex 12.9
>>>> 3c6a9108c1 Trac #23816: implement left action of matrices on scheme points
>>>> 9c6f3dab7f Trac #28732: update sagetex to version 3.4
>>>> f856552b81 Trac #28748: Python 3 debug build fails to start
>>>> 232ae1bddc (tag: 9.0.beta6) Updated SageMath version to 9.0.beta6
>>>>
>> --
>> 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 view this discussion on the web visit 
>> https://groups.google.com/d/msgid/sage-release/6f12ad28-90ce-44d5-9393-fb62dac58ade%40googlegroups.com.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-release/CAAWYfq2xfhDNQYFZkPToXq22RgHnZ6MJFa4K9RddvHqvskh1Hw%40mail.gmail.com.

Reply via email to