]> 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 <phlogistonjohn@asynchrono.us>
Fri, 22 Aug 2025 14:48:37 +0000 (10:48 -0400)
commite0f894e652a4a1744bbd511b47d75f10f3f538a7
tree6daa3201c150aa358ec065cabf279afd91bf394c
parent758644fad28da508bf25063508e052e429f0fa1e
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