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.geometry: More # optional for test with examples that need sage.combinat, sage.rings.number_field, sage.plot #32732

Closed
mkoeppe opened this issue Oct 21, 2021 · 35 comments

Comments

@mkoeppe
Copy link
Contributor

mkoeppe commented Oct 21, 2021

cherry-picked from #32432.

We also fix up sage.features.sagemath.

CC: @kliem

Component: refactoring

Author: Matthias Koeppe

Branch: b846c0a

Reviewer: Dima Pasechnik

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

@mkoeppe mkoeppe added this to the sage-9.5 milestone Oct 21, 2021
@mkoeppe
Copy link
Contributor Author

mkoeppe commented Oct 21, 2021

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Oct 21, 2021

Commit: 03ea96d

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Oct 21, 2021

Last 10 new commits:

7094aabsage.geometry.polyedron.combinatorial_polyhedron: Mark more doctests # optional - sage.combinat
7ff2f74src/sage/geometry/polyhedron/combinatorial_polyhedron/base.pyx: Some more # optional
6baf055src/sage/geometry/polyhedron/base.py: Some more # optional
7c73a01src/sage/geometry/polyhedron/base.py: Some more # optional
5a3dbf4src/sage/geometry/polyhedron/combinatorial_polyhedron/face_iterator.pyx: Mark doctests # optional - sage.rings.number_field or sage.combinat
e236b52src/sage/geometry/polyhedron/combinatorial_polyhedron/base.pyx: More # optional
d892e34git grep -l 'sage:.*plot' src/sage/geometry/ | xargs sed -i.bak '/sage: .*plot(/s/$/ # optional - sage.plot/'
2fd3fdfsrc/sage/geometry/polyhedron/combinatorial_polyhedron/list_of_faces.pyx: Add '# optional - sage.combinat' for tests using combinatorial examples
59246d4src/sage/geometry/polyhedron/representation.py: Add '# optional - sage.rings.number_field' in doctests
03ea96dsrc/sage/geometry/polyhedron/backend_polymake.py: Add # optional - sage.rings.number_field

@mkoeppe mkoeppe changed the title sage.geometry.polyhedron: More # optional for test with examples that need sage.combinat etc. sage.geometry: More # optional for test with examples that need sage.combinat, sage.rings.number_field, sage.plot Oct 21, 2021
@mkoeppe
Copy link
Contributor Author

mkoeppe commented Oct 21, 2021

Author: Matthias Koeppe

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 21, 2021

Changed commit from 03ea96d to c97428e

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 21, 2021

Branch pushed to git repo; I updated commit sha1. New commits:

c97428esrc/sage/geometry/polyhedron/combinatorial_polyhedron/combinatorial_face.pyx: fix typo

@mkoeppe

This comment has been minimized.

@dimpase
Copy link
Member

dimpase commented Oct 22, 2021

Reviewer: Dima Pasechnik

@dimpase
Copy link
Member

dimpase commented Oct 22, 2021

comment:6

lgtm

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Oct 22, 2021

comment:7

Thanks!

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Oct 22, 2021

comment:8

Except the patchbot indicates some failures

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 22, 2021

Branch pushed to git repo; I updated commit sha1. New commits:

d77eb85sage.geometry: Add missing # optional tags

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 22, 2021

Changed commit from c97428e to d77eb85

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Oct 22, 2021

comment:10

But there's something else wrong:
The log indicates
Using --optional=argcomplete,build,ccache,debian,dochtml,pip,sage,sage.rings.real_double,sage_spkg
... lots of the components such as sage.plot are missing

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 22, 2021

Changed commit from d77eb85 to 7755df9

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 22, 2021

Branch pushed to git repo; I updated commit sha1. New commits:

905ead9sage.features.PythonModule: Record the exception message as part of the reason
7755df9sage.doctest.control, sage.features.sagemath: If --verbose is used, log the feature test results and reasons

@mkoeppe

This comment has been minimized.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 22, 2021

Changed commit from 7755df9 to f32b992

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 22, 2021

Branch pushed to git repo; I updated commit sha1. New commits:

f32b992src/sage/features/sagemath.py (sage.combinat): Fix the name of the tested PythonModule

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Oct 22, 2021

comment:14

With the new diagnostic messages issued with sage -t --verbose, we see:

FeatureTestResult('sage.combinat.combination', False), reason: Failed to import `sage.combinat.combination`: cannot import name complex_mpfr
FeatureTestResult('sage.graphs.graph', False), reason: Failed to import `sage.graphs.graph`: cannot import name complex_mpfr
FeatureTestResult('sage.plot.plot', False), reason: Failed to import `sage.plot.plot`: cannot import name complex_mpfr
FeatureTestResult('sage.rings.number_field.number_field_element', False), reason: Failed to import `sage.rings.number_field.number_field_element`: cannot import name complex_mpfr
FeatureTestResult('sage.rings.real_double', True), reason: Successfully imported `sage.rings.real_double`.
FeatureTestResult('sage.symbolic.expression', False), reason: Failed to import `sage.symbolic.expression`: cannot import name complex_mpfr

So some cyclic import business is happening here

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Oct 22, 2021

comment:16

Fixing the imports, or alternatively running the sagemath feature tests after sage.all has been imported, will be done in a follow-up ticket.

Let's see what the patchbot says now.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 23, 2021

Changed commit from f32b992 to 30eee2e

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 23, 2021

Branch pushed to git repo; I updated commit sha1. New commits:

30eee2esrc/sage/geometry/hyperbolic_space/hyperbolic_geodesic.py: Add another missing # optional - sage.plot

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 27, 2021

Changed commit from 30eee2e to c1b1d93

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 27, 2021

Branch pushed to git repo; I updated commit sha1. New commits:

c1b1d93src/sage/geometry/polyhedron/plot.py: Add more # optional - sage.plot

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 27, 2021

Changed commit from c1b1d93 to 98522e0

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 27, 2021

Branch pushed to git repo; I updated commit sha1. New commits:

eb31b22src/sage/geometry/voronoi_diagram.py: Add # optional - sage.rings.number_field
d1b3bcasrc/sage/geometry/integral_points.pyx: Add # optional - sage.rings.number_field
98522e0src/sage/numerical: Add # optional - sage.rings.number_field

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 28, 2021

Changed commit from 98522e0 to b846c0a

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Oct 28, 2021

Branch pushed to git repo; I updated commit sha1. New commits:

b846c0asrc/sage/numerical/backends/interactivelp_backend.pyx: Add missing # optional

@dimpase
Copy link
Member

dimpase commented Nov 5, 2021

comment:22

lgtm

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Nov 5, 2021

comment:23

Thanks!

@vbraun
Copy link
Member

vbraun commented Nov 12, 2021

@antonio-rojas
Copy link
Contributor

comment:25

Is there a ticket to fix the imports already? Lots of tests are being skipped in beta6 because of this.

@antonio-rojas
Copy link
Contributor

Changed commit from b846c0a to none

@mkoeppe
Copy link
Contributor Author

mkoeppe commented Nov 14, 2021

comment:26

Help is welcome on tickets

mkoeppe added a commit to mkoeppe/sage that referenced this issue Feb 12, 2023
mkoeppe added a commit to mkoeppe/sage that referenced this issue Feb 12, 2023
mkoeppe added a commit to mkoeppe/sage that referenced this issue Feb 12, 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

4 participants