Test fails

15 views
Skip to first unread message

Jaward Sally

unread,
Apr 3, 2024, 5:49:35 AMApr 3
to gonum-dev
Hi, I am a newbie to the gonum library. So as a starter I have run the tests (All at once) and I got they failed randomly while some are passing. Is there any guide to run the tests for this library? 

Can anyone please help me... 

Dan Kortschak

unread,
Apr 3, 2024, 8:08:59 PMApr 3
to gonu...@googlegroups.com
You'll need to provide some information about what you did and the
platform you are on in order for us to be able to help.

Jan Mercl

unread,
Apr 5, 2024, 12:29:00 PMApr 5
to Jaward Sally, gonum-dev
Please share your Go version, $GOARCH and $GOOS and the tag or commit of the library you're testing. Please also include the command you're using to run the tests and the output you're seeing. This will help others to better help you.

Thank you.


On Wed, Apr 3, 2024, 11:49 Jaward Sally <jaward...@gmail.com> wrote:
Hi, I am a newbie to the gonum library. So as a starter I have run the tests (All at once) and I got they failed randomly while some are passing. Is there any guide to run the tests for this library? 

Can anyone please help me... 

--
You received this message because you are subscribed to the Google Groups "gonum-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gonum-dev+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gonum-dev/e48530db-41f4-49d7-ab9d-3b0a090a7025n%40googlegroups.com.

Jan Mercl

unread,
Apr 5, 2024, 12:29:05 PMApr 5
to gonum-dev
Forwarding to the mailing list.

---------- Forwarded message ---------
From: Jaward Sally <jaward...@gmail.com>
Date: Thu, Apr 4, 2024 at 2:03 PM
Subject: Re: [gonum-dev] Test fails
To: Jan Mercl <0xj...@gmail.com>


Hi, Here are my go related variable value and other relevant data

Go version - go1.22.1 linux/amd64

Testing branch - master

Command to run teh test - /usr/bin/go test -timeout 30s ./...

I am getting the following error. I have only stated a portion of the
error since it's quite lengthy.


goroutine 67 [runnable]:
gonum.org/v1/gonum/mat.(*VecDense).CopyVec(0xc001780030, {0x6121c0,
0xc0003ccea0})
/home/jawadh-salih/Projects/gonum/mat/vector.go:248 +0x31e
gonum.org/v1/gonum/mat.(*VecDense).MulVec(0xc0003ccea0, {0x611c60,
0xc0003c3010}, {0x6121c0, 0xc0003ccea0})
/home/jawadh-salih/Projects/gonum/mat/vector.go:660 +0xc85
gonum.org/v1/gonum/stat/distmv.NormalRandCov({0xc0077c82a0, 0x3,
0x1ab26c}, {0xc00001a3d8, 0x3, 0x3}, {0x6120c8, 0xc00007a140},
{0x6119c0, 0xc000502020})
/home/jawadh-salih/Projects/gonum/stat/distmv/normal.go:433 +0x2ac
gonum.org/v1/gonum/stat/distmv.TestNormalRandCov(0xc0000b8820)
/home/jawadh-salih/Projects/gonum/stat/distmv/normal_test.go:662 +0xe1c
testing.tRunner(0xc0000b8820, 0x5dc760)
/usr/local/go/src/testing/testing.go:1689 +0xfb
created by testing.(*T).Run in goroutine 1
/usr/local/go/src/testing/testing.go:1742 +0x390
FAIL gonum.org/v1/gonum/stat/distmv 30.067s
ok gonum.org/v1/gonum/stat/distuv 27.417s
ok gonum.org/v1/gonum/stat/mds 0.063s
ok gonum.org/v1/gonum/stat/samplemv 9.260s
ok gonum.org/v1/gonum/stat/sampleuv 6.329s
ok gonum.org/v1/gonum/stat/spatial 0.653s
ok gonum.org/v1/gonum/unit 0.078s
ok gonum.org/v1/gonum/unit/constant 0.056s
FAIL


I have attached the whole error log as well.

But I am thinking that this is because of the timeout that I have set
when running.. 🤔 (I feel so dumb 😥)
log.txt

Dan Kortschak

unread,
Apr 5, 2024, 5:02:39 PMApr 5
to gonu...@googlegroups.com
On Thu, 2024-04-04 at 14:14 +0200, Jan Mercl wrote:
> But I am thinking that this is because of the timeout that I have set
> when running.. 🤔

This is the case. From the attached log:

> panic: test timed out after 30s
> running tests:
> TestDCT (8s)
> TestDCT/Reset_DCT (8s)
> TestDST (8s)
> TestDST/Reset_DST (8s)
> TestFFT (8s)
> TestFFT/Reset_FFT (8s)
> TestQuarterWaveFFT (8s)
> TestQuarterWaveFFT/Reset_QuarterWaveFFT (8s)

There are a bunch of test sets that will take longer than a minute, so
setting the timeout this short will fail at some point. I'm surprised
that distmv takes 30s since on my old hardware it takes only 25s, but
this is the cause.

Dan

Reply all
Reply to author
Forward
0 new messages