Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Tests fail, but sbt reports everything is fine #18

Closed
macias opened this Issue Sep 16, 2012 · 11 comments

Comments

Projects
None yet
3 participants

macias commented Sep 16, 2012

openSUSE 11.4, sbt 0.12

When I run tests, the summary looks great, maybe except final error:

[info] Passed: : Total 85, Failed 0, Errors 0, Passed 85, Skipped 0
[error] breeze-math/test:test: Tests unsuccessful

however when I scroll all messages, it appears there are a lot of errors burried among messages, just sbt "forgot" to report and count them. Errors like:

(ERROR) (FirstOrderMinimizer.scala:73) Failure! Resetting history: breeze.optimize.LineSearchFailed: Grad norm: 2.4058 Dir Norm: 0.0709

-- org.jblas ERROR Couldn't load copied link file: java.lang.UnsatisfiedLinkError: /tmp/jblas265468506203409291libjblas.so: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /tmp/jblas265468506203409291libjblas.so).

[error] Error during tests:
[error] breeze.linalg.LinearAlgebraTest

[error] Could not run test breeze.linalg.LinearAlgebraTest: java.lang.UnsatisfiedLinkError: org.jblas.NativeBlas.dpotrf(CI[DII)I

-- org.jblas ERROR Couldn't load copied link file: java.lang.UnsatisfiedLinkError: /tmp/jblas8788535870427962319libjblas.so: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /tmp/jblas8788535870427962319libjblas.so).

Owner

dlwh commented Sep 16, 2012

Hrm, ok. I need to figure out how to make the library a little more
resilient when jblas isn't working at all. In the meantime, you need to
install glibc 2.14 in order to use breeze...

The ERROR in first order minimizer is no big deal. The optimizer just needs
to reset its internal state (I guess I should make it a warning.). That
test still passes.

On Sun, Sep 16, 2012 at 12:58 PM, macias notifications@github.com wrote:

openSUSE 11.4, sbt 0.12

When I run tests, the summary looks great, maybe except final error:

[info] Passed: : Total 85, Failed 0, Errors 0, Passed 85, Skipped 0
[error] breeze-math/test:test: Tests unsuccessful

however when I scroll all messages, it appears there are a lot of errors
burried among messages, just sbt "forgot" to report and count them. Errors
like:

(ERROR) (FirstOrderMinimizer.scala:73) Failure! Resetting history:
breeze.optimize.LineSearchFailed: Grad norm: 2.4058 Dir Norm: 0.0709

-- org.jblas ERROR Couldn't load copied link file:
java.lang.UnsatisfiedLinkError: /tmp/jblas265468506203409291libjblas.so:
/lib64/libc.so.6: version `GLIBC_2.14' not found (required by
/tmp/jblas265468506203409291libjblas.so).

[error] Error during tests:
[error] breeze.linalg.LinearAlgebraTest

[error] Could not run test breeze.linalg.LinearAlgebraTest:
java.lang.UnsatisfiedLinkError: org.jblas.NativeBlas.dpotrf(CI[DII)I

-- org.jblas ERROR Couldn't load copied link file:
java.lang.UnsatisfiedLinkError: /tmp/jblas8788535870427962319libjblas.so:
/lib64/libc.so.6: version `GLIBC_2.14' not found (required by
/tmp/jblas8788535870427962319libjblas.so).


Reply to this email directly or view it on GitHubhttps://github.com/scalanlp/breeze/issues/18.

Owner

dlwh commented Sep 16, 2012

Do you get any kind of stack trace in linearalgebratest?

On Sun, Sep 16, 2012 at 1:06 PM, David Hall dlwh@cs.berkeley.edu wrote:

Hrm, ok. I need to figure out how to make the library a little more
resilient when jblas isn't working at all. In the meantime, you need to
install glibc 2.14 in order to use breeze...

The ERROR in first order minimizer is no big deal. The optimizer just
needs to reset its internal state (I guess I should make it a warning.).
That test still passes.

On Sun, Sep 16, 2012 at 12:58 PM, macias notifications@github.com wrote:

openSUSE 11.4, sbt 0.12

When I run tests, the summary looks great, maybe except final error:

[info] Passed: : Total 85, Failed 0, Errors 0, Passed 85, Skipped 0
[error] breeze-math/test:test: Tests unsuccessful

however when I scroll all messages, it appears there are a lot of errors
burried among messages, just sbt "forgot" to report and count them. Errors
like:

(ERROR) (FirstOrderMinimizer.scala:73) Failure! Resetting history:
breeze.optimize.LineSearchFailed: Grad norm: 2.4058 Dir Norm: 0.0709

-- org.jblas ERROR Couldn't load copied link file:
java.lang.UnsatisfiedLinkError: /tmp/jblas265468506203409291libjblas.so:
/lib64/libc.so.6: version `GLIBC_2.14' not found (required by
/tmp/jblas265468506203409291libjblas.so).

[error] Error during tests:
[error] breeze.linalg.LinearAlgebraTest

[error] Could not run test breeze.linalg.LinearAlgebraTest:
java.lang.UnsatisfiedLinkError: org.jblas.NativeBlas.dpotrf(CI[DII)I

-- org.jblas ERROR Couldn't load copied link file:
java.lang.UnsatisfiedLinkError: /tmp/jblas8788535870427962319libjblas.so:
/lib64/libc.so.6: version `GLIBC_2.14' not found (required by
/tmp/jblas8788535870427962319libjblas.so).


Reply to this email directly or view it on GitHubhttps://github.com/scalanlp/breeze/issues/18.

@dlwh dlwh referenced this issue in dlwh/breeze Sep 16, 2012

@dlwh dlwh Trying to add some indirection for when JBlas dies…
Possible fix for #18?
bcb8ae2
Owner

dlwh commented Sep 16, 2012

Could you try what I just pushed? I tried to add a layer of indirection that should make it more resilient. Thanks!

macias commented Sep 16, 2012

I didn't see any stack trace in the messages. After your last post, I fetched the source again, compiled and honestly there is small change in both direction. Final summary (and only this one, the others still ignore errors) has indication something went wrong:

[error] Failed: : Total 85, Failed 1, Errors 0, Passed 84, Skipped 0
[error] Failed tests:
[error] breeze.stats.distributions.GammaTest

however there are new errors as well:

[info] GammaTest:
[info] - mean
[info] - variance *** FAILED ***
[info] GeneratorDrivenPropertyCheckFailedException was thrown during property evaluation.
info
[info] Falsified after 98 successful property evaluations.
[info] Location: (MomentsTestBase.scala:38)
[info] Occurred when passed generated values (
[info] arg0 = Gamma(345.1,1.0)
[info] )
[info] - mode

The rest is quite the same (visually, I didn't run diff).

Owner

dlwh commented Sep 16, 2012

Gamma is unstable amd it just fails sometimes... Did the linearalgebratest
fail or error out?

Could you just run the math tests?
sbt "project breeze-math" test

On Sep 16, 2012, at 2:52 PM, macias notifications@github.com wrote:

I didn't see any stack trace in the messages. After your last post, I
fetched the source again, compiled and honestly there is small change in
both direction. Final summary (and only this one, the others still ignore
errors) has indication something went wrong:

[error] Failed: : Total 85, Failed 1, Errors 0, Passed 84, Skipped 0
[error] Failed tests:
[error] breeze.stats.distributions.GammaTest

however there are new errors as well:

[info] GammaTest:
[info] - mean
[info] - variance *** FAILED ***
[info] GeneratorDrivenPropertyCheckFailedException was thrown during
property evaluation.
info
[info] Falsified after 98 successful property evaluations.
[info] Location: (MomentsTestBase.scala:38)
[info] Occurred when passed generated values (
[info] arg0 = Gamma(345.1,1.0)
[info] )
[info] - mode

The rest is quite the same (visually, I didn't run diff).


Reply to this email directly or view it on
GitHubhttps://github.com/scalanlp/breeze/issues/18#issuecomment-8600063.

macias commented Sep 17, 2012

sbt "project breeze-math" test

This is not recognized by sbt.

"LinearAlgebraTest:" was executed with error:

[error] Could not run test breeze.linalg.LinearAlgebraTest: java.lang.UnsatisfiedLinkError: org.jblas.NativeBlas.dpotrf(CI[DII)I

Yet it was incorrectly reported :

[error] Error: Total 281, Failed 0, Errors 0, Passed 281, Skipped 0
[error] Error during tests:
[error] breeze.linalg.LinearAlgebraTest

Owner

dlwh commented Sep 17, 2012

Could you try installing GLIBC_2.14?

macias commented Sep 17, 2012

This will have to wait (for OS upgrade). But this report is just about incorrect summaries, I know that since I don't have required libs I will have problems.

Has this issue been reported against sbt? It's not specific to scalanlp, is it?

Owner

dlwh commented Dec 5, 2012

I haven't; I'm overwhelmed with deadlines right now and just don't have
time to do much else.

FWIW, the crasher should be fixed by now. Breeze should work even on
recalcitrant platforms.

On Mon, Dec 3, 2012 at 2:19 PM, Aaron Novstrup notifications@github.comwrote:

Has this issue been reported against sbt? It's not specific to scalanlp,
is it?


Reply to this email directly or view it on GitHubhttps://github.com/scalanlp/breeze/issues/18#issuecomment-10974874.

Owner

dlwh commented Apr 6, 2013

I'm pretty sure this is fixed. The behavior is now that we back off to Java-only implementations. No crashing should happen.

@dlwh dlwh closed this Apr 6, 2013

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