Upgrade to pari 2.17.1, cypari 2.2.1, cysignals 1.12.3#38749
Upgrade to pari 2.17.1, cypari 2.2.1, cysignals 1.12.3#38749vbraun merged 41 commits intosagemath:developfrom
Conversation
|
Needs work because this is not compatible with 2.15. So either it needs to be merged with the pari upgrade or be made to work with older pari too (no idea how). Running tests now. |
|
Many test failures. |
a6acbfb to
f619b6f
Compare
|
If the changes here eventually allow us to use a system Pari 2.17, then we should undo the change in #38772. |
|
With this MR and the cypari fixes sagemath/cypari2#165 and sagemath/cypari2#166 all tests are passing with pari 2.17. The changes are not compatible with 2.15 though, making them compatible requires more work. Also, some pari opeations (such as the number field prime ideals above a given prime) give random output with 2.17, which makes it harder to test. To solve both issues (and make tests more future proof), we should gradually move away from testing the exact output to just testing that the output is correct. |
257246c to
b3c57e1
Compare
|
Can reproduce it with only cypari: I didn't manage to reproduce it in |
|
For the record, the macos conda build is failing with
Which should be fixed with #39526. |
@dimpase Sorry, I've been away. Do you still need some input from me? |
|
@JohnCremona - an expert's view of what's going on here is appreciated. Is this a Pari bug? Or a cypari2/sagemath bug? |
|
What is missing here? This is IMO critical (if not a blocker) for 10.6. I don't think the bug found above is a reason to not upgrade pari. It's not even clear to me that this is a new bug. Note that |
|
Yes, please let get this in. I've wasted enough of my time already rebasing this multiple times. |
Here is a minimal reproducer of the underlying issue without using Simon's scripts: Note that the fundamental unit is missing in the first |
|
for me |
|
Looks like the difference between the cypari and gp behavior is due to the default precision. Can now reproduce in gp: Will report upstream. From quick testing, this seems to happen between 1-2% of the times for different seeds. |
|
@antonio-rojas Great! |
|
Could someone please also have a look at #39526 so that both PRs are merged at the same time to not have a red conda test on macos (see #38749 (comment)). Thanks! |
OK, the issue should be fixed now. The point is that pari's |
How is that related to this PR? |
sagemathgh-38749: Upgrade to pari 2.17.1, cypari 2.2.1, cysignals 1.12.3 `NEXT_PRIME_VIADIFF` is removed in 2.17, port `pari_prime_range` to `pari_PRIMES` instead Needs sagemath/cypari2#165 applied to cypari URL: sagemath#38749 Reported by: Antonio Rojas Reviewer(s): Antonio Rojas, Dima Pasechnik, Gonzalo Tornaría
it's about getting the CI on macOS green. |
|
Maybe the title should be edited to add "numpy 2.2" or something similar? the conda lock files are listing numpy 2. Also what's the plan for numpy 1.26 support now? Are they still officially supported? (if they're not supported how are they tested? |
Numpy 1.26 is EOL on 17 Sep 2025 so let's not overdo it please. |
The PR to update numpy+scipy #39655 |
|
Somehow the build is falling on my machine. Investigation needed. |
NEXT_PRIME_VIADIFFis removed in 2.17, portpari_prime_rangetopari_PRIMESinsteadNeeds sagemath/cypari2#165 applied to cypari