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

Random failure in number_field_element.pyx #33015

Closed
vbraun opened this issue Dec 12, 2021 · 9 comments
Closed

Random failure in number_field_element.pyx #33015

vbraun opened this issue Dec 12, 2021 · 9 comments

Comments

@vbraun
Copy link
Member

vbraun commented Dec 12, 2021

Fails with this particular random seed

sage -t --long --warn-long 47.7 --random-seed=192217669321149031373225857314451720597 src/sage/rings/number_field/number_field_element.pyx
**********************************************************************
File "src/sage/rings/number_field/number_field_element.pyx", line 4419, in sage.rings.number_field.number_field_element.NumberFieldElement.descend_mod_power
Failed example:
    a.descend_mod_power(QQ,2)
Exception raised:
    Traceback (most recent call last):
      File "/home/release/Sage/local/var/lib/sage/venv-python3.9/lib64/python3.9/site-packages/sage/doctest/forker.py", line 694, in _run
        self.compile_and_execute(example, compiler, test.globs)
      File "/home/release/Sage/local/var/lib/sage/venv-python3.9/lib64/python3.9/site-packages/sage/doctest/forker.py", line 1088, in compile_and_execute
        exec(compiled, globs)
      File "<doctest sage.rings.number_field.number_field_element.NumberFieldElement.descend_mod_power[8]>", line 1, in <module>
        a.descend_mod_power(QQ,Integer(2))
      File "sage/rings/number_field/number_field_element.pyx", line 4423, in sage.rings.number_field.number_field_element.NumberFieldElement.descend_mod_power (build/cythonized/sage/rings/number_field/number_field_element.cpp:36236)
        raise ValueError("element must be nonzero")
    ValueError: element must be nonzero
**********************************************************************
1 item had failures:
   1 of  10 in sage.rings.number_field.number_field_element.NumberFieldElement.descend_mod_power
    [1157 tests, 1 failure, 10.07 s]
----------------------------------------------------------------------
sage -t --long --warn-long 47.7 --random-seed=192217669321149031373225857314451720597 src/sage/rings/number_field/number_field_element.pyx  # 1 doctest failed
----------------------------------------------------------------------

CC: @kliem

Component: number fields

Author: Jonathan Kliem

Branch/Commit: ca99e34

Reviewer: Marc Mezzarobba

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

@vbraun vbraun added this to the sage-9.5 milestone Dec 12, 2021
@kliem
Copy link
Contributor

kliem commented Dec 13, 2021

comment:2

@vbraun: Did you notice #32761.

You might want to set SAGE_DOCTEST_RANDOM_SEED to zero for the buildbots so that you don't have to worry about those random failures.

@kliem
Copy link
Contributor

kliem commented Dec 13, 2021

Commit: ca99e34

@kliem
Copy link
Contributor

kliem commented Dec 13, 2021

Author: Jonathan Kliem

@kliem
Copy link
Contributor

kliem commented Dec 13, 2021

New commits:

ca99e34fix random failure in number_field_element.pyx

@kliem
Copy link
Contributor

kliem commented Dec 13, 2021

Branch: public/33015

@mezzarobba
Copy link
Member

Reviewer: Marc Mezzarobba

@kliem
Copy link
Contributor

kliem commented Dec 15, 2021

comment:5

Thank you.

@slel
Copy link
Member

slel commented Jan 30, 2022

comment:6

Setting milestone to 9.6 now that 9.5 is out.

@slel slel modified the milestones: sage-9.5, sage-9.6 Jan 30, 2022
@vbraun
Copy link
Member Author

vbraun commented Feb 12, 2022

Changed branch from public/33015 to ca99e34

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