-
Notifications
You must be signed in to change notification settings - Fork 355
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
infra: tests: add rpmlint to existing rpm tests #5929
Conversation
e822c0c
to
f89375f
Compare
Infrastructure check failed on these files. Please do a double check of these files before merge! Makefile.am |
f89375f
to
9b7188e
Compare
Infrastructure check failed on these files. Please do a double check of these files before merge! Makefile.am |
9b7188e
to
fe2d34b
Compare
Infrastructure check failed on these files. Please do a double check of these files before merge! Makefile.am |
@KKoukiou I have update this PR so when |
I really like this idea. |
This will not fail after PRs introducing config file will be merged. |
Makefile.am
Outdated
dnf install -y /tmp/anaconda/result/build/01-rpm-build/*.rpm; \ | ||
cd /tmp/anaconda; \ | ||
if [ -f rpmlint.toml ]; then LINT_ARG="--config rpmlint.toml"; else LINT_ARG=""; fi; \ | ||
rpmlint *.spec.in result/build/01-rpm-build/*.rpm ${LINT_ARG}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the better would solution would be to have this as script in the container. Let's try to avoid overloading of this command to avoid installation of the package to the host system because of issue in bash.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You mean to have a separated script with the content rpmlint .....
an just call it from here? To be honest the part with if [ -f rpmlint.toml ]
can be skipped as I assume the file will be always presented.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have updated the code so it just calls rpmlint with the config file and path we use for RPM storage.
fe2d34b
to
5e3ffbc
Compare
Infrastructure check failed on these files. Please do a double check of these files before merge! Makefile.am |
/kickstart-test --testtype smoke |
I wonder, do we need to install Anaconda packages? You are already giving RPMs and spec to the linter. Isn't that enough? |
I think it is happening because I have appended existing |
5e3ffbc
to
04a27f5
Compare
rpmlint is used in Fedora dist git in the release process. Having it included in the upstream CI will enable early detection of the potential linter issues in spec / rpms.
04a27f5
to
0c1cb00
Compare
Infrastructure check failed on these files. Please do a double check of these files before merge! Makefile.am |
/kickstart-tests --waive infra only |
rpmlint is used in Fedora dist git in the release process. Having it included in the upstream CI will allow us early detection of the potential linter issues in spec / rpms.