When Zuul is being run on a PR, rpm-linter test fails every time with errors that, in my opinion, have nothing to do with the PR or the package. I've had these errors lately:
bash -c "type repoquery" non-zero return code bash: line 1: type: repoquery: not found
ls *.rpmlintrc non-zero return code ls: cannot access '*.rpmlintrc': No such file or directory
AND
rpmlint ./*.spec ./*.rpm non-zero return code /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) /bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8) (none): E: fatal error while reading frr-debuginfo-8.5.1-1.fc36.x86_64.rpm: 'utf-8' codec can't decode byte 0x82 in position 447: invalid start byte
Well the last one with the utf-8 is package related but I don't see how I can do anything about this specific byte in a binary rpm package. Example Zuul build can be found here: https://fedora.softwarefactory-project.io/zuul/build/6e3e80df36004d3897685ba3ccd22b72
Metadata Update from @fbo: - Issue tagged with: Zuul CI
It has been a month, any update here?
Hi Michal,
Sorry for the late reply on this issue. The rpm-linter job does not fail on those task(s), Ansible tasks return a failure but the failure is ignored (however that's true it looks like a failure in logs / or zuul console https://fedora.softwarefactory-project.io/zuul/build/4cfec29291294f8fbc60c1561c6fd993/console)
Tasks are there:
I could try to improve those tasks to avoid the ignored failures.
For the last one 'locale related' I've looked at the last rpm-linter runs (https://fedora.softwarefactory-project.io/zuul/builds?job_name=rpm-linter&skip=0) but I don't see something similar.
Are you able to reproduce locally ?
See this change that have been merged already https://pagure.io/zuul-distro-jobs/pull-request/142 On that run https://fedora.softwarefactory-project.io/zuul/build/038228d925df4d21a2cdb33f4578cbb0/console it no longer show the "failures"
@mruprich can you pls recheck?
Hi, seems like this is fixed. Just did a PR for wireshark and rpm linter only shows relevant packaging errors and warnings: https://fedora.softwarefactory-project.io/zuul/build/eb77af4a962e41859fc97d11c16ee945
Metadata Update from @mvadkert: - Issue status updated to: Closed (was: Open)
Closed per previous comment
Hi @fbo I am sorry to bother you with this again but I've just seen the utf-8 error described above again and I am really clueless what I could do about that - https://fedora.softwarefactory-project.io/zuul/build/754b1dfef0dc4f9faa94b8cd93c5ee09
This is a different package but when I run rpmlint locally I don't see any problem with utf-8. Is this perhaps some sort of an error that comes from the environment where rpmlint runs?
Hi @mruprich yes no problem for sure there is an issue somewhere. The job is using this container image https://quay.io/repository/software-factory/zuul-worker-f36?tab=tags
It seems this package glibc-langpack-en is missing, so i'm proposing that patch then I'll manage to get it merged https://softwarefactory-project.io/r/c/containers/+/28752
Alright, thanks!