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 matrix_integer_dense.pyx #19380

Open
vbraun opened this issue Oct 9, 2015 · 8 comments
Open

Random failure in matrix_integer_dense.pyx #19380

vbraun opened this issue Oct 9, 2015 · 8 comments

Comments

@vbraun
Copy link
Member

vbraun commented Oct 9, 2015

sage -t --long src/sage/matrix/matrix_integer_dense.pyx
**********************************************************************
File "src/sage/matrix/matrix_integer_dense.pyx", line 4108, in sage.matrix.matrix_integer_dense.Matrix_integer_dense._solve_iml
Failed example:
    t < 10 or t
Expected:
    True
Got:
    13.89298391342163
**********************************************************************
1 item had failures:
   1 of  23 in sage.matrix.matrix_integer_dense.Matrix_integer_dense._solve_iml

CC: @jdemeyer

Component: linear algebra

Keywords: random_fail

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

@vbraun vbraun added this to the sage-6.9 milestone Oct 9, 2015
@jdemeyer
Copy link

jdemeyer commented Oct 9, 2015

comment:1

Well, it passes if the machine is not under extremely high load...

If you really want the doctests to pass always, the only option is removing the test.

@vbraun
Copy link
Member Author

vbraun commented Oct 9, 2015

comment:2

Why do we need a timeout different from the doctest timeout? Its not a benchmark, we just want to know if abort works or not. And doctests are totally unsuitable for benchmarks anyways, as can be seen here.

@jdemeyer
Copy link

jdemeyer commented Oct 9, 2015

comment:3

Replying to @vbraun:

Why do we need a timeout different from the doctest timeout?

That's too long.

You have a find a time T such that

  1. no machine can finish the actual computation in less than time T
  2. every machine can process the interrupt in at most time T

And doctests are totally unsuitable for benchmarks anyways

It's not meant as benchmark, it's meant to show that interrupts work.

@vbraun
Copy link
Member Author

vbraun commented Oct 9, 2015

comment:4

There are two different times. I'm talking about the t < 10, not the alarm(2). The former unnecessarily duplicates the doctest timeout. Your 1. is referring to the latter.

@jdemeyer
Copy link

jdemeyer commented Oct 9, 2015

comment:5

Replying to @vbraun:

There are two different times. I'm talking about the t < 10, not the alarm(2). The former unnecessarily duplicates the doctest timeout. Your 1. is referring to the latter.

No, because I want to test that the function was actually interrupted. If some function takes 5 seconds to run, then it will always take at most 5 seconds to "interrupt", even if the interrupt doesn't work.

@vbraun
Copy link
Member Author

vbraun commented Oct 9, 2015

comment:6

But the output would be different; If the function runs to completion it shows the actual output and the AlarmInterrupt would come later. So the doctests already tests that the function was successfully interrupted even without the t<10

@vbraun
Copy link
Member Author

vbraun commented Oct 24, 2015

comment:7

Another one:

sage -t --long src/sage/matrix/matrix_integer_dense.pyx
**********************************************************************
File "src/sage/matrix/matrix_integer_dense.pyx", line 4108, in sage.matrix.matrix_integer_dense.Matrix_integer_dense._solve_iml
Failed example:
    t < 10 or t
Expected:
    True
Got:
    13.529191970825195
**********************************************************************
1 item had failures:
   1 of  23 in sage.matrix.matrix_integer_dense.Matrix_integer_dense._solve_iml
    [570 tests, 1 failure, 54.32 s]

@vbraun
Copy link
Member Author

vbraun commented Oct 24, 2015

comment:8

Another one:

sage -t --long src/sage/matrix/matrix_integer_dense.pyx
**********************************************************************
File "src/sage/matrix/matrix_integer_dense.pyx", line 4108, in sage.matrix.matrix_integer_dense.Matrix_integer_dense._solve_iml
Failed example:
    t < 10 or t
Expected:
    True
Got:
    19.849074125289917
**********************************************************************
1 item had failures:
   1 of  23 in sage.matrix.matrix_integer_dense.Matrix_integer_dense._solve_iml
    [570 tests, 1 failure, 58.04 s]

@mkoeppe mkoeppe removed this from the sage-6.9 milestone Dec 29, 2022
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

3 participants