]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
build-with-container: improve source rpm detection
authorJohn Mulligan <jmulligan@redhat.com>
Tue, 19 Aug 2025 23:12:07 +0000 (19:12 -0400)
committerKamoltat Sirivadhna <ksirivad@redhat.com>
Fri, 10 Oct 2025 18:33:43 +0000 (18:33 +0000)
commit157c025da68b5d30bb35f5f728f3e4cf5d220791
tree71aab264fafa8bae1d9e5cfb854126e6f4e8c7be
parent276415681cd603051a2082789aea9d5f906f2f29
build-with-container: improve source rpm detection

Improve source rpm detection by adding a new detection method that
executes and rpm command in a container to get exactly the version of
the source rpm that the ceph.spec file would have generated.  For
backwards compatibility and that I don't entirely trust myself to have
tested this the old methods are still available.

The old `--rpm-no-match-sha` is now an alias for `--srpm-match=any` to
cause it to build any (unique) ceph srpm it finds.
`--srpm-match=versionglob` retains the previous default behavior of
using a glob matching on the git id or ceph version value.  The new
default of `--srpm-match=auto` implements the rpm command based behavior
described above.

All of this is wrapped in a new step `find-rpm` but that's mostly an
implementation detail and for testing.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
(cherry picked from commit 916088a4e7380cd7ac1403fb4416ef91ab07aa52)
(cherry picked from commit 3d490f82719bd8d552c595dc8a40916577b73fb9)
src/script/build-with-container.py