Skip to content

db - fails to test #48194

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
smoser opened this issue Mar 25, 2025 · 0 comments · Fixed by #52989
Closed

db - fails to test #48194

smoser opened this issue Mar 25, 2025 · 0 comments · Fixed by #52989
Assignees

Comments

@smoser
Copy link
Member

smoser commented Mar 25, 2025

$ git log --oneline HEAD^.. --no-decorate 
078626754 pixi/0.43.3 package update (#48168)

$ make test/db                                                              
Testing package db with version db-5.3.28-r2 from file db.yaml                                               
/disks/home/smoser/go/bin/melange test db.yaml --repository-append /disks/home/smoser/src/wolfi-os/packages -
-keyring-append local-melange.rsa.pub --arch x86_64 --pipeline-dirs ./pipelines/ --repository-append https://
packages.wolfi.dev/os --keyring-append https://packages.wolfi.dev/os/wolfi-signing.rsa.pub --test-package-app
end wolfi-base --debug  --source-dir ./db/                                                                   
2025/03/25 16:06:50 INFO building test workspace in: '/tmp/melange-guest-3221497981-main' with apko
2025/03/25 16:06:50 INFO image configuration:                                                                
2025/03/25 16:06:50 INFO   contents:                                                                         
2025/03/25 16:06:50 INFO     build repositories: []                                                          
2025/03/25 16:06:50 INFO     runtime repositories: []                                                        
2025/03/25 16:06:50 INFO     keyring:      []                                                                
2025/03/25 16:06:50 INFO     packages:     [db apk-tools busybox posix-libc-utils]          
2025/03/25 16:06:50 INFO   accounts:                                                                         
2025/03/25 16:06:50 INFO     runas:                                                                          
2025/03/25 16:06:50 INFO     users:                                                                          
2025/03/25 16:06:50 INFO       - uid=1000(build) gid=1000                                   
2025/03/25 16:06:50 INFO     groups:                                                                         
2025/03/25 16:06:50 INFO       - gid=1000(build) members=[build]
...
2025/03/25 16:06:53 INFO running step "docs readability check"
2025/03/25 16:06:53 WARN + '[' -d /home/build ]
2025/03/25 16:06:53 WARN + cd /home/build
2025/03/25 16:06:53 WARN + basename /home/build/melange-out/db-doc
2025/03/25 16:06:53 WARN + doc_pkg=db-doc
2025/03/25 16:06:53 WARN + apk info -qL db-doc
2025/03/25 16:06:53 WARN + grep -v ^var/lib/db/sbom
2025/03/25 16:06:53 WARN + grep -v '^$'
2025/03/25 16:06:53 WARN + wc -l
2025/03/25 16:06:53 WARN + '[' 5245 -eq 0 ]
2025/03/25 16:06:53 WARN + cd /
2025/03/25 16:06:53 WARN + doc_files=false
2025/03/25 16:06:53 WARN + apk info -qL db-doc
2025/03/25 16:06:53 WARN + grep ^usr/share/man/
2025/03/25 16:06:53 WARN + '[' -f /usr/share/man/db/index.html ]
2025/03/25 16:06:53 WARN + man -l /usr/share/man/db/index.html
2025/03/25 16:06:53 WARN troff:<standard input>:49: warning [p 1, 6.5i]: cannot adjust line
2025/03/25 16:06:53 WARN troff:<standard input>:65: warning [p 1, 8.5i]: cannot adjust line
2025/03/25 16:06:53 WARN troff:<standard input>:87: warning [p 2, 0.0i]: cannot adjust line
2025/03/25 16:06:53 WARN troff:<standard input>:95: warning [p 2, 1.2i]: cannot adjust line
2025/03/25 16:06:53 WARN troff:<standard input>:110: warning [p 2, 2.8i]: cannot adjust line
2025/03/25 16:06:53 WARN troff:<standard input>:111: warning [p 2, 3.0i]: cannot adjust line
2025/03/25 16:06:53 WARN troff:<standard input>:133: warning [p 2, 5.5i]: cannot adjust line
2025/03/25 16:06:53 WARN troff:<standard input>:141: warning [p 2, 6.7i]: cannot adjust line
2025/03/25 16:06:53 WARN troff:<standard input>:169: warning [p 2, 10.2i]: cannot adjust line
2025/03/25 16:06:53 WARN troff:<standard input>:190: warning [p 3, 1.3i]: cannot adjust line
2025/03/25 16:06:53 WARN troff:<standard input>:193: warning [p 3, 2.0i]: cannot adjust line
2025/03/25 16:06:53 WARN troff:<standard input>:214: warning [p 3, 4.3i]: cannot adjust line
2025/03/25 16:06:53 WARN troff:<standard input>:222: warning [p 3, 5.5i]: cannot adjust line
2025/03/25 16:06:53 WARN troff:<standard input>:230: warning [p 3, 6.5i]: cannot adjust line
2025/03/25 16:06:53 WARN troff:<standard input>:230: warning [p 3, 6.7i]: cannot break line
2025/03/25 16:06:53 WARN troff:<standard input>:238: warning [p 3, 7.7i]: cannot adjust line
2025/03/25 16:06:53 WARN troff:<standard input>:246: warning [p 3, 8.7i]: cannot adjust line
2025/03/25 16:06:53 WARN troff:<standard input>:246: warning [p 3, 8.8i]: cannot break line
2025/03/25 16:06:53 WARN troff:<standard input>:254: warning [p 3, 9.8i]: cannot adjust line
2025/03/25 16:06:53 WARN troff:<standard input>:269: warning [p 4, 0.3i]: cannot adjust line
2025/03/25 16:06:53 WARN troff:<standard input>:270: warning [p 4, 0.5i]: cannot adjust line
2025/03/25 16:06:53 WARN troff:<standard input>:287: warning [p 4, 2.8i]: cannot adjust line
2025/03/25 16:06:53 WARN troff:<standard input>:299: warning [p 4, 4.3i]: cannot adjust line
2025/03/25 16:06:53 WARN troff:<standard input>:300: warning [p 4, 4.5i]: cannot adjust line
2025/03/25 16:06:53 WARN troff:<standard input>:317: warning [p 4, 6.3i]: cannot adjust line
2025/03/25 16:06:53 WARN troff:<standard input>:318: warning [p 4, 6.8i]: cannot adjust line
2025/03/25 16:06:53 WARN troff:<standard input>:325: warning [p 4, 7.7i]: cannot adjust line
2025/03/25 16:06:53 WARN troff:<standard input>:326: warning [p 4, 8.0i]: cannot adjust line
2025/03/25 16:06:53 WARN troff:<standard input>:328: warning [p 4, 8.3i]: cannot adjust line
2025/03/25 16:06:53 WARN + doc_files=true
2025/03/25 16:06:53 WARN + '[' -f /usr/share/man/db/api_reference/C/BDB-C_APIReference.pdf ]
2025/03/25 16:06:53 WARN + man -l /usr/share/man/db/api_reference/C/BDB-C_APIReference.pdf
2025/03/25 16:06:53 WARN man: iconv_open ("UTF-8//IGNORE", "ISO-8859-1"): Invalid argument
2025/03/25 16:06:53 WARN grotty:<standard input>:(<standard input>):7: fatal error: 'V' command invalid before first 'p' command
2025/03/25 16:06:53 WARN man: command exited with status 1: /usr/libexec/man-db/zsoelim | /usr/libexec/man-db/manconv -f UTF-8:ISO-8859-1 -t UTF-8//IGNORE | preconv -e UTF-8 | tbl | nroff -mandoc -rLL=79n -rLT=79n -Tascii
2025/03/25 16:06:53 ERRO ERROR: failed to test package. the test environment has been preserved:
2025/03/25 16:06:53 ERRO failed to test package: unable to run pipeline: unable to run pipeline: unable to run pipeline: exit status 3
make: *** [Makefile:120: test/db] Error 1

$ melange version
  __  __   _____   _          _      _   _    ____   _____
 |  \/  | | ____| | |        / \    | \ | |  / ___| | ____|
 | |\/| | |  _|   | |       / _ \   |  \| | | |  _  |  _|
 | |  | | | |___  | |___   / ___ \  | |\  | | |_| | | |___
 |_|  |_| |_____| |_____| /_/   \_\ |_| \_|  \____| |_____|
melange

GitVersion:    v0.23.1
GitCommit:     unknown
GitTreeState:  unknown
BuildDate:     unknown
GoVersion:     go1.23.7
Compiler:      gc
Platform:      linux/amd64
@smoser smoser added the service:ftbfs Failed to Build From Source label Mar 25, 2025
@smoser smoser added fails-testing and removed service:ftbfs Failed to Build From Source labels Apr 2, 2025
@sergiodj sergiodj self-assigned this May 9, 2025
sergiodj added a commit to sergiodj/os that referenced this issue May 9, 2025
The db-doc package happens to install quite a number of non-manpage
files under /usr/share/man.  This confuses the test/docs pipeline
because it tries to render these files as manpages, and "man"
obviously doesn't like it.

We can be a bit more strict when looking for installed manpages by
focusing our attention to anything installed under
"/usr/share/man/man*", which are the default directories to install
manpages anyway.

Closes: wolfi-dev#48194

Signed-off-by: Sergio Durigan Junior <sergiodj@chainguard.dev>
sergiodj added a commit to sergiodj/os that referenced this issue May 10, 2025
The db-doc package happens to install quite a number of non-manpage
files under /usr/share/man.  This confuses the test/docs pipeline
because it tries to render these files as manpages, and "man"
obviously doesn't like it.

We can be a bit more strict when looking for installed manpages by
focusing our attention to anything installed under
"/usr/share/man/man*", which are the default directories to install
manpages anyway.  We can also make sure to only look for files whose
extensions are a single digit, which means that they're actually
manpages.

Closes: wolfi-dev#48194

Signed-off-by: Sergio Durigan Junior <sergiodj@chainguard.dev>
sergiodj added a commit to sergiodj/os that referenced this issue May 10, 2025
The db-doc package happens to install quite a number of non-manpage
files under /usr/share/man.  This confuses the test/docs pipeline
because it tries to render these files as manpages, and "man"
obviously doesn't like it.

We can be a bit more strict when looking for installed manpages by
focusing our attention to anything installed under
"/usr/share/man/man*", which are the default directories to install
manpages anyway.

Closes: wolfi-dev#48194

Signed-off-by: Sergio Durigan Junior <sergiodj@chainguard.dev>
sergiodj added a commit to sergiodj/os that referenced this issue May 12, 2025
The db-doc package happens to install quite a number of non-manpage
files under /usr/share/man.  This confuses the test/docs pipeline
because it tries to render these files as manpages, and "man"
obviously doesn't like it.

This commit filters out these non-manpage files and makes sure that we
don't try to run tests on them.

Closes: wolfi-dev#48194

Signed-off-by: Sergio Durigan Junior <sergiodj@chainguard.dev>
sergiodj added a commit to sergiodj/os that referenced this issue May 20, 2025
The db-doc package happens to install quite a number of non-manpage
files under /usr/share/man.  This confuses the test/docs pipeline
because it tries to render these files as manpages, and "man"
obviously doesn't like it.

This commit filters out these non-manpage files and makes sure that we
don't try to run tests on them.

Closes: wolfi-dev#48194

Signed-off-by: Sergio Durigan Junior <sergiodj@chainguard.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants