[dpdk-test-report] |WARNING| pw94272 [PATCH] [v1, 2/2] devtools: auto detect branch to search fix patches

dpdklab at iol.unh.edu dpdklab at iol.unh.edu
Wed Jun 16 06:58:18 CEST 2021


Test-Label: iol-testing
Test-Status: WARNING
http://dpdk.org/patch/94272

_apply patch failure_

Submitter: Xueming Li <xuemingl at nvidia.com>
Date: Wednesday, June 16 2021 04:03:22 
Applied on: CommitID:2ca92f54410400af76a1f0bc3bfecc8077e282aa
Apply patch set 94272 failed:

Checking patch devtools/check-git-log.sh...
Checking patch devtools/git-log-fixes.sh...
error: while searching for:
done
shift $(($OPTIND - 1))
[ $# -ge 1 ] || usage_error 'range argument required'
range="$*"

# get major release version of a commit
commit_version () # <hash>
{
	local VER="v*.*"
	# use current branch as history reference
	local refbranch=$(git rev-parse --abbrev-ref HEAD)
	local tag=$( (git tag -l $VER --contains $1 --sort=creatordate --merged $refbranch 2>&- ||
		# tag --merged option has been introduced in git 2.7.0
		# below is a fallback in case of old git version

error: patch failed: devtools/git-log-fixes.sh:33
Hunk #4 succeeded at 49 (offset -10 lines).
Applied patch devtools/check-git-log.sh cleanly.
Applying patch devtools/git-log-fixes.sh with 1 reject...
Hunk #1 applied cleanly.
Hunk #2 applied cleanly.
Rejected hunk #3.
Hunk #4 applied cleanly.
diff a/devtools/git-log-fixes.sh b/devtools/git-log-fixes.sh	(rejected hunks)
@@ -33,14 +34,23 @@ while getopts h ARG ; do
 done
 shift $(($OPTIND - 1))
 [ $# -ge 1 ] || usage_error 'range argument required'
-range="$*"
+range="$1"
+branch="$2"
+
+if [ -z "$branch" ] ; then
+	# last commit in range
+	range_last=$(git log --oneline v21.05-rc3..v21.05 |head -n1|cut -d' ' -f1)
+	# use first branch contains the commit
+	refbranch=$(git branch --contains $range_last -r --sort=-authordate |head -n1)
+else
+	refbranch=$(git rev-parse --abbrev-ref $branch)
+fi
 
 # get major release version of a commit
 commit_version () # <hash>
 {
 	local VER="v*.*"
 	# use current branch as history reference
-	local refbranch=$(git rev-parse --abbrev-ref HEAD)
 	local tag=$( (git tag -l $VER --contains $1 --sort=creatordate --merged $refbranch 2>&- ||
 		# tag --merged option has been introduced in git 2.7.0
 		# below is a fallback in case of old git version

https://lab.dpdk.org/results/dashboard/patchsets/17401/

UNH-IOL DPDK Community Lab


More information about the test-report mailing list