Sage 9.6.beta2 released

119 views
Skip to first unread message

Volker Braun

unread,
Feb 20, 2022, 9:30:42 AMFeb 20
to sage-release
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

15c8011dd0 (tag: 9.6.beta2, trac/develop) Updated SageMath version to 9.6.beta2
27c056c587 Trac #33330: Conda: Add primecountpy
5488d2adc0 Trac #33313: schur functions construct elements with coefficients in the wrong base ring
694cf6915f Trac #33293: checking doctest output is too slow
bb991b3133 Trac #33287: make iter(ZZ^n) useful
1c7e26ebdf Trac #33279: Put derivations over function fields in the framework of RingDerivation
ffa81bb454 Trac #33267: Improve speed of sum_of_* for CombinatorialFreeModule
b8c915a480 Trac #33261: .complement() treats bipartite graphs as generic
f37bdbfa2e Trac #33237: membership testing for ideals of quotient rings
a80605276e Trac #33171: fix and activate pycodestyle E713
0aac3238bf Trac #33000: Remove some imports from sage.rings.all
0f65e48e01 Trac #32789: Fix spkg-configure.m4 for singular
537d9a8e7e Trac #31320: Coercion issue with Laurent polynomial rings
15f2fed8a7 Trac #30695: Padic slice method fails on exact zeros for certain inputs
ff40ba0043 Trac #12595: Add doctest for eigenmatrix of complex floating-point matrix
e4f9347fa4 Trac #33350: remove traces of six
24f0f4eeca Trac #33339: Use latest dev docker build for documentation workflow
03d78e2ff6 Trac #32966: tox / GH Actions: Add ubuntu variants using ppa:ubuntu-toolchain-r
22221ae2bb Trac #33174: Unreachable code in sage/graphs/base/c_graph.pyx
ddd2ab1e85 Trac #33163: various lgtm suggestions
83c2a60a36 Trac #33133: Add pictures to scatter_plot documentation
44fb492b48 Trac #33115: Re-run bootstrap when an install-requires.txt or package-version.txt has changed
1dda73e985 Trac #33110: Some performance improvements in the manifolds code
f6aff898e1 Trac #33035: random doctest failure in src/sage/tests/book_stein_ent.py
69ea2e5159 Trac #32988: Deprecate sage.structure.graphics_file
91710c39f7 Trac #32912: Add pictures to disk.py
f413b85fc5 Trac #32264: Convenience syntax for quaternion ideals
92dea6ac0a Trac #31758: State global i or I is a number field element (and no longer in the symbolic ring)
e8c27b5fb6 Trac #31005: Add traceback information to exceptions during docbuild
cd31b18f04 Trac #30763: improve setting global options to None
8b63606d29 Trac #24279: Remove the experimental code for `RelativeFiniteFieldExtension`
44cd8f8580 Trac #33324: pycodestyle cleaning in discrete Fourier transforms
5791dba147 Trac #33314: pycodestyle cleanup of phc interface
708efc2b48 Trac #33307: Fix empty section display on prerequisites doc page
9a9c821782 Trac #33302: fpylll might not find system-wide fplll's strategies json
c10d7bb3d7 Trac #33301: pycodestyle formatting in sage_docbuild
90ec7681c2 Trac #33298: pycodestyle cleaning in rings/valuations/
edad8daffc Trac #33297: some details in src/bin scripts
01e86774fe Trac #33278: Adapt Macaulay2 interface doctests to Macaulay2 1.19
d026799042 Trac #33275: Bug fixes for finitely presented graded modules (#32505)
2e1f8d27ec Trac #33264: Define `x` as symbolic variable in many `animate` examples
5bdf5dd19a Trac #33263: Add github action running on each push
959ff7a3df Trac #33306: tox.ini: Linux platform updates
10a3cd92d1 Trac #33260: Fix bug in .perfect_matchings() for BipartiteGraph
20684fe0d6 Trac #33257: fix a bug in multiple zeta values
8326dee9e8 Trac #33256: buffer.py: make files readonly only when possible
7f8b2684ba Trac #33123: Move construction methods to Polyhedron_base5
826061adbb (tag: 9.6.beta1) Updated SageMath version to 9.6.beta1

Steven Trogdon

unread,
Feb 20, 2022, 12:24:41 PMFeb 20
to sage-release

When upgrading incrementally from 9.6.beta1 to 9.6.beta2, I have at this point in the configure:

configure:43107: checking that Singular's help is working
configure:43112: result: yes

a Singular help (info) window is opened and the configure stops until the window is closed. A new configure feature? System singular is being used.

Steven Trogdon

unread,
Feb 20, 2022, 3:52:01 PMFeb 20
to sage-release
Since https://trac.sagemath.org/ticket/32789 there is 

+       AC_MSG_CHECKING([that Singular's help is working])
+       AS_IF([test x`echo "help;" | Singular 2>&1 | grep "error\ occurred"` = x], [
+        AC_MSG_RESULT(yes)

in singular/spkg-configure.m4.  And on Gentoo "help;" opens the help info window.

Matthias Köppe

unread,
Feb 20, 2022, 4:48:07 PMFeb 20
to sage-release
I have opened https://trac.sagemath.org/ticket/33390 for this

Kenji Iohara

unread,
Feb 21, 2022, 6:28:54 PMFeb 21
to sage-r...@googlegroups.com
Thanks Volker for this version. On my Mac OS 12.2.1, with Python 3.10.2, on Intel Core i5, I could compile from the first built.
But for ptestlong, here is what I got: 

----------------------------------------------------------------------
sage -t --long --random-seed=220392790806422397955785761819208002242 src/doc/de/tutorial/tour_plotting.rst  # Timed out
sage -t --long --random-seed=220392790806422397955785761819208002242 src/sage/combinat/ncsf_qsym/qsym.py  # Timed out
sage -t --long --random-seed=220392790806422397955785761819208002242 src/sage/combinat/diagram_algebras.py  # Timed out
sage -t --long --random-seed=220392790806422397955785761819208002242 src/sage/combinat/ncsf_qsym/ncsf.py  # Timed out
sage -t --long --random-seed=220392790806422397955785761819208002242 src/sage/schemes/elliptic_curves/isogeny_small_degree.py  # Timed out
sage -t --long --random-seed=220392790806422397955785761819208002242 src/sage/schemes/elliptic_curves/ell_number_field.py  # Timed out
sage -t --long --random-seed=220392790806422397955785761819208002242 src/sage/schemes/elliptic_curves/ell_rational_field.py  # Timed out
sage -t --long --random-seed=220392790806422397955785761819208002242 src/sage/schemes/elliptic_curves/padics.py  # Timed out
sage -t --long --random-seed=220392790806422397955785761819208002242 src/sage/schemes/elliptic_curves/height.py  # Killed due to segmentation fault
----------------------------------------------------------------------
Total time for all tests: 14951.7 seconds
    cpu time: 15954.0 seconds
    cumulative wall time: 44220.3 seconds
Features detected for doctesting: dvipng,graphviz,imagemagick,pandoc,pdf2svg,pdftocairo,sage.combinat,sage.geometry.polyhedron,sage.graphs,sage.groups,sage.plot,sage.rings.number_field,sage.rings.padics,sage.rings.real_double,sage.symbolic,sagemath_doc_html,sphinx
Pytest is not installed, skip checking tests that rely on it.
make: *** [ptestlong] Error 20

with its log file: 
ptestlong.log

Justin C. Walker

unread,
Feb 21, 2022, 7:13:05 PMFeb 21
to sage-r...@googlegroups.com


> On Feb 20, 2022, at 06:30 , Volker Braun <vbrau...@gmail.com> 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 macOS 10.15.7 (2019 MBP, 8-core Core i9).

All tests (‘ptestlong’) passed!

--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Absorption of Federal Funds
--------
Men are from Earth.
Women are from Earth.
Deal with it.
--------



Dima Pasechnik

unread,
Feb 22, 2022, 4:32:54 AMFeb 22
to sage-release
On Tue, Feb 22, 2022 at 12:13 AM 'Justin C. Walker' via sage-release
<sage-r...@googlegroups.com> wrote:
>
>
>
> > On Feb 20, 2022, at 06:30 , Volker Braun <vbrau...@gmail.com> 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 macOS 10.15.7 (2019 MBP, 8-core Core i9).
>
> All tests (‘ptestlong’) passed!

I wonder whether you have non-standard power settings on to prevent timeouts
some (most) people see while testing on macOS.

Dima
>
> --
> Justin C. Walker, Curmudgeon-At-Large
> Institute for the Absorption of Federal Funds
> --------
> Men are from Earth.
> Women are from Earth.
> Deal with it.
> --------
>
>
>
> --
> 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...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-release/CAFF93C0-56DC-43AC-AD6F-0C9721CCF52C%40mac.com.

Samuel Lelièvre

unread,
Feb 22, 2022, 4:46:29 AMFeb 22
to sage-release
2022-02-20 14:30 UTC, Volker Braun:
>
> 15c8011dd0 (tag: 9.6.beta2) Updated SageMath version to 9.6.beta2

Thanks for this new release.

On Debian 10 buster, one `make ptestlong` gave "all tests passed"
with seed 180869625321339283697396330889120925058.

However other seeds fail due to:

- Sage Trac ticket 33129
src/sage/plot/plot.py: random doctest failure
https://trac.sagemath.org/ticket/33129

Illustration below.

```
$ SEED=312217052879407980900685333578392134934
$ alias sagetest="./sage -t --long --random-seed=$SEED"
$ sagetest src/sage/plot/plot.py
```

```
too many failed tests, not using stored timings
Running doctests with ID 2022-02-22-09-57-07-807586b1.
Git branch: develop
Using --optional=debian,pip,sage,sage_spkg
Features to be detected:
4ti2,benzene,bliss,buckygen,conway_polynomials,csdp,database_cremona_ellcurve,database_cremona_mini_ellcurve,database_jones_numfield,database_knotinfo,dvipng,graphviz,imagemagick,jupymake,kenzo,latte_int,lrslib,mcqd,meataxe,pandoc,pdf2svg,pdftocairo,plantri,pynormaliz,python_igraph,rubiks,sage.combinat,sage.geometry.polyhedron,sage.graphs,sage.groups,sage.plot,sage.rings.number_field,sage.rings.padics,sage.rings.real_double,sage.symbolic,sage_numerical_backends_coin,sagemath_doc_html,sphinx,tdlib
Doctesting 1 file.
sage -t --long --random-seed=312217052879407980900685333578392134934
src/sage/plot/plot.py
**********************************************************************
File "src/sage/plot/plot.py", line 1808, in sage.plot.plot.plot
Failed example:
plot(f, (x, -3.5, 3.5), detect_poles='show', exclude=[-3..3],
ymin=-5, ymax=5)
Expected:
Graphics object consisting of 12 graphics primitives
Got:
Graphics object consisting of 13 graphics primitives
**********************************************************************
1 item had failures:
1 of 157 in sage.plot.plot.plot
[465 tests, 1 failure, 70.79 s]
----------------------------------------------------------------------
sage -t --long --random-seed=312217052879407980900685333578392134934
src/sage/plot/plot.py # 1 doctest failed
----------------------------------------------------------------------
Total time for all tests: 70.9 seconds
cpu time: 66.0 seconds
cumulative wall time: 70.8 seconds
Features detected for doctesting:
```

Eric Gourgoulhon

unread,
Feb 22, 2022, 7:29:34 AMFeb 22
to sage-release
On Ubuntu 20.04 running on Xeon E5-2623 + 16 GB RAM:

- incremental build (-j16) from Sage 9.6.beta1 with system python (3.8.10): OK
- make ptestlong  failed with
sage -t --long --warn-long 70.3 --random-seed=166484064187536079316870694317400346754 src/sage/numerical/backends/logging_backend.py  # Killed due to abort
(details below)

When run standalone, the test is passed.

Eric.

sage -t --long --warn-long 70.3 --random-seed=166484064187536079316870694317400346754 src/sage/numerical/backends/logging_backend.py
    Killed due to abort
**********************************************************************
Tests run before process (pid=158259) failed:
sage: from sage.numerical.backends.logging_backend import _format_function_call ## line 29 ##
sage: _format_function_call('foo', 17, hellooooo='goodbyeeee') ## line 30 ##
"foo(17, hellooooo='goodbyeeee')"
sage: sig_on_count() # check sig_on/off pairings (virtual doctest) ## line 32 ##
0
sage: from sage.numerical.backends.generic_backend import get_solver ## line 44 ##
sage: from sage.numerical.backends.logging_backend import _make_wrapper, LoggingBackend ## line 45 ##
sage: backend = get_solver(solver='GLPK') ## line 46 ##
sage: w = _make_wrapper(backend, 'ncols') ## line 47 ##
sage: logging_backend = LoggingBackend(backend) ## line 48 ##
sage: w(logging_backend) ## line 49 ##
# p.ncols()
# result: 0
0
sage: sig_on_count() # check sig_on/off pairings (virtual doctest) ## line 53 ##
0
sage: import sage.numerical.backends.logging_backend ## line 100 ##
sage: from sage.numerical.backends.logging_backend import LoggingBackend ## line 101 ##
sage: from sage.numerical.backends.generic_backend import get_solver ## line 102 ##
sage: b = get_solver(solver = "GLPK") ## line 103 ##
sage: lb = LoggingBackend(backend=b) ## line 104 ##
sage: lb.add_variable(obj=42, name='Helloooooo') ## line 105 ##
# p.add_variable(obj=42, name='Helloooooo')
# result: 0
0
sage: lb.add_variable(obj=1789) ## line 109 ##
# p.add_variable(obj=1789)
# result: 1
1
sage: sig_on_count() # check sig_on/off pairings (virtual doctest) ## line 115 ##
0
sage: import sage.numerical.backends.logging_backend ## line 124 ##
sage: from sage.numerical.backends.logging_backend import LoggingBackend ## line 125 ##
sage: from sage.numerical.backends.generic_backend import get_solver ## line 126 ##
sage: b = get_solver(solver = "GLPK") ## line 127 ##
sage: lb = LoggingBackend(backend=b) ## line 128 ##
sage: sig_on_count() # check sig_on/off pairings (virtual doctest) ## line 129 ##
0
sage: import sage.numerical.backends.logging_backend ## line 146 ##
sage: from sage.numerical.backends.logging_backend import LoggingBackend ## line 147 ##
sage: from sage.numerical.backends.generic_backend import get_solver ## line 148 ##
sage: b = get_solver(solver = "GLPK") ## line 149 ##
sage: lb = LoggingBackend(backend=b) ## line 150 ##
sage: lb.print_ranges ## line 151 ##
<bound method GLPKBackend.print_ranges of <sage.numerical.backends.logging_backend.LoggingBackend object at 0x7f3772edbd80>>
sage: sig_on_count() # check sig_on/off pairings (virtual doctest) ## line 153 ##
0
sage: import sage.numerical.backends.logging_backend ## line 179 ##
sage: from sage.numerical.backends.logging_backend import LoggingBackend ## line 180 ##
sage: from sage.numerical.backends.generic_backend import get_solver ## line 181 ##
sage: b = get_solver(solver = "GLPK") ## line 182 ##
sage: lb = LoggingBackend(backend=b) ## line 183 ##
sage: lb.base_ring() ## line 184 ##
Real Double Field
sage: from sage.rings.rational_field import QQ ## line 186 ##
sage: lb = LoggingBackend(backend=b, base_ring=QQ) ## line 187 ##
sage: lb.base_ring() ## line 188 ##
Rational Field
sage: sig_on_count() # check sig_on/off pairings (virtual doctest) ## line 190 ##
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 253 ##
sage: import sage.numerical.backends.logging_backend ## line 269 ##
sage: from sage.numerical.backends.logging_backend import LoggingBackendFactory ## line 270 ##
sage: compute_something(solver = LoggingBackendFactory(solver='GLPK')) ## line 271 ##
# 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 292 ##
sage: compute_something(solver = LoggingBackendFactory(solver='GLPK', printing=False,
                                                 doctest_file=fname)) ## line 293 ##
4711
sage: with open(fname) as f:
    for line in f.readlines(): _ = sys.stdout.write('|{}'.format(line)) ## line 296 ##
|        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 318 ##
sage: compute_something(solver= LoggingBackendFactory(solver='GLPK', printing=False,
                                                test_method_file=fname,
                                                test_method='something')) ## line 319 ##
4711
sage: with open(fname) as f:
    for line in f.readlines(): _ = sys.stdout.write('|{}'.format(line)) ## line 323 ##
|
|    @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 355 ##
0

**********************************************************************

Justin C. Walker

unread,
Feb 22, 2022, 4:32:29 PMFeb 22
to sage-r...@googlegroups.com
Hi, Dima, Good question. See below...

> On Feb 22, 2022, at 01:32 , Dima Pasechnik <dim...@gmail.com> wrote:
>
> On Tue, Feb 22, 2022 at 12:13 AM 'Justin C. Walker' via sage-release
> <sage-r...@googlegroups.com> wrote:
>>
>>
>>
>>> On Feb 20, 2022, at 06:30 , Volker Braun <vbrau...@gmail.com> 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 macOS 10.15.7 (2019 MBP, 8-core Core i9).
>>
>> All tests (‘ptestlong’) passed!
>
> I wonder whether you have non-standard power settings on to prevent timeouts
> some (most) people see while testing on macOS.

My power settings, for this system are:
o Prevent computer from sleeping automatically when display is off
o Wake for Wi-Fi network access
and the display is set to turn off after ~11 minutes.

However, in the past, I found that the system would sleep regardless of the settings (and timeouts would abound :-})

My low-tech solution was to set one “hot corner” to “disable the screen saver”.

Now, I just push the cursor to that hot corner when building sage, and lo…no timeouts or sleeping on the job.

I can’t explain why disabling the screen saver has that effect, but Apple moves in mysterious ways.

HTH

Justin

PS: I have to use this trick on both laptops and my iMac(?!).

--
Justin C. Walker, Curmudgeon-At-Large, Director
Institute for the Enhancement of the Director's Income
--------
The path of least resistance:
it's not just for electricity any more.
--------



William Stein

unread,
Feb 22, 2022, 5:08:27 PMFeb 22
to sage-release
For what it's worth, I use a free app from the MacOS app store called
Amphetamine:

https://apps.apple.com/us/app/amphetamine/id937984704?mt=12

This makes it easy to make the laptop stay on indefinitely, even if
the lid is closed. It works very robustly.

-- William

On Tue, Feb 22, 2022 at 1:32 PM 'Justin C. Walker' via sage-release
> --
> 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...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-release/96B0ECED-4A0F-406D-9FAE-AC67037E98BA%40mac.com.



--
William (http://wstein.org)

Dima Pasechnik

unread,
Feb 22, 2022, 5:27:41 PMFeb 22
to sage-release
On Tue, Feb 22, 2022 at 9:32 PM 'Justin C. Walker' via sage-release
<sage-r...@googlegroups.com> wrote:
>
> Hi, Dima, Good question. See below...
>
> > On Feb 22, 2022, at 01:32 , Dima Pasechnik <dim...@gmail.com> wrote:
> >
> > On Tue, Feb 22, 2022 at 12:13 AM 'Justin C. Walker' via sage-release
> > <sage-r...@googlegroups.com> wrote:
> >>
> >>
> >>
> >>> On Feb 20, 2022, at 06:30 , Volker Braun <vbrau...@gmail.com> 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 macOS 10.15.7 (2019 MBP, 8-core Core i9).
> >>
> >> All tests (‘ptestlong’) passed!
> >
> > I wonder whether you have non-standard power settings on to prevent timeouts
> > some (most) people see while testing on macOS.
>
> My power settings, for this system are:
> o Prevent computer from sleeping automatically when display is off
> o Wake for Wi-Fi network access
> and the display is set to turn off after ~11 minutes.
>
> However, in the past, I found that the system would sleep regardless of the settings (and timeouts would abound :-})
>
> My low-tech solution was to set one “hot corner” to “disable the screen saver”.
>
> Now, I just push the cursor to that hot corner when building sage, and lo…no timeouts or sleeping on the job.
>
> I can’t explain why disabling the screen saver has that effect, but Apple moves in mysterious ways.

Oy gevalt...
This reminds me of http://mousemover.biz/ and the whole cottage
industry that arose
around this...

>
> HTH
>
> Justin
>
> PS: I have to use this trick on both laptops and my iMac(?!).
>
> --
> Justin C. Walker, Curmudgeon-At-Large, Director
> Institute for the Enhancement of the Director's Income
> --------
> The path of least resistance:
> it's not just for electricity any more.
> --------
>
>
>
> --
> 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...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sage-release/96B0ECED-4A0F-406D-9FAE-AC67037E98BA%40mac.com.

Justin C. Walker

unread,
Feb 23, 2022, 1:30:02 PMFeb 23
to sage-r...@googlegroups.com


> On Feb 20, 2022, at 06:30 , Volker Braun <vbrau...@gmail.com> 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 macOS 10.14.6 (2017 MBP, 4-core Core i7).

Testing yielded three failures:

-sage -t --long --warn-long 124.1 --random-seed=23643416701720691793132992848517226132 src/sage/schemes/cyclic_covers/cycliccover_finite_field.py # 1 doctest failed
- sage -t --long --warn-long 124.1 --random-seed=23643416701720691793132992848517226132 src/sage/interfaces/expect.py # 2 doctests failed
- sage -t --long --warn-long 124.1 --random-seed=23643416701720691793132992848517226132 src/sage/symbolic/integration/external.py # 1 doctest failed

Relevant portions of testing log attached:

Log9.6b2.log

Justin C. Walker

unread,
Feb 23, 2022, 1:35:18 PMFeb 23
to sage-r...@googlegroups.com


> On Feb 22, 2022, at 14:07 , William Stein <wst...@gmail.com> wrote:
>
> For what it's worth, I use a free app from the MacOS app store called
> Amphetamine:
>
> https://apps.apple.com/us/app/amphetamine/id937984704?mt=12
>
> This makes it easy to make the laptop stay on indefinitely, even if
> the lid is closed. It works very robustly.

Interesting: hadn’t heard of that one. Might simplify things a bit; I will check it out.

Thanks!

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
-----------
My wife 'n kids 'n dogs are gone,
I can't get Jesus on the phone,
But Ol' Milwaukee's Best is my best friend.
-----------


Sébastien Labbé

unread,
Feb 24, 2022, 12:57:50 PMFeb 24
to sage-release
On Ubuntu 18.04, running tests with few optional and external packages, I get


Using --optional=4ti2,build,ccache,cryptominisat,debian,dot2tex,e_antic,external,fricas,glucose,latte_int,lidia,normaliz,notedown,pandoc_attributes,pip,pycosat,pynormaliz,rst2ipynb,sage,sage_numerical_backends_coin,sage_spkg
Features to be detected: 4ti2,benzene,bliss,buckygen,conway_polynomials,cplex,csdp,database_cremona_ellcurve,database_cremona_mini_ellcurve,database_jones_numfield,database_knotinfo,dvipng,ffmpeg,graphviz,gurobi,imagemagick,internet,jupymake,kenzo,latex,latex_package_tkz_graph,latte_int,lrslib,lualatex,macaulay2,magma,maple,mathematica,matlab,mcqd,meataxe,octave,pandoc,pdf2svg,pdflatex,pdftocairo,plantri,pynormaliz,python_igraph,rubiks,sage.combinat,sage.geometry.polyhedron,sage.graphs,sage.groups,sage.plot,sage.rings.number_field,sage.rings.padics,sage.rings.real_double,sage.symbolic,sage_numerical_backends_coin,sagemath_doc_html,scilab,sphinx,tdlib,xelatex
[...]
----------------------------------------------------------------------
sage -t --long --random-seed=74925070263747290778454060298804908185 src/sage/combinat/designs/incidence_structures.py  # 1 doctest failed
sage -t --long --random-seed=74925070263747290778454060298804908185 src/sage/geometry/polyhedron/base.py  # 1 doctest failed
sage -t --long --random-seed=74925070263747290778454060298804908185 src/sage/graphs/generic_graph.py  # 2 doctests failed
sage -t --long --random-seed=74925070263747290778454060298804908185 src/sage/graphs/graph.py  # 2 doctests failed
sage -t --long --random-seed=74925070263747290778454060298804908185 src/sage/numerical/backends/glpk_backend.pyx  # 4 doctests failed
sage -t --long --random-seed=74925070263747290778454060298804908185 src/sage/numerical/backends/logging_backend.py  # Killed due to abort
sage -t --long --random-seed=74925070263747290778454060298804908185 src/sage/numerical/mip.pyx  # 8 doctests failed
sage -t --long --random-seed=74925070263747290778454060298804908185 src/sage/tests/books/computational-mathematics-with-sagemath/lp_doctest.py  # 2 doctests failed
sage -t --long --random-seed=74925070263747290778454060298804908185 src/sage/tests/cmdline.py  # 1 doctest failed
----------------------------------------------------------------------
Features detected for doctesting: dvipng,ffmpeg,graphviz,imagemagick,internet,latex,latex_package_tkz_graph,lualatex,octave,pandoc,pdf2svg,pdflatex,pdftocairo,sage.combinat,sage.geometry.polyhedron,sage.graphs,sage.groups,sage.plot,sage.rings.number_field,sage.rings.padics,sage.rings.real_double,sage.symbolic,sagemath_doc_html,sphinx,xelatex


I can not reproduce the following:


src/sage/numerical/backends/logging_backend.py  # Killed due to abort




The issues with the following files are new to me:

src/sage/geometry/polyhedron/base.py  # 1 doctest failed
src/sage/numerical/backends/glpk_backend.pyx  # 4 doctests failed
src/sage/numerical/mip.pyx  # 8 doctests failed
src/sage/tests/books/computational-mathematics-with-sagemath/lp_doctest.py  # 2 doctests failed

These new failures are copied below.

Other failures are tracked at:


sage -t --long --random-seed=318040679162492273521324225371525539537 src/sage/tests/books/computational-mathematics-with-sagemath/lp_doctest.py
**********************************************************************
File "src/sage/tests/books/computational-mathematics-with-sagemath/lp_doctest.py", line 38, in sage.tests.books.computational-mathematics-with-sagemath.lp_doctest
Failed example:
    p.solve() # abs tol 1e-10
Expected:
    8.8
Got:
    Long-step dual simplex will be used
    8.8
**********************************************************************
File "src/sage/tests/books/computational-mathematics-with-sagemath/lp_doctest.py", line 127, in sage.tests.books.computational-mathematics-with-sagemath.lp_doctest
Failed example:
    p.solve() # abs tol 1e-10
Expected:
    1.4199999999999999
Got:
    Long-step dual simplex will be used
    1.42

**********************************************************************
1 item had failures:
   2 of  69 in sage.tests.books.computational-mathematics-with-sagemath.lp_doctest
    0 tests not run because we ran out of time
    [68 tests, 2 failures, 0.08 s]




sage -t --long --random-seed=318040679162492273521324225371525539537 src/sage/numerical/backends/glpk_backend.pyx
**********************************************************************
File "src/sage/numerical/backends/glpk_backend.pyx", line 1104, in sage.numerical.backends.glpk_backend.GLPKBackend.solve
Failed example:
    p.solve() # rel tol 100
Expected:
    1
Got:
    Long-step dual simplex will be used
    2.0
**********************************************************************
File "src/sage/numerical/backends/glpk_backend.pyx", line 1111, in sage.numerical.backends.glpk_backend.GLPKBackend.solve
Failed example:
    p.solve() # rel tol 100
Expected:
    1
Got:
    Long-step dual simplex will be used
    7.0
**********************************************************************
File "src/sage/numerical/backends/glpk_backend.pyx", line 1204, in sage.numerical.backends.glpk_backend.GLPKBackend.best_known_objective_bound
Failed example:
    p.solve() # rel tol 100
Expected:
    1.0
Got:
    Long-step dual simplex will be used
    2.0
**********************************************************************
File "src/sage/numerical/backends/glpk_backend.pyx", line 1238, in sage.numerical.backends.glpk_backend.GLPKBackend.get_relative_objective_gap
Failed example:
    p.solve() # rel tol 100
Expected:
    1.0
Got:
    Long-step dual simplex will be used
    2.0
**********************************************************************
3 items had failures:
   1 of  11 in sage.numerical.backends.glpk_backend.GLPKBackend.best_known_objective_bound
   1 of  12 in sage.numerical.backends.glpk_backend.GLPKBackend.get_relative_objective_gap
   2 of  74 in sage.numerical.backends.glpk_backend.GLPKBackend.solve
    0 tests not run because we ran out of time
    [592 tests, 4 failures, 4.37 s]



sage -t --long --random-seed=318040679162492273521324225371525539537 src/sage/numerical/mip.pyx
**********************************************************************
File "src/sage/numerical/mip.pyx", line 1921, in sage.numerical.mip.MixedIntegerLinearProgram.number_of_variables.add_constraint
Failed example:
    p.solve()     # rel tol 1e-15
Expected:
    6.666666666666666
Got:
    Long-step dual simplex will be used
    6.666666666666666
**********************************************************************
File "src/sage/numerical/mip.pyx", line 1951, in sage.numerical.mip.MixedIntegerLinearProgram.number_of_variables.add_constraint
Failed example:
    p.solve()     # rel tol 1e-15
Expected:
    6.666666666666666
Got:
    Long-step dual simplex will be used
    6.666666666666666
**********************************************************************
File "src/sage/numerical/mip.pyx", line 1963, in sage.numerical.mip.MixedIntegerLinearProgram.number_of_variables.add_constraint
Failed example:
    p.solve()     # rel tol 1e-15
Expected:
    6.666666666666666
Got:
    Long-step dual simplex will be used
    6.666666666666666
**********************************************************************
File "src/sage/numerical/mip.pyx", line 1976, in sage.numerical.mip.MixedIntegerLinearProgram.number_of_variables.add_constraint
Failed example:
    p.solve()     # rel tol 1e-15
Expected:
    6.666666666666666
Got:
    Long-step dual simplex will be used
    6.666666666666666
**********************************************************************
File "src/sage/numerical/mip.pyx", line 1989, in sage.numerical.mip.MixedIntegerLinearProgram.number_of_variables.add_constraint
Failed example:
    p.solve()     # rel tol 1e-15
Expected:
    6.666666666666666
Got:
    Long-step dual simplex will be used
    6.666666666666666
**********************************************************************
File "src/sage/numerical/mip.pyx", line 2859, in sage.numerical.mip.MixedIntegerLinearProgram.number_of_variables.get_objective_value
Failed example:
    p.solve()  # rel tol 1e-5
Expected:
    9.4
Got:
    Long-step dual simplex will be used
    9.399999999999999
**********************************************************************
File "src/sage/numerical/mip.pyx", line 2891, in sage.numerical.mip.MixedIntegerLinearProgram.number_of_variables.best_known_objective_bound
Failed example:
    p.solve() # rel tol 100
Expected:
    1.0
Got:
    Long-step dual simplex will be used
    2.0
**********************************************************************
File "src/sage/numerical/mip.pyx", line 2925, in sage.numerical.mip.MixedIntegerLinearProgram.number_of_variables.get_relative_objective_gap
Failed example:
    p.solve() # rel tol 100
Expected:
    1.0
Got:
    Long-step dual simplex will be used
    2.0
**********************************************************************
4 items had failures:
   5 of  54 in sage.numerical.mip.MixedIntegerLinearProgram.number_of_variables.add_constraint
   1 of  10 in sage.numerical.mip.MixedIntegerLinearProgram.number_of_variables.best_known_objective_bound
   1 of   8 in sage.numerical.mip.MixedIntegerLinearProgram.number_of_variables.get_objective_value
   1 of  11 in sage.numerical.mip.MixedIntegerLinearProgram.number_of_variables.get_relative_objective_gap
    8 cplex tests not run
    3 gurobi tests not run
    7 not tested tests not run
    0 tests not run because we ran out of time
    [713 tests, 8 failures, 2.31 s]


sage -t --long --random-seed=318040679162492273521324225371525539537 src/sage/geometry/polyhedron/base.py
**********************************************************************
File "src/sage/geometry/polyhedron/base.py", line 821, in sage.geometry.polyhedron.base.Polyhedron_base.to_linear_program
Failed example:
    lp.solve()                                               # tol 1e-8   # optional - sage.rings.number_field
Expected:
    1.3090169943749475
Got:
    Long-step dual simplex will be used
    1.3090169943749472

**********************************************************************
1 item had failures:
   1 of  32 in sage.geometry.polyhedron.base.Polyhedron_base.to_linear_program
    5 lrslib tests not run
    1 not tested test not run
    18 polymake tests not run
    0 tests not run because we ran out of time
    [544 tests, 1 failure, 44.05 s]

Volker Braun

unread,
Feb 27, 2022, 8:05:33 AMFeb 27
to sage-release
OSX comes with the "caffeinate" utility (man caffeinate), maybe use that:

CAFFEINATE(8)             BSD System Manager's Manual            CAFFEINATE(8)

NAME
     caffeinate -- prevent the system from sleeping on behalf of a utility

SYNOPSIS
     caffeinate [-disu] [-t timeout] [-w pid] [utility arguments...]

DESCRIPTION
     caffeinate creates assertions to alter system sleep behavior.  If no assertion flags are specified, caffeinate creates an assertion to prevent idle
     sleep.  If a utility is specified, caffeinate creates the assertions on the utility's behalf, and those assertions will persist for the duration of the
     utility's execution. Otherwise, caffeinate creates the assertions directly, and those assertions will persist until caffeinate exits.

     Available options:

     -d      Create an assertion to prevent the display from sleeping.

     -i      Create an assertion to prevent the system from idle sleeping.

     -m      Create an assertion to prevent the disk from idle sleeping.

     -s      Create an assertion to prevent the system from sleeping. This assertion is valid only when system is running on AC power.

     -u      Create an assertion to declare that user is active. If the display is off, this option turns the display on and prevents the display from going
             into idle sleep. If a timeout is not specified with '-t' option, then this assertion is taken with a default of 5 second timeout.

     -t      Specifies the timeout value in seconds for which this assertion has to be valid. The assertion is dropped after the specified timeout. Timeout
             value is not used when an utility is invoked with this command.

     -w      Waits for the process with the specified pid to exit. Once the the process exits, the assertion is also released.  This option is ignored when
             used with utility option.

EXAMPLE
     caffeinate -i make
        caffeinate forks a process, execs "make" in it, and holds an assertion that prevents idle sleep as long as that process is running.

SEE ALSO
     pmset(1)

LOCATION
     /usr/bin/caffeinate

Darwin                         November 9, 2012                         Darwin
Reply all
Reply to author
Forward
0 new messages