Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 950337 - www-apps/hugo-0.144.2: fails tests
Summary: www-apps/hugo-0.144.2: fails tests
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-02-27 12:36 UTC by Viorel Munteanu
Modified: 2025-02-27 14:51 UTC (History)
2 users (show)

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


Attachments
build.log (build.log.xz,701.08 KB, application/x-xz)
2025-02-27 12:36 UTC, Viorel Munteanu
Details
emerge --info (emerge--info.txt,25.83 KB, text/plain)
2025-02-27 12:37 UTC, Viorel Munteanu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Viorel Munteanu gentoo-dev 2025-02-27 12:36:29 UTC
Created attachment 919999 [details]
build.log

There are 2 tests that fail:

--- FAIL: TestPagesFromGoTmplAsciidocAndSimilar (0.24s)
--- FAIL: TestBatch (0.02s)

TestPagesFromGoTmplAsciidocAndSimilar was also failing in previous versions.
Comment 1 Viorel Munteanu gentoo-dev 2025-02-27 12:37:13 UTC
Created attachment 920000 [details]
emerge --info
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-02-27 12:37:48 UTC
Missing asciidoctor dep:
```
=== RUN   TestPagesFromGoTmplAsciidocAndSimilar
ERROR asciidoctor not found in $PATH: Please install.
                  Leaving AsciiDoc content unrendered.

    integrationtest_builder.go:127: 
        error:
          got non-nil error
        got:
          e"logged 1 error(s)"
        stack:
          /mnt/extratmp/portage/www-apps/hugo-0.144.2/work/hugo-0.144.2/hugolib/integrationtest_builder.go:461
            s.Assert(err, qt.IsNil)
          /mnt/extratmp/portage/www-apps/hugo-0.144.2/work/hugo-0.144.2/hugolib/integrationtest_builder.go:127
            return NewIntegrationTestBuilder(cfg).Build()
          /mnt/extratmp/portage/www-apps/hugo-0.144.2/work/hugo-0.144.2/hugolib/pagesfromdata/pagesfromgotmpl_integration_test.go:151
            b := hugolib.Test(t, files)
        
--- FAIL: TestPagesFromGoTmplAsciidocAndSimilar (0.24s)
```
Comment 3 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-02-27 12:38:22 UTC
Missing nodejs[npm] dep:
```
=== RUN   TestBatch
    integrationtest_builder.go:740: 
        error:
          got non-nil error
        got:
          e`binary with name "npm" not found in PATH`
        stack:
          /mnt/extratmp/portage/www-apps/hugo-0.144.2/work/hugo-0.144.2/hugolib/integrationtest_builder.go:740
            s.Assert(err, qt.IsNil)
          /usr/lib/go/src/sync/once.go:76
            f()
          /usr/lib/go/src/sync/once.go:67
            o.doSlow(f)
          /mnt/extratmp/portage/www-apps/hugo-0.144.2/work/hugo-0.144.2/hugolib/integrationtest_builder.go:619
            s.builderInit.Do(func() {
                var afs afero.Fs
                if s.Cfg.NeedsOsFS {
                    afs = afero.NewOsFs()
                } else {
                    afs = afero.NewMemMapFs()
                }
[...]
```

Perhaps better to skip those 2 tests.
Comment 4 Viorel Munteanu gentoo-dev 2025-02-27 12:40:11 UTC
The first one also fails with asciidoctor installed, the message is just informative

For the second one I didn't try to install npm

But I agree, both tests should be skipped.