From f89375f2c6778faf12d37a08aedff905987a6ec4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Po=C5=82awski?= Date: Thu, 10 Oct 2024 13:13:37 +0200 Subject: [PATCH] infra: Add rpmlint test to upstram CI 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. --- Makefile.am | 3 ++- dockerfile/anaconda-rpm/Dockerfile | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile.am b/Makefile.am index ffca2296424..1bbe00fcc9a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -333,7 +333,8 @@ container-rpm-test: $(RPM_NAME):$(CI_TAG) \ sh -exc ' \ /run-build-and-arg make run-rpm-tests-only; \ - dnf install -y /tmp/anaconda/result/build/01-rpm-build/*.rpm' + dnf install -y /tmp/anaconda/result/build/01-rpm-build/*.rpm; \ + cd /tmp/anaconda; rpmlint *.spec.in result/build/01-rpm-build/*.rpm' container-rpms: @./scripts/testing/check-container-age.sh "$(RPM_NAME):$(CI_TAG)" diff --git a/dockerfile/anaconda-rpm/Dockerfile b/dockerfile/anaconda-rpm/Dockerfile index edbe82efd1a..3087c212ab6 100644 --- a/dockerfile/anaconda-rpm/Dockerfile +++ b/dockerfile/anaconda-rpm/Dockerfile @@ -38,7 +38,8 @@ RUN set -ex; \ python3-pocketlint \ /usr/bin/xargs \ rsync \ - rpm-build; \ + rpm-build \ + rpmlint; \ if ! grep -q VARIANT.*eln /etc/os-release; then \ BRANCH="${git_branch}"; \ if [ $BRANCH == "master" ]; then \