[Starlingx-discuss] [Build] Audit git tag versus rpm version

Scott Little scott.little at windriver.com
Fri Mar 8 21:28:25 UTC 2019


I've issued a review, https://review.openstack.org/642158, to correct 
the rpm packaging versions.

However it may be seen as abusing the existing TIS_BASE_SRCREV 
mechanism, as it result in packages looking like this ...

python-cinderclient-4.1.0-1.tis.33.src.rpm

This may seem to imply that tis has authored 33 patches upon 
python-cinderclient.  We are indeed 33 patches beyond tag 4.1.0 (as of 
this writing), but it is upstream revisions and not stx (tis) revisions 
that are being counted.

We may want further build tool work to implement a second revision 
counting mechanism to separate upstream revisions from stx revisions.





On 2019-03-08 2:33 p.m., Scott Little wrote:
> My first crack at an audit comparing most recent tag versus rpm version
>
> cd $MY_REPO/..
> for d in $(grep '<project ' .repo/manifests/default.xml | \
>            grep -v 'refs[/]tags[/]' | \
>            grep -v starlingx | \
>            grep -v stx-staging | \
>            sed 's#^.*path="\([^"]*\)".*$#\1#'
>           ); do
>     b=$(basename $d)
>     t=$(cd $d
>         git describe | cut -d '-' -f 1
>        )
>
>     p=$(grep '\(["/]'"$b"'"$\|[=/]'"$b"'$\)' $(find . -name 
> build_srpm.data) | \
>         grep ':SRC_DIR=' | \
>         cut -d ':' -f 1
>        )
>     s=$(find $(dirname $p) -name '*spec')
>     v=$(grep '^Version:' $s | cut -d ':' -f 2 | sed 's/[ \t]//g')
>     if [ "$v" != "$t" ]; then
>         echo name=$b
>         echo dir=$d
>         echo spec=$s
>         echo tag=$t
>         echo version=$v
>         echo
>     fi
> done
>
>
> name=python-barbicanclient
> dir=cgcs-root/stx/git/python-barbicanclient
> spec=./cgcs-root/stx/stx-upstream/openstack/python-barbicanclient/centos/python-barbicanclient.spec 
>
> tag=4.8.1
> version=4.7.1
>
> name=python-cinderclient
> dir=cgcs-root/stx/git/python-cinderclient
> spec=./cgcs-root/stx/stx-upstream/openstack/python-cinderclient/centos/python-cinderclient.spec 
>
> tag=4.1.0
> version=4.0.1
>
> name=python-glanceclient
> dir=cgcs-root/stx/git/python-glanceclient
> spec=./cgcs-root/stx/stx-upstream/openstack/python-glanceclient/centos/python-glanceclient.spec 
>
> tag=2.16.0
> version=2.13.1
>
> name=python-heatclient
> dir=cgcs-root/stx/git/python-heatclient
> spec=./cgcs-root/stx/stx-upstream/openstack/python-heatclient/centos/python-heatclient.spec 
>
> tag=1.17.0
> version=1.16.1
>
> name=python-ironicclient
> dir=cgcs-root/stx/git/python-ironicclient
> spec=./cgcs-root/stx/stx-upstream/openstack/python-ironicclient/centos/python-ironicclient.spec 
>
> tag=2.7.0
> version=2.5.0
>
> name=python-keystoneclient
> dir=cgcs-root/stx/git/python-keystoneclient
> spec=./cgcs-root/stx/stx-upstream/openstack/python-keystoneclient/centos/python-keystoneclient.spec 
>
> tag=3.19.0
> version=3.17.0
>
> name=python-magnumclient
> dir=cgcs-root/stx/git/python-magnumclient
> spec=./cgcs-root/stx/stx-upstream/openstack/python-magnumclient/centos/python-magnumclient.spec 
>
> tag=2.12.0
> version=2.10.0
>
> name=python-neutronclient
> dir=cgcs-root/stx/git/python-neutronclient
> spec=./cgcs-root/stx/stx-upstream/openstack/python-neutronclient/centos/python-neutronclient.spec 
>
> tag=6.12.0
> version=6.9.1
>
> name=python-novaclient
> dir=cgcs-root/stx/git/python-novaclient
> spec=./cgcs-root/stx/stx-upstream/openstack/python-novaclient/centos/python-novaclient.spec 
>
> tag=13.0.0
> version=11.0.0
>
> name=python-openstackclient
> dir=cgcs-root/stx/git/python-openstackclient
> spec=./cgcs-root/stx/stx-upstream/openstack/python-openstackclient/centos/python-openstackclient.spec 
>
> tag=3.18.0
> version=3.16.2
>
> name=python-openstacksdk
> dir=cgcs-root/stx/git/python-openstacksdk
> spec=./cgcs-root/stx/stx-upstream/openstack/python-openstacksdk/centos/python-openstacksdk.spec 
>
> tag=0.25.0
> version=0.17.2
>
>
> _______________________________________________
> Starlingx-discuss mailing list
> Starlingx-discuss at lists.starlingx.io
> http://lists.starlingx.io/cgi-bin/mailman/listinfo/starlingx-discuss





More information about the Starlingx-discuss mailing list