Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sage.tensor.modules: make doctests involving SR optional #32712

Closed
egourgoulhon opened this issue Oct 18, 2021 · 18 comments
Closed

sage.tensor.modules: make doctests involving SR optional #32712

egourgoulhon opened this issue Oct 18, 2021 · 18 comments

Comments

@egourgoulhon
Copy link
Member

After #32415 and #32708, the code in the module sage.tensor.modules does no longer contain any dependency on symbolic parts of Sage. There remains however some doctests that invokes SR. They have been introduced to check a bug fix performed in #22520. In view of Sage modularization, they are marked # optional - sage.symbolic in this ticket.

Depends on #32708
Depends on #32614

CC: @mkoeppe @tscrim

Component: refactoring

Author: Eric Gourgoulhon

Branch/Commit: c3ff514

Reviewer: Matthias Koeppe

Issue created by migration from https://trac.sagemath.org/ticket/32712

@egourgoulhon
Copy link
Member Author

Commit: f46cce7

@egourgoulhon
Copy link
Member Author

Author: Eric Gourgoulhon

@egourgoulhon
Copy link
Member Author

@egourgoulhon
Copy link
Member Author

New commits:

1635bd3Remove import of Chart in sage.tensor.modules (#32708)
f46cce7Remove SR doctests in sage.tensor.modules (#32712)

@mkoeppe
Copy link
Contributor

mkoeppe commented Oct 18, 2021

comment:2

Instead of removing them, they could be marked as optional using #32614: See #32652 for an example

@egourgoulhon
Copy link
Member Author

comment:3

Replying to @mkoeppe:

Instead of removing them, they could be marked as optional using #32614: See #32652 for an example

Very good. Should the tag be # optional - sage.symbolic.ring ?

@mkoeppe
Copy link
Contributor

mkoeppe commented Oct 18, 2021

comment:4

see src/sage/features/sagemath.py (after merging #32614): just sage.symbolic

@mkoeppe
Copy link
Contributor

mkoeppe commented Oct 18, 2021

Changed dependencies from #32708 to #32708, #32614

@egourgoulhon
Copy link
Member Author

comment:5

Replying to @mkoeppe:

see src/sage/features/sagemath.py (after merging #32614): just sage.symbolic

OK, perfect.

@egourgoulhon
Copy link
Member Author

Changed commit from f46cce7 to c3ff514

@egourgoulhon

This comment has been minimized.

@egourgoulhon
Copy link
Member Author

New commits:

c3ff514Make SR doctests optional in sage.tensor.modules (#32712)

@egourgoulhon
Copy link
Member Author

@egourgoulhon egourgoulhon changed the title sage.tensor.modules: remove doctests involving the symbolic ring sage.tensor.modules: make doctests involving SR optional Oct 18, 2021
@egourgoulhon
Copy link
Member Author

comment:7

Here we go...

@mkoeppe
Copy link
Contributor

mkoeppe commented Oct 19, 2021

Reviewer: Matthias Koeppe

@mkoeppe
Copy link
Contributor

mkoeppe commented Oct 19, 2021

comment:8

Tested with #32601:

$ ./bootstrap && make sagelib-build-deps && ./sage -sh -c '(cd pkgs/sagemath-standard-no-symbolics && SAGE_NUM_THREADS=16 tox  -v -v -v -e py39-sagewheels-nopypi)'
[...........]
$ pkgs/sagemath-standard-no-symbolics/.tox/py39-sagewheels-nopypi/bin/sage -tp src/sage/tensor
too many failed tests, not using stored timings
Running doctests with ID 2021-10-18-23-57-24-ccafbd20.
Using --optional=argcomplete,build,ccache,dochtml,e_antic,homebrew,normaliz,pip,pynormaliz,sage,sage.rings.real_double,sage_spkg
Sorting sources by runtime so that slower doctests are run first....
Doctesting 19 files using 8 threads.
sage -t --random-seed=0 src/sage/tensor/modules/free_module_morphism.py
    [251 tests, 0.21 s]
sage -t --random-seed=0 src/sage/tensor/modules/free_module_automorphism.py
    [243 tests, 0.20 s]
sage -t --random-seed=0 src/sage/tensor/modules/free_module_alt_form.py
    [170 tests, 0.28 s]
sage -t --random-seed=0 src/sage/tensor/modules/alternating_contr_tensor.py
    [150 tests, 0.32 s]
sage -t --random-seed=0 src/sage/tensor/modules/free_module_linear_group.py
    [112 tests, 0.16 s]
sage -t --random-seed=0 src/sage/tensor/modules/finite_rank_free_module.py
    [523 tests, 0.42 s]
sage -t --random-seed=0 src/sage/tensor/modules/ext_pow_free_module.py
    [187 tests, 0.15 s]
sage -t --random-seed=0 src/sage/tensor/modules/free_module_basis.py
    [166 tests, 0.14 s]
sage -t --random-seed=0 src/sage/tensor/modules/free_module_homset.py
    [97 tests, 0.14 s]
sage -t --random-seed=0 src/sage/tensor/__init__.py
    [0 tests, 0.00 s]
sage -t --random-seed=0 src/sage/tensor/all.py
    [0 tests, 0.00 s]
sage -t --random-seed=0 src/sage/tensor/modules/__init__.py
    [0 tests, 0.00 s]
sage -t --random-seed=0 src/sage/tensor/modules/all.py
    [0 tests, 0.00 s]
sage -t --random-seed=0 src/sage/tensor/modules/format_utilities.py
    [64 tests, 0.04 s]
sage -t --random-seed=0 src/sage/tensor/modules/free_module_element.py
    [62 tests, 0.08 s]
sage -t --random-seed=0 src/sage/tensor/modules/tensor_free_module.py
    [129 tests, 0.14 s]
sage -t --random-seed=0 src/sage/tensor/modules/free_module_tensor.py
    [638 tests, 2.23 s]
sage -t --random-seed=0 src/sage/tensor/modules/comp.py
    [980 tests, 3.14 s]
sage -t --random-seed=0 src/sage/tensor/modules/tensor_with_indices.py
    [233 tests, 4.01 s]
----------------------------------------------------------------------
All tests passed!
----------------------------------------------------------------------
Total time for all tests: 4.1 seconds
    cpu time: 11.0 seconds
    cumulative wall time: 11.6 seconds

@egourgoulhon
Copy link
Member Author

comment:9

Thank you for the review and the test!

@vbraun
Copy link
Member

vbraun commented Oct 20, 2021

@vbraun vbraun closed this as completed in 56ec53a Oct 20, 2021
mkoeppe added a commit to mkoeppe/sage that referenced this issue Feb 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants