#1135257 hugo: flaky test? FAIL: TestServer/hugo__watch

Package:
hugo
Source:
hugo
Description:
Fast and flexible Static Site Generator written in Go
Submitter:
Simon Josefsson
Date:
2026-06-16 08:29:01 UTC
Severity:
normal
#1135257#5
Date:
2026-04-30 07:11:48 UTC
From:
To:
This doesn't happen always, but it is annoying since it hold testing
migration back for other packages.  Here is one log where it occur:

https://ci.debian.net/packages/h/hugo/testing/ppc64el/70638988/#L12457

2013s --- FAIL: TestServer (0.00s)
2013s     --- PASS: TestServer/server_disablelivereload__config (3.25s)
2013s     --- FAIL: TestServer/hugo__watch (3.47s)

This looks suspicious:

2013s         FAIL: testscripts/server/hugo__watch.txt:9: open $WORK/public/p1/index.html: no such file or directory
2013s         [background] hugo -w: signal: interrupt

/Simon

2013s === NAME  TestServer/hugo__watch
2013s     testscript.go:584: WORK=$WORK
2013s         PATH=/tmp/testscript-main531127484/bin:/usr/lib/go-1.26/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
2013s         GOTRACEBACK=system
2013s         HOME=$WORK/home
2013s         TMPDIR=$WORK/.tmp
2013s         devnull=/dev/null
2013s         /=/
2013s         :=:
2013s         $=$
2013s         exe=
2013s         HUGO_TESTRUN=true
2013s         HUGO_CACHEDIR=$WORK/hugocache
2013s         XDG_CACHE_HOME=$WORK/xdgcachehome
2013s         SOURCE=/tmp/autopkgtest-lxc.a15ro7ch/downtmp/autopkgtest_tmp/_build/src/github.com/gohugoio/hugo
2013s         GOVERSION=1.26.2
2013s         GOMODVERSION=1.26.2
2013s
2013s         # Test the hugo command.
2013s         # See https://github.com/rogpeppe/go-internal/issues/228 (3.052s)
2013s         > [windows] skip
2013s         > hugo -w &
2013s         > sleep 3
2013s         > grep 'P1start' public/p1/index.html
2013s         FAIL: testscripts/server/hugo__watch.txt:9: open $WORK/public/p1/index.html: no such file or directory
2013s         [background] hugo -w: signal: interrupt

#1135257#10
Date:
2026-06-16 08:27:11 UTC
From:
To:
retitle 1135257 hugo: flaky FTBFS: FAIL: TestServer/hugo__watch TestWebPMisc
thanks

Seen again here:

https://ci.debian.net/packages/h/hugo/testing/ppc64el/72119946/#L13182

1099s === NAME  TestServer/hugo__watch
...
1099s         > grep 'P1start' public/p1/index.html
1099s         FAIL: testscripts/server/hugo__watch.txt:9: open $WORK/public/p1/index.html: no such file or directory
1099s         [background] hugo -w: signal: interrupt
...
1099s --- FAIL: TestServer (0.00s)
1099s     --- FAIL: TestServer/hugo__watch (3.12s)

And another failure:

https://ci.debian.net/packages/h/hugo/testing/ppc64el/72119946/#L19260

1786s === RUN   TestWebPMisc
1786s     integrationtest_builder.go:156:
1786s         error:
1786s           got non-nil error
1786s         got:
1786s           e`render: [en v1.0.0 guest] failed to render pages: render of "/" failed: "/layouts/home.html:2:21": execute of template failed: template: home.html:2:21: executing "home.html" at <$image.Resize>: error calling Resize: failed to resize image "/assets/sunrise.webp": resize /sunrise.webp: timeout`
1786s         stack:
1786s           /tmp/autopkgtest-lxc.o8092lu_/downtmp/autopkgtest_tmp/_build/src/github.com/gohugoio/hugo/hugolib/integrationtest_builder.go:656
1786s             s.Assert(err, qt.IsNil)
1786s           /tmp/autopkgtest-lxc.o8092lu_/downtmp/autopkgtest_tmp/_build/src/github.com/gohugoio/hugo/hugolib/integrationtest_builder.go:156
1786s             return NewIntegrationTestBuilder(cfg).Build()
1786s           /tmp/autopkgtest-lxc.o8092lu_/downtmp/autopkgtest_tmp/_build/src/github.com/gohugoio/hugo/internal/warpc/webp_integration_test.go:43
1786s             b := hugolib.Test(t, files)
1786s
1786s --- FAIL: TestWebPMisc (30.84s)

/Simon