Skip to contentSkip to conversation

misc updates for release scripts

PATCH Superseded Vishal Verma 2 participants 6 messages Jan 6, 2022 libnvdimm: non-volatile memory device

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Vishal Verma

author maintainer
#0 lore raw

cover misc updates for release scripts

A few updates to the release helper scripts that fix fedpkg invocation, move the scripts to the new scripts/ directory, and teach them about cxl and libcxl.

Vishal Verma (3):
scripts: fix contrib/do_abidiff for updated fedpkg
scripts: move 'prepare-release.sh' and 'do_abidiff' into scripts/
scripts: teach release helper scripts about cxl and libcxl

 {contrib => scripts}/do_abidiff         | 5 +++--
 {contrib => scripts}/prepare-release.sh | 5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)
 rename {contrib => scripts}/do_abidiff (97%)
 rename {contrib => scripts}/prepare-release.sh (97%)

base-commit: addc5fd8511b8436d89dcef3dd12131147236b09

Signature · 1 line
2.33.1
author maintainer
#1 lore raw

PATCH 1/3 scripts: fix contrib/do_abidiff for updated fedpkg

A recent fedpkg update wants --name instead of --module-name.

---
 contrib/do_abidiff | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
contrib/do_abidiff +1 -1
index 0bd7a16..e8c3a65 100755
@@ -29,7 +29,7 @@ build_rpm()
 	version="$(./git-version)"
 	release="f$(basename $(readlink -f /etc/mock/default.cfg) | cut -d- -f2)"
 	git archive  --format=tar --prefix="ndctl-${version}/" HEAD | gzip > ndctl-${version}.tar.gz
-	fedpkg --release $release --module-name ndctl mockbuild
+	fedpkg --release $release --name=ndctl mockbuild
 	[ "$?" -eq 0 ] || err "error building $ref"
 	mkdir -p release/rel_${ref}/
 	cp results_ndctl/*/*/*.x86_64.rpm release/rel_${ref}/
Signature · 1 line
2.33.1
Reviewed-by on v1 1/3
#2 lore raw

Re: [ndctl PATCH 1/3] scripts: fix contrib/do_abidiff for updated fedpkg

Quoted 2 lines · Vishal Verma

A recent fedpkg update wants --name instead of --module-name.

Ugh, how annoying.

Quoted 11 lines
---
 contrib/do_abidiff | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
contrib/do_abidiff +0 -0
index 0bd7a16..e8c3a65 100755

contrib/do_abidiff build_rpm() · line 32

Quoted 5 lines
contrib/do_abidiff +1 -1
@@ -29,7 +29,7 @@ build_rpm()
        version="$(./git-version)"
        release="f$(basename $(readlink -f /etc/mock/default.cfg) | cut -d- -f2)"
        git archive  --format=tar --prefix="ndctl-${version}/" HEAD | gzip > ndctl-${version}.tar.gz
-       fedpkg --release $release --module-name ndctl mockbuild
+       fedpkg --release $release --name=ndctl mockbuild

Would it be worthwhile to document the version of the fedpkg that this script targets?

Otherwise, looks good to me.

Quoted 6 lines
contrib/do_abidiff +0 -1
        [ "$?" -eq 0 ] || err "error building $ref"
        mkdir -p release/rel_${ref}/
        cp results_ndctl/*/*/*.x86_64.rpm release/rel_${ref}/
--

2.33.1

author maintainer
#3 lore raw

PATCH 2/3 scripts: move 'prepare-release.sh' and 'do_abidiff' into scripts/

In reply to Vishal Verma

The scripts directory in the ndctl tree is designated as the place for useful developer scripts that don't need to get packaged or distributed. Move the above out of contrib/ which does contain files that get packaged.

---
 {contrib => scripts}/do_abidiff         | 0
 {contrib => scripts}/prepare-release.sh | 2 +-
 2 files changed, 1 insertion(+), 1 deletion(-)
 rename {contrib => scripts}/do_abidiff (100%)
 rename {contrib => scripts}/prepare-release.sh (99%)
scripts/do_abidiff renamed from contrib/do_abidiff +0 -0
similarity index 100%
rename from contrib/do_abidiff
rename to scripts/do_abidiff
scripts/prepare-release.sh renamed from contrib/prepare-release.sh +1 -1
similarity index 99%
rename from contrib/prepare-release.sh
rename to scripts/prepare-release.sh
index fb5cfe3..97ab964 100755
@@ -186,7 +186,7 @@ check_libtool_vers "libdaxctl"
 gen_lists ${last_ref}..HEAD~1
 
 # For ABI diff purposes, use the latest fixes tag
-contrib/do_abidiff ${last_fix}..HEAD
+scripts/do_abidiff ${last_fix}..HEAD
 
 # once everything passes, update the git-version
 sed -i -e "s/DEF_VER=[0-9]\+.*/DEF_VER=${next_ref#v}/" git-version
Signature · 1 line
2.33.1
Reviewed-by on v1 2/3
#4 lore raw

Re: [ndctl PATCH 2/3] scripts: move 'prepare-release.sh' and 'do_abidiff' into scripts/

Quoted 6 lines · Vishal Verma

The scripts directory in the ndctl tree is designated as the place for useful developer scripts that don't need to get packaged or distributed. Move the above out of contrib/ which does contain files that get packaged.

LGTM

author maintainer
#5 lore raw

PATCH 3/3 scripts: teach release helper scripts about cxl and libcxl

In reply to Vishal Verma

The prepare-release.sh and do_abidiff scripts perform sanity checking for library versioning and also guard against accidental ABI breakage by comparing the current release with the previous using 'abipkgdiff' from libabigail. Teach the scripts about libcxl, so that it too can participate in the above checks.

---
 scripts/do_abidiff         | 3 ++-
 scripts/prepare-release.sh | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
scripts/do_abidiff +2 -1
index e8c3a65..ec3e344 100755
@@ -53,7 +53,7 @@ do_diff()
 	local old_lib="$(find . -regex "./release/rel_${old}/${pkg}-libs-[0-9]+.*" | head -1)"
 	local new_lib="$(find . -regex "./release/rel_${new}/${pkg}-libs-[0-9]+.*" | head -1)"
 
-	[ -n "$pkg" ] || err "specify a package for diff (ndctl, daxctl)"
+	[ -n "$pkg" ] || err "specify a package for diff (ndctl, daxctl, cxl)"
 	[ -n "$old_base" ] || err "$pkg: old_base empty, possible build failure"
 	[ -n "$new_base" ] || err "$pkg: new_base empty, possible build failure"
 
@@ -75,3 +75,4 @@ build_rpm $old > release/buildlog_$old 2>&1
 build_rpm $new > release/buildlog_$new 2>&1
 do_diff ndctl
 do_diff daxctl
+do_diff cxl
scripts/prepare-release.sh +2 -1
index 97ab964..8901b50 100755
@@ -100,7 +100,7 @@ gen_lists()
 }
 
 # Check libtool versions in Makefile.am.in
-# $1: lib name (currently libndctl or libdaxctl)
+# $1: lib name (currently libndctl, libdaxctl, or libcxl)
 check_libtool_vers()
 {
 	local lib="$1"
@@ -181,6 +181,7 @@ next_fix=$(next_fix "$last_fix")
 
 check_libtool_vers "libndctl"
 check_libtool_vers "libdaxctl"
+check_libtool_vers "libcxl"
 
 # HEAD~1 because HEAD would be the release commit
 gen_lists ${last_ref}..HEAD~1
Signature · 1 line
2.33.1