Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 850313 - www-apps/hugo-0.99.1 fails tests
Summary: www-apps/hugo-0.99.1 fails tests
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: tastytea
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2022-06-07 06:19 UTC by Agostino Sarubbo
Modified: 2022-06-25 02:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.xz (build.log.xz,463.20 KB, application/x-xz)
2022-06-07 06:19 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2022-06-07 06:19:39 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: www-apps/hugo-0.99.1 fails tests.
Discovered on: amd64 (internal ref: ci)
Comment 1 Agostino Sarubbo gentoo-dev 2022-06-07 06:19:45 UTC
Created attachment 783209 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Agostino Sarubbo gentoo-dev 2022-06-07 06:19:46 UTC
Error(s) that match a know pattern:


"
ERROR 2022/06/06 22:57:55 Failed to get CSV resource "http://nofound/404": Failed to retrieve remote file: Not Found, body: "Not Found
ERROR 2022/06/06 22:57:55 Failed to get JSON resource "http://nofound/404": Failed to retrieve remote file: Not Found, body: "Not Found
Error: add site dependencies: create deps: 1 error(s) decoding:
Error: open blob.Bucket: no driver registered for "hugocloud" for URL "hugocloud://hugotestbucket"; available schemes: azblob, file, gs, s3
Error: unknown command "unknowncommand" for "hugo"
FAIL
FAIL	github.com/gohugoio/hugo/hugolib	184.005s
Comment 3 tastytea 2022-06-08 00:18:24 UTC
The errors are expected. The issue seems to be that it ran into a 60 second timeout:

>     pagebundler_test.go:95: Build failed: "/work/base/b/my-bundle/index.md:1:1":
> timed out initializing value. You may have a circular loop in a shortcode, or
> your site may have resources that take longer to build than the `timeout` limit
> in your Hugo config file.
> --- FAIL: TestPageBundlerSiteRegular (0.00s)
>     --- PASS: TestPageBundlerSiteRegular/ugly=true,canonify=false,path=NONE (34.91s)
>     --- PASS: TestPageBundlerSiteRegular/ugly=true,canonify=true,path=NONE (38.88s)
>     --- PASS: TestPageBundlerSiteRegular/ugly=false,canonify=true,path=/hugo (42.63s)
>     --- PASS: TestPageBundlerSiteRegular/ugly=false,canonify=true,path=NONE (46.36s)
>     --- PASS: TestPageBundlerSiteRegular/ugly=false,canonify=false,path=/hugo (50.10s)
>     --- PASS: TestPageBundlerSiteRegular/ugly=false,canonify=false,path=NONE (53.85s)
>     --- PASS: TestPageBundlerSiteRegular/ugly=true,canonify=true,path=/hugo (57.71s)
>     --- FAIL: TestPageBundlerSiteRegular/ugly=true,canonify=false,path=/hugo (61.44s)

Some testing suggests that adding `-timeout=2m` to the command in `src_test()` should fix it.
Comment 4 Larry the Git Cow gentoo-dev 2022-06-25 02:50:29 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=261411be21e0625b89be16ff906e2a2102341406

commit 261411be21e0625b89be16ff906e2a2102341406
Author:     Ronny (tastytea) Gutbrod <gentoo@tastytea.de>
AuthorDate: 2022-06-08 00:19:47 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-06-25 02:50:21 +0000

    www-apps/hugo: Increase test timeout
    
    The default test page building timeout is 1 minute, that's a bit too low
    for slower computers.
    
    Closes: https://bugs.gentoo.org/850313
    Signed-off-by: Ronny (tastytea) Gutbrod <gentoo@tastytea.de>
    Signed-off-by: Sam James <sam@gentoo.org>

 www-apps/hugo/files/hugo-0.99.1-test-timeout.patch | 25 ++++++++++++++++++++++
 www-apps/hugo/hugo-0.99.1.ebuild                   |  1 +
 2 files changed, 26 insertions(+)