> On Feb 24, 2019, at 02:39 , Volker Braun <[email protected]> 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
Built w/o problems on three macOS platforms from a fresh clone of the develop
tree.
10.11.6 (mid-2015 MBP, Quad-core Core i7): all tests passed!
10.13.6 (2017 iMac Pro, 18-core Xeon W): all tests passed!
However, repeating the “loop” testing of polynomials.pyx showed the same
intermittent failures as before (this failure occurred in 4 of 8 tests).
10.14.2 (2017 MBP, Quad-core Core i7): one testing failure:
sage -t --long --warn-long 77.8 src/sage/numerical/backends/logging_backend.py
# Killed due to abort
When run by itself the test passed. I then reran the full test cycle, with no
failures (other than a batch of timeouts, due to my being unable to keep my MBP
from going to sleep at intervals).
Log for the logging_bsckend failure attached.
--
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.
sage -t --long --warn-long 77.8 src/sage/numerical/backends/logging_backend.py
Killed due to abort
**********************************************************************
Tests run before process (pid=64855) failed:
sage: from sage.numerical.backends.logging_backend import _format_function_call
## line 30 ##
sage: _format_function_call('foo', 17, hellooooo='goodbyeeee') ## line 31 ##
"foo(17, hellooooo='goodbyeeee')"
sage: sig_on_count() # check sig_on/off pairings (virtual doctest) ## line 33 ##
0
sage: from sage.numerical.backends.generic_backend import get_solver ## line 45
##
sage: from sage.numerical.backends.logging_backend import _make_wrapper,
LoggingBackend ## line 46 ##
sage: backend = get_solver(solver='GLPK') ## line 47 ##
sage: w = _make_wrapper(backend, 'ncols') ## line 48 ##
sage: logging_backend = LoggingBackend(backend) ## line 49 ##
sage: w(logging_backend) ## line 50 ##
# p.ncols()
# result: 0
0
sage: sig_on_count() # check sig_on/off pairings (virtual doctest) ## line 54 ##
0
sage: import sage.numerical.backends.logging_backend ## line 101 ##
sage: from sage.numerical.backends.logging_backend import LoggingBackend ##
line 102 ##
sage: from sage.numerical.backends.generic_backend import get_solver ## line
103 ##
sage: b = get_solver(solver = "GLPK") ## line 104 ##
sage: lb = LoggingBackend(backend=b) ## line 105 ##
sage: lb.add_variable(obj=42, name='Helloooooo') ## line 106 ##
# p.add_variable(obj=42, name='Helloooooo')
# result: 0
0
sage: lb.add_variable(obj=1789) ## line 110 ##
# p.add_variable(obj=1789)
# result: 1
1
sage: sig_on_count() # check sig_on/off pairings (virtual doctest) ## line 116
##
0
sage: import sage.numerical.backends.logging_backend ## line 125 ##
sage: from sage.numerical.backends.logging_backend import LoggingBackend ##
line 126 ##
sage: from sage.numerical.backends.generic_backend import get_solver ## line
127 ##
sage: b = get_solver(solver = "GLPK") ## line 128 ##
sage: lb = LoggingBackend(backend=b) ## line 129 ##
sage: sig_on_count() # check sig_on/off pairings (virtual doctest) ## line 130
##
0
sage: import sage.numerical.backends.logging_backend ## line 147 ##
sage: from sage.numerical.backends.logging_backend import LoggingBackend ##
line 148 ##
sage: from sage.numerical.backends.generic_backend import get_solver ## line
149 ##
sage: b = get_solver(solver = "GLPK") ## line 150 ##
sage: lb = LoggingBackend(backend=b) ## line 151 ##
sage: lb.print_ranges ## line 152 ##
<bound method ?.print_ranges of
<sage.numerical.backends.logging_backend.LoggingBackend object at 0x10621d050>>
sage: sig_on_count() # check sig_on/off pairings (virtual doctest) ## line 154
##
0
sage: import sage.numerical.backends.logging_backend ## line 180 ##
sage: from sage.numerical.backends.logging_backend import LoggingBackend ##
line 181 ##
sage: from sage.numerical.backends.generic_backend import get_solver ## line
182 ##
sage: b = get_solver(solver = "GLPK") ## line 183 ##
sage: lb = LoggingBackend(backend=b) ## line 184 ##
sage: lb.base_ring() ## line 185 ##
Real Double Field
sage: from sage.rings.all import QQ ## line 187 ##
sage: lb = LoggingBackend(backend=b, base_ring=QQ) ## line 188 ##
sage: lb.base_ring() ## line 189 ##
Rational Field
sage: sig_on_count() # check sig_on/off pairings (virtual doctest) ## line 191
##
0
sage: def compute_something(solver='GLPK'):
from sage.numerical.mip import MIPSolverException
mip = MixedIntegerLinearProgram(solver=solver)
lb = mip.get_backend()
lb.add_variable(obj=42, name='Helloooooo')
lb.add_variable(obj=1789)
try:
lb.solve()
except MIPSolverException:
return 4711
else:
return 91 ## line 254 ##
sage: import sage.numerical.backends.logging_backend ## line 270 ##
sage: from sage.numerical.backends.logging_backend import LoggingBackendFactory
## line 271 ##
sage: compute_something(solver = LoggingBackendFactory(solver='GLPK')) ## line
272 ##
# p = get_solver(solver='GLPK')
# p.add_variable(obj=42, name='Helloooooo')
# result: 0
# p.add_variable(obj=1789)
# result: 1
# p.solve()
# exception: GLPK: The LP (relaxation) problem has no dual feasible solution
4711
sage: fname = tmp_filename() ## line 293 ##
sage: compute_something(solver = LoggingBackendFactory(solver='GLPK',
printing=False,
doctest_file=fname)) ## line
294 ##
4711
sage: with open(fname) as f:
for line in f.readlines(): _ = sys.stdout.write('|{}'.format(line)) ## line
297 ##
| sage: p = get_solver(solver='GLPK')
| sage: p.add_variable(obj=42, name='Helloooooo')
| 0
| sage: p.add_variable(obj=1789)
| 1
| sage: p.solve()
| Traceback (most recent call last):
| ...
| MIPSolverException: GLPK: The LP (relaxation) problem has no dual
feasible solution
sage: fname = tmp_filename() ## line 319 ##
sage: compute_something(solver= LoggingBackendFactory(solver='GLPK',
printing=False,
test_method_file=fname,
test_method='something')) ##
line 320 ##
4711
sage: with open(fname) as f:
for line in f.readlines(): _ = sys.stdout.write('|{}'.format(line)) ## line
324 ##
|
| @classmethod
| def _test_something(cls, tester=None, **options):
| """
| Run tests on ...
|
| TESTS::
|
| sage: from sage.numerical.backends.generic_backend import
GenericBackend
| sage: p = GenericBackend()
| sage: p._test_something()
| Traceback (most recent call last):
| ...
| NotImplementedError
|
| """
| p = cls() # fresh instance of the backend
| if tester is None:
| tester = p._tester(**options)
| tester.assertEqual(p.add_variable(obj=42, name='Helloooooo'), 0)
| tester.assertEqual(p.add_variable(obj=1789), 1)
| with tester.assertRaises(MIPSolverException) as cm:
| p.solve()
sage: sig_on_count() # check sig_on/off pairings (virtual doctest) ## line 356
##
0
**********************************************************************
--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Enhancement of the Director's Income
--------
Experience is what you get
when you don't get what you want.
--------
--
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.