compiling go-1.22.2 and go-1.21.9 fail due to timeout during test of net/http package

118 views
Skip to first unread message

Ron Hermsen

unread,
Apr 20, 2024, 10:34:39 PMApr 20
to golang-nuts
compiling go-1.22.2 and go-1.21.9 fail due to timeout during test of net/http package

I tried a number of earlier releases but looks only the latest two fail.
(each build takes about 40min, so didn't try more options)

<all earler tests are ok>
ok      net     8.598s
panic: test timed out after 9m0s
running tests:
<about 15k of lines>
FAIL    net/http        540.260s
<all furhter test are ok>
FAIL
go tool dist: Failed: exit status 1


system details:
TinyCoreLinux, CorePlus64-15.0

$ uname -a
Linux testapps 6.6.8-tinycore64 #666 SMP Sat Dec 23 16:41:21 UTC 2023 x86_64 GNU/Linux

Both source version and the bootstrap are 1.22.2 (or both are 1.21.9).

Tried source version 1.22.2 and bootstrap version 1.22.0 which failed the net/http package the same way.

build output 

Ian Lance Taylor

unread,
Apr 20, 2024, 10:54:14 PMApr 20
to Ron Hermsen, golang-nuts
On Sat, Apr 20, 2024 at 7:34 PM Ron Hermsen <ronhe...@gmail.com> wrote:
>
> compiling go-1.22.2 and go-1.21.9 fail due to timeout during test of net/http package
>
> I tried a number of earlier releases but looks only the latest two fail.
> (each build takes about 40min, so didn't try more options)
>
> <all earler tests are ok>
> ok net 8.598s
> panic: test timed out after 9m0s
> running tests:
> <about 15k of lines>
> FAIL net/http 540.260s
> <all furhter test are ok>
> FAIL
> go tool dist: Failed: exit status 1
>
>
> system details:
> TinyCoreLinux, CorePlus64-15.0
>
> $ uname -a
> Linux testapps 6.6.8-tinycore64 #666 SMP Sat Dec 23 16:41:21 UTC 2023 x86_64 GNU/Linux
>
> Both source version and the bootstrap are 1.22.2 (or both are 1.21.9).
>
> Tried source version 1.22.2 and bootstrap version 1.22.0 which failed the net/http package the same way.


I don't know why the tests are taking so long on your system, but your
Go distribution is installed and working. It is only failing during
the testing phase.

To explore what is happening with net/http, try running "go test
-test.short -test.v net/http". On my laptop it takes just a few
seconds. Using -test.v may show which test is hanging.

Ian

Ron Hermsen

unread,
Apr 21, 2024, 8:40:41 AMApr 21
to Ian Lance Taylor, golang-nuts
Thanks for informing it is actually installed fine at the time it is failing the test.

My TCL VM is running as a nested VM, and resources are limited (one CPU, 8GB Ram is assigned for this VM).
Assuming only fixes are back-ported to 1.21.x it is likely a fix that affects both 1.22.2 and 1.21.9 in the same way.


$ /tmp/submit/go/usr/local/go/bin/go test -test.short -test.v net/http

<snip>
=== CONT  TestRequestLimit/h2
panic: test timed out after 10m0s
running tests:
        TestRequestLimit/h2 (9m52s)
<snip>
FAIL    net/http        600.656s
FAIL

Complete output (10k lines):

To compare with 1.22.1 which pass without issues:

Op zo 21 apr 2024 om 04:53 schreef Ian Lance Taylor <ia...@golang.org>:
Reply all
Reply to author
Forward
0 new messages