[OE-core] Patchwork git hooks for meta-oe repository

Jose Lamego jose.a.lamego at linux.intel.com
Wed Jun 14 18:55:45 UTC 2017



On 06/14/2017 07:57 AM, Martin Jansa wrote:
> I don't know if they are supposed to work now, but the output from git
> remote indicates that they probably don't work:
> 
Yes, we found this issue when enabling the hook for automated updates
for all the Patchwork projects.
I've disabled the hook while finding a fix. Thanks for the heads up and
sorry for any inconvenience.

Jose Lamego
> remote: /usr/local/patchwork/tools/post-receive_standalone.hook: line
> 65: $4: unbound variable
> 
> remote: ++ git -C Next rev-parse
> remote: ++ git -C Next rev-list --stdin --no-merges --reverse
> cd021470e9055422992a1adeae3f1f1ec59deab6..3e6defe4735b9a0
> c5757bd25eea6158c7e9d567f   
> remote: fatal: Cannot change to 'Next': No such file or directory
> remote: fatal: Cannot change to 'Next': No such file or directory
> 
> 
> Whole output from 2 pushes today:
> 
> OE @~/meta-openembedded $git push origin master
> Counting objects: 170, done.
> Delta compression using up to 8 threads.
> Compressing objects: 100% (161/161), done.
> Writing objects: 100% (170/170), 34.85 KiB | 0 bytes/s, done.
> Total 170 (delta 89), reused 1 (delta 0)
> remote: +
> STATE_MAP='refs/heads/master:Accepted;refs/heads/master-next:Master
> Next;refs/heads/ross/mut:Master U
> nder Test'
> remote: + EXCLUDE=
> remote: + PWDIR=/usr/local/patchwork/patchwork
> remote: + '[' -d /usr/local/patchwork/patchwork ']'
> remote: + '[' '!' -w /usr/local/patchwork/patchwork/post-receive_logs ']'
> remote: + do_exit=0
> remote: + trap do_exit=1 INT
> remote: +
> ERR_LOG_FILE=/usr/local/patchwork/patchwork/post-receive_logs/post_receive_standalone.log
> 
> remote: + '[' '!' -f
> /usr/local/patchwork/patchwork/post-receive_logs/post_receive_standalone.log
> ']'
> remote: + read oldrev newrev refname workdir
> remote: + found=0
> remote: + IFS=';'
> remote: + for i in '$STATE_MAP'
> remote: + key=refs/heads/master
> remote: + IFS=' '
> remote: + '[' refs/heads/master = refs/heads/master ']'
> remote: ++ date
> remote: + echo -e 'Wed Jun 14 12:51:55 UTC 2017 I: Started patch-update
> attempt using commit d3dd8bc3721f3958eb7ddeb026
> f7221d48daa986.\n'
> remote: + update_patches 0abf5af3ffd3d13c009a8ffcd5a6f045c36be837
> d3dd8bc3721f3958eb7ddeb026f7221d48daa986 Accepted
> remote: + local cnt
> remote: + cnt=0
> remote: + local workdir
> remote: /usr/local/patchwork/tools/post-receive_standalone.hook: line
> 65: $4: unbound variable
> remote: Sending notification emails to:
> openembedded-commits at lists.openembedded.org
> <mailto:openembedded-commits at lists.openembedded.org>
> To git.openembedded.org:meta-openembedded
>   0abf5af3f..d3dd8bc37  master -> master
> 
> OE @~/meta-openembedded $git push -f origin master-next
> Counting objects: 183, done.
> Delta compression using up to 8 threads.
> Compressing objects: 100% (144/144), done.
> Writing objects: 100% (183/183), 60.26 KiB | 0 bytes/s, done.
> Total 183 (delta 89), reused 85 (delta 31)
> remote: +
> STATE_MAP='refs/heads/master:Accepted;refs/heads/master-next:Master
> Next;refs/heads/ross/mut:Master Under Tes
> t'
> remote: + EXCLUDE=
> remote: + PWDIR=/usr/local/patchwork/patchwork
> remote: + '[' -d /usr/local/patchwork/patchwork ']'
> remote: + '[' '!' -w /usr/local/patchwork/patchwork/post-receive_logs ']'
> remote: + do_exit=0
> remote: + trap do_exit=1 INT
> remote: +
> ERR_LOG_FILE=/usr/local/patchwork/patchwork/post-receive_logs/post_receive_standalone.log
> 
> remote: + '[' '!' -f
> /usr/local/patchwork/patchwork/post-receive_logs/post_receive_standalone.log
> ']'
> remote: + read oldrev newrev refname workdir
> remote: + found=0
> remote: + IFS=';'
> remote: + for i in '$STATE_MAP'
> remote: + key=refs/heads/master
> remote: + IFS=' '
> remote: + '[' refs/heads/master = refs/heads/master-next ']'
> remote: + for i in '$STATE_MAP'
> remote: + key=refs/heads/master-next
> remote: + IFS=' '
> remote: + '[' refs/heads/master-next = refs/heads/master-next ']'
> remote: ++ date
> remote: + echo -e 'Wed Jun 14 12:52:04 UTC 2017 I: Started patch-update
> attempt using commit 3e6defe4735b9a0c5757bd25ee
> a6158c7e9d567f.\n'
> remote: + update_patches cd021470e9055422992a1adeae3f1f1ec59deab6
> 3e6defe4735b9a0c5757bd25eea6158c7e9d567f Master Next
> remote: + local cnt
> remote: + cnt=0
> remote: + local workdir
> remote: + workdir=Next
> remote: + local revparse    
> remote: + local revs
> remote: + '[' -z '' ']'
> remote: + revparse=rev-parse
> remote: ++ git -C Next rev-parse
> remote: ++ git -C Next rev-list --stdin --no-merges --reverse
> cd021470e9055422992a1adeae3f1f1ec59deab6..3e6defe4735b9a0
> c5757bd25eea6158c7e9d567f   
> remote: fatal: Cannot change to 'Next': No such file or directory
> remote: fatal: Cannot change to 'Next': No such file or directory
> remote: + revs=
> remote: Sending notification emails to:
> openembedded-commits at lists.openembedded.org
> <mailto:openembedded-commits at lists.openembedded.org>
> To git.openembedded.org:meta-openembedded
> + cd021470e...3e6defe47 master-next -> master-next (forced update)
> 
> 

-- 
Jose Lamego | OTC Embedded Platforms & Tools | GDC

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20170614/3638ff52/attachment-0002.sig>


More information about the Openembedded-core mailing list