Skip to content

runtime: TestReadMetricsSched failures on s390x since CL 721002 #76613

@srinivas-pokala

Description

@srinivas-pokala

Go version

go version go1.26-devel_c079dd13c0 Thu Nov 27 05:54:25 2025 -0800 linux/s390x

Output of go env in your module/workspace:

AR='ar'
CC='gcc'
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_ENABLED='1'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
CXX='g++'
GCCGO='gccgo'
GO111MODULE=''
GOARCH='s390x'
GOAUTH='netrc'
GOBIN='/root/go/bin'
GOCACHE='/root/.cache/go-build'
GOCACHEPROG=''
GODEBUG=''
GOENV='/root/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFIPS140='off'
GOFLAGS=''
GOGCCFLAGS='-fPIC -m64 -march=z13 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build3600178475=/tmp/go-build -gno-record-gcc-switches'
GOHOSTARCH='s390x'
GOHOSTOS='linux'
GOINSECURE=''
GOMOD='/root/go_compiler/dev/go_src/src/go.mod'
GOMODCACHE='/root/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/root/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/root/go_compiler/dev/go_src'
GOSUMDB='sum.golang.org'
GOTELEMETRY='local'
GOTELEMETRYDIR='/root/.config/go/telemetry'
GOTMPDIR=''
GOTOOLCHAIN='auto'
GOTOOLDIR='/root/go_compiler/dev/go_src/pkg/tool/linux_s390x'
GOVCS=''
GOVERSION='go1.26-devel_c079dd13c0 Thu Nov 27 05:54:25 2025 -0800'
GOWORK=''
PKG_CONFIG='pkg-config'

What did you do?

I ran ./all.bash on tip of the master,

What did you see happen?

TestReadMetricsSched failing with below verbose:

--- FAIL: TestReadMetricsSched (0.16s)
    metrics_test.go:1581: /tmp/go-build2389263017/testprog.exe SchedMetrics: exit status 1
    metrics_test.go:1584: output:
        === Checking "base"
                /sched/goroutines/not-in-go:goroutines: 0
                /sched/goroutines/runnable:goroutines: 1
                /sched/goroutines/running:goroutines: 1
                /sched/goroutines/waiting:goroutines: 132
                /sched/goroutines-created:goroutines: 134
                /sched/threads/total:threads: 37
        === Checking "created"
                /sched/goroutines/not-in-go:goroutines: 0
                /sched/goroutines/runnable:goroutines: 0
                /sched/goroutines/running:goroutines: 11
                /sched/goroutines/waiting:goroutines: 133
                /sched/goroutines-created:goroutines: 144
                /sched/threads/total:threads: 37
        === Checking "running"
                /sched/goroutines/not-in-go:goroutines: 0
                /sched/goroutines/runnable:goroutines: 0
                /sched/goroutines/running:goroutines: 11
                /sched/goroutines/waiting:goroutines: 133
                /sched/goroutines-created:goroutines: 144
                /sched/threads/total:threads: 37
                /sched/threads/total:threads too high; 37 > 19
        === Checking "runnable"
                /sched/goroutines/not-in-go:goroutines: 0
                /sched/goroutines/runnable:goroutines: 10
                /sched/goroutines/running:goroutines: 1
                /sched/goroutines/waiting:goroutines: 133
                /sched/goroutines-created:goroutines: 144
                /sched/threads/total:threads: 37
        === Checking "not-in-go"
                /sched/goroutines/not-in-go:goroutines: 10
                /sched/goroutines/runnable:goroutines: 0
                /sched/goroutines/running:goroutines: 1
                /sched/goroutines/waiting:goroutines: 133
                /sched/goroutines-created:goroutines: 154
                /sched/threads/total:threads: 37
        === Checking "waiting"
                /sched/goroutines/not-in-go:goroutines: 0
                /sched/goroutines/runnable:goroutines: 0
                /sched/goroutines/running:goroutines: 1
                /sched/goroutines/waiting:goroutines: 1133
                /sched/goroutines-created:goroutines: 1154
                /sched/threads/total:threads: 49

It appears the failures began with the commit: a18aff8

What did you expect to see?

It should pass all the test's.

Metadata

Metadata

Assignees

Labels

NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.arch-s390xIssues solely affecting the s390x architecture.compiler/runtimeIssues related to the Go compiler and/or runtime.

Type

No type

Projects

Status

Todo

Relationships

None yet

Development

No branches or pull requests

Issue actions