-
-
Notifications
You must be signed in to change notification settings - Fork 612
src/sage/rings/lazy_series_ring.py: test failure for LazyPowerSeriesRing over Zmod(6) #38684
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
Comments
This is not a bug, you need to set
|
Ok, thank you, that explains why the CI isn't catching it... but not why |
Could it be that ptestlong doesn't execute the doc tests in this docstring in one block? |
Then we're back to why doesn't the CI catch it :) It's a new machine so possibly some obscure precision issue. I only discounted that explanation at first because I thought I could reproduce it on sagecell. |
Ok, I'm back. This works: sage: LazyPowerSeriesRing.options.halting_precision(4)
sage: TestSuite(L).run(skip=['_test_revert']) but this does not: sage: LazyPowerSeriesRing.options.halting_precision(5)
sage: TestSuite(L).run(skip=['_test_revert'])
Failure in _test_associativity:
Traceback (most recent call last):
File "/home/mjo/src/sage.git/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/sage/misc/sage_unittest.py", line 298, in run
test_method(tester=tester)
File "/home/mjo/src/sage.git/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/sage/categories/semigroups.py", line 121, in _test_associativity
tester.assertEqual((x * y) * z, x * (y * z))
File "/usr/lib/python3.12/unittest/case.py", line 885, in assertEqual
assertion_func(first, second, msg=msg)
File "/usr/lib/python3.12/unittest/case.py", line 878, in _baseAssertEqual
raise self.failureException(msg)
AssertionError: s + ([61 chars]^4*t+2*s^2*t^3+5*s*t^4) + (s^7+3*s^5*t^2+2*s^4[27 chars],t)^8 != s + ([61 chars]^4*t+4*s^3*t^2+2*s^2*t^3+5*s*t^4) + (s^7+3*s^5[37 chars],t)^8
------------------------------------------------------------
Failure in _test_distributivity:
Traceback (most recent call last):
File "/home/mjo/src/sage.git/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/sage/misc/sage_unittest.py", line 298, in run
test_method(tester=tester)
File "/home/mjo/src/sage.git/local/var/lib/sage/venv-python3.12/lib/python3.12/site-packages/sage/categories/distributive_magmas_and_additive_magmas.py", line 83, in _test_distributivity
tester.assertEqual((x + y) * z, (x * z) + (y * z))
File "/usr/lib/python3.12/unittest/case.py", line 885, in assertEqual
assertion_func(first, second, msg=msg)
File "/usr/lib/python3.12/unittest/case.py", line 878, in _baseAssertEqual
raise self.failureException(msg)
AssertionError: 2 + ([60 chars]3) + (s^5+5*s^4*t+4*s^3*t^2+4*s^2*t^3+5*s*t^4+[36 chars],t)^7 != 2 + ([60 chars]3) + 4*s^2*t^2 + (s^5+5*s^4*t+4*s^3*t^2+4*s^2*[48 chars],t)^7
------------------------------------------------------------
The following tests failed: _test_associativity, _test_distributivity I'd love to know what elements cause this to fail, but the POS test runner is hiding them, so now I have N+1 problems. |
Hm, I cannot reproduce this on my computer :-( |
I added
|
This is probably the same issue so I'm just going to focus on the simpler associativity property. I got the left/right computed values too now. With,
I get:
I guess the LHS in this case is |
could you give me precise instructions on how to reproduce this? That is: exact branch (develop?) and input in a fresh session, and perhaps also a diff that makes it print the above LHS and RHS. Thank you so much for investigating! |
I wouldn't worry about it too much, you probably won't be able to reproduce it. It's happening on some new RISC-V hardware, and I would bet that I'm the first person to try to run sage (or at least, the sage test suite) on such a machine. Mostly things are fine, but I've only had the box for about a month, and I'm still sorting out a lot of other minor issues. Until that is done, I'm working on " |
Spoke too soon! I'm testing #38770 on my "normal" amd64 PC at work and I see the same issue. Unless there are surprise giac conversions in this code, my next guess is that it has something to do with the system packages on Gentoo that are being used right now. |
Argh, after all that... it's because singular forgot how to do multiplication: #38158 (comment) Second prize goes to github for not showing any results when I search for lazy_series_ring in issues / pull requests. Sorry for wasting your time, but thanks for trying to help. |
I'm not sure why the CI isn't catching this, I can reproduce it at https://sagecell.sagemath.org/
The text was updated successfully, but these errors were encountered: