Skip to content

Conversation

orlitzky
Copy link
Contributor

@orlitzky orlitzky commented Oct 7, 2025

Fix a few random warnings I picked out of the CI, all confirmed locally.

There's a polyomino test in this file that triggers a "slow doctest"
warning on the CI, coming in at 10.79s CPU. On my (slow) machine it
takes 12.2s, which is faster than I expected, but is still slow enough
that we should mark it "long time" to avoid warnings.
…ime"

One projective_meridians() test in this file is just barely triggering
a "slow doctest" warning on the CI, at 5.04s cpu. On my (slow) machine
it takes a bit longer, around 6.5s cpu. This is longer than the
recommended length for a doctest in any case, so we mark it "long
time" to avoid warnings.
There's a series of tests in this file that set an alarm interrupt,
and then attempt to express a polynomial in terms of the generators of
an ideal (to which it belongs). This is taking around 5s on the CI,
and as a result, is sometimes raising "slow doctest" warnings. On my
(slow) machine, the lift takes about 15s, and the added 0.5s alarm
increases that. We mark all of these tests "long time" to be on the
safe side.
The line,

  sage: G1 = SymQ3.AffineGrothendieckPolynomial([1],6)

is triggering slow doctest warnings on the CI, and takes over 50s to
complete on my (slow) machine. Let's mark it "long time" to avoid the
warnings.
Ine test in this file is causing a "slow doctest" warning on the
CI. On my (much slower) machine, it takes over 40s:

  File "src/sage/schemes/elliptic_curves/isogeny_class.py", line 1412,
  in sage.schemes.elliptic_curves.isogeny_class.?
    Warning: slow doctest:
      [phi.degree() for phi in E3.isogenies_prime_degree()]
  Test ran for 43.57s cpu, 43.56s wall
  Check ran for 0.00s cpu, 0.00s wall

We mark it "long time" to avoid the warnings (and because it takes a
long time).
Copy link

github-actions bot commented Oct 7, 2025

Documentation preview for this PR (built with commit e9b7ad1; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

Copy link
Contributor

@dcoudert dcoudert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@orlitzky
Copy link
Contributor Author

orlitzky commented Oct 8, 2025

Cool, thank you. In another six months I may actually have fixed (or hidden) all of these.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants