]> git-server-git.apps.pok.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)
committerJohn Mulligan <jmulligan@redhat.com>
Wed, 20 Aug 2025 15:23:46 +0000 (11:23 -0400)
commit916088a4e7380cd7ac1403fb4416ef91ab07aa52
tree4e96c5f92f9baf26f4b35d2a9caa55ebd6c9ed26
parent544d8ab5eb81fc5b8b950c2c1c116fad6b1a40c4
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>
src/script/build-with-container.py