pkg/server unit test failed

77 views
Skip to first unread message

Ravi Salamani

unread,
Apr 17, 2019, 7:05:43 AM4/17/19
to CockroachDB

I am working on s390x by building it from source. 
github.com/cockroachdb/cockroach/pkg/server failed. 

Log using TESTFLAGS=-v is as follow:

make_test_server_cmd.log




Any input on this will be very useful.

Tobias Grieger

unread,
Apr 17, 2019, 7:38:39 AM4/17/19
to Ravi Salamani, CockroachDB
The test failure is this:

--- FAIL: TestReportUsage (46.40s)
    updates_test.go:401: condition failed to evaluate within 45s: expected non-zero sockets
        goroutine 48240 [running]:
        runtime/debug.Stack(0xa7a358200, 0xc0011a5b60, 0x34c5060)
            /usr/local/go/src/runtime/debug/stack.go:24 +0xae
        github.com/cockroachdb/cockroach/pkg/testutils.SucceedsSoon(0x3511700, 0xc001568200, 0xc003468d70)
            /home/test/src/github.com/cockroachdb/cockroach/pkg/testutils/soon.go:50 +0x11a
        github.com/cockroachdb/cockroach/pkg/server.TestReportUsage(0xc001568200)
            /home/test/src/github.com/cockroachdb/cockroach/pkg/server/updates_test.go:401 +0x1cc2
        testing.tRunner(0xc001568200, 0x302e1e8)
            /usr/local/go/src/testing/testing.go:827 +0xcc
        created by testing.(*T).Run
            /usr/local/go/src/testing/testing.go:878 +0x37a
=== RUN   TestAdminAPITableStats

It's caused by this field not being reported on your architecture:


The error is benign. To fix it, https://github.com/shirou/gopsutil needs to be taught about your architecture (there's a chance that this has already happened and we just haven't picked up the update yet) and then we need to import the update.

The error is benign, btw, so you can ignore it for the time being.

--
You received this message because you are subscribed to the Google Groups "CockroachDB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cockroach-db...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cockroach-db/aa08de51-0c5f-4274-9eb0-cfc6ac36dec4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages