Skip to content

test failure with Go 1.25 #4696

@katexochen

Description

@katexochen

Description

time="2025-09-08T08:45:42+02:00" level=warning msg="error parsing level \"\": not a valid logrus Level: \"\", using \"info\"\t"
time="2025-09-08T08:45:42.632995308+02:00" level=warning msg="No HTTP secret provided - generated random secret. This may cause problems with uploads if multiple registries are behind a load-balancer. To provide a shared secret, fill in http.secret in the configuration file or set the REGISTRY_HTTP_SECRET environment variable." go.version=go1.25.0
time="2025-09-08T08:45:42.633009875+02:00" level=info msg="redis not configured" go.version=go1.25.0
time="2025-09-08T08:45:42.633083485+02:00" level=info msg="Starting upload purge in 59m0s" go.version=go1.25.0
time="2025-09-08T08:45:42.633230834+02:00" level=info msg="listening on [::]:5000" go.version=go1.25.0
time="2025-09-08T08:45:45.637333174+02:00" level=info msg="stopping server gracefully. Draining connections for 10s" go.version=go1.25.0
--- FAIL: TestGracefulShutdown (3.11s)
    registry_test.go:119: unexpected EOF
time="2025-09-08T08:45:45.78424222+02:00" level=warning msg="error parsing level \"\": not a valid logrus Level: \"\", using \"info\"\t"
time="2025-09-08T08:45:45.784712211+02:00" level=warning msg="No HTTP secret provided - generated random secret. This may cause problems with uploads if multiple registries are behind a load-balancer. To provide a shared secret, fill in http.secret in the configuration file or set the REGISTRY_HTTP_SECRET environment variable." go.version=go1.25.0
time="2025-09-08T08:45:45.784726898+02:00" level=info msg="redis not configured" go.version=go1.25.0
time="2025-09-08T08:45:45.784798414+02:00" level=info msg="Starting upload purge in 58m0s" go.version=go1.25.0
time="2025-09-08T08:45:45.78486476+02:00" level=info msg="restricting TLS version to tls1.2 or higher" go.version=go1.25.0
time="2025-09-08T08:45:45.784889206+02:00" level=info msg="restricting TLS cipher suites to: TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256" go.version=go1.25.0
time="2025-09-08T08:45:45.785066693+02:00" level=info msg="listening on [::]:5001, tls" go.version=go1.25.0
time="2025-09-08T08:45:48.789102345+02:00" level=info msg="response completed" go.version=go1.25.0 http.request.host=127.0.0.1 http.request.id=01992812-dc74-76e8-bb2a-fe68a152a726 http.request.method=GET http.request.remoteaddr="127.0.0.1:54986" http.request.uri=/v2/ http.request.useragent= http.response.contenttype=application/json http.response.duration="647.747µs" http.response.status=200 http.response.written=2
127.0.0.1 - - [08/Sep/2025:08:45:48 +0200] "GET /v2/ HTTP/1.1" 200 2 "" ""
time="2025-09-08T08:45:48.789200711+02:00" level=info msg="stopping server gracefully. Draining connections for 10s" go.version=go1.25.0
time="2025-09-08T08:45:48.918574567+02:00" level=warning msg="error parsing level \"\": not a valid logrus Level: \"\", using \"info\"\t"
time="2025-09-08T08:45:48.919860384+02:00" level=warning msg="No HTTP secret provided - generated random secret. This may cause problems with uploads if multiple registries are behind a load-balancer. To provide a shared secret, fill in http.secret in the configuration file or set the REGISTRY_HTTP_SECRET environment variable." go.version=go1.25.0
time="2025-09-08T08:45:48.91991079+02:00" level=info msg="redis not configured" go.version=go1.25.0
time="2025-09-08T08:45:48.919934735+02:00" level=info msg="Starting upload purge in 15m0s" go.version=go1.25.0
time="2025-09-08T08:45:48.920148661+02:00" level=info msg="restricting TLS version to tls1.2 or higher" go.version=go1.25.0
time="2025-09-08T08:45:50.787569669+02:00" level=error msg="traces export: Post \"https://localhost:4318/v1/traces\": dial tcp [::1]:4318: connect: connection refused" go.version=go1.25.0
FAIL
FAIL	github.com/distribution/distribution/v3/registry	14.400s

Reproduce

go test ./registry/ with Go 1.25.0.
The same test passes with Go 1.24.5

Expected behavior

tests pass

registry version

3.0.0

Additional Info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions