]> 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)
committerJohn Mulligan <jmulligan@redhat.com>
Thu, 21 Aug 2025 20:58:43 +0000 (16:58 -0400)
commit350ceedb10e68c8cebaa22871d0501072cbb3e6b
treed4ee0c91b028c091d3d0b4e059eda2b0279b6d25
parentc0380c14f535223e1726a59a7cd7ec7727f8d086
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)
src/script/build-with-container.py