<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>10762</bug_id>
          
          <creation_ts>2016-12-03 11:34:40 +0000</creation_ts>
          <short_desc>patchwork: Enable automatic status update when patches are merged for all projects</short_desc>
          <delta_ts>2017-12-06 17:19:18 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Patchwork/Patchtest</product>
          <component>Patchwork</component>
          <version>2.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.3 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jose Lamego">jose.a.lamego</reporter>
          <assigned_to name="Jose Lamego">jose.a.lamego</assigned_to>
          <cc>benjamin.esquivel</cc>
    
    <cc>bluelightning</cc>
    
    <cc>leonardo.sandoval.gonzalez</cc>
    
    <cc>Martin.Jansa</cc>
    
    <cc>mhalstead</cc>
    
    <cc>patrick.ohly</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>68825</commentid>
    <comment_count>0</comment_count>
    <who name="Jose Lamego">jose.a.lamego</who>
    <bug_when>2016-12-03 11:34:40 +0000</bug_when>
    <thetext>Currently only oe-core project automatically updates patches state to Accepted when they&apos;re merged.
This feature should be enabled for all projects in patchwork.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68993</commentid>
    <comment_count>1</comment_count>
    <who name="Jose Lamego">jose.a.lamego</who>
    <bug_when>2016-12-09 17:29:34 +0000</bug_when>
    <thetext>OE&apos;s git repositories are using a git-hook older than the asynchronous one that is used only for the oe-core project. All repositories will be configured to use the same script, since this script seems to be causing the lack of updates for those projects. All of other project configurations have been verified and no difference was found between them. Even manual state updates can be made.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69123</commentid>
    <comment_count>2</comment_count>
    <who name="Jose Lamego">jose.a.lamego</who>
    <bug_when>2016-12-14 15:09:43 +0000</bug_when>
    <thetext>All of the OE&apos;s git repositories were configured to use the asynchronous githook in Dec 13. Waiting for confirmation that the automatic updates are working as expected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69445</commentid>
    <comment_count>3</comment_count>
    <who name="Jose Lamego">jose.a.lamego</who>
    <bug_when>2017-01-03 17:27:18 +0000</bug_when>
    <thetext>Logs show that the githook is working for &quot;oe&quot; and &quot;bitbake&quot; projects as well as &quot;oe-core&quot;. The other projects should also be updated upon future merging.

Please let me know if other behavior is detected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69476</commentid>
    <comment_count>4</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2017-01-04 13:19:32 +0000</bug_when>
    <thetext>Today I was pushing some new changes to master and master-next, everything looked OK (push was much faster probably because of asynchronous hook you mentioned before).

It wasn&apos;t showing any output from the hook, so I assumed everything is OK, but now some people on IRC are reporting missing branches and indeed master and master-next branches are gone:

OE @ ~/meta-openembedded $ git remote prune origin
Pruning origin
URL: git://git.openembedded.org/meta-openembedded
 * [pruned] origin/master
 * [pruned] origin/master-next
 refs/remotes/origin/HEAD has become dangling!

And I cannot just repush them:
OE @ ~/meta-openembedded $ git push origin master
Everything up-to-date
OE @ ~/meta-openembedded $ git push origin master-next
Everything up-to-date

Can you please check what went wrong on the server and if it&apos;s related to the new hook or the recent infra update?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69478</commentid>
    <comment_count>5</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2017-01-04 13:43:05 +0000</bug_when>
    <thetext>interesting the same happened in -contrib repository which probably doesn&apos;t have this hook

The push looked normal:

OE @ ~/meta-openembedded $ git push -f contrib jansa/master
Counting objects: 38, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (38/38), done.
Writing objects: 100% (38/38), 12.83 KiB | 0 bytes/s, done.
Total 38 (delta 22), reused 0 (delta 0)
To git+ssh://git.openembedded.org/meta-openembedded-contrib
   fcb6d27..6cdb9f6  jansa/master -&gt; jansa/master

but the branch is gone now:
http://git.openembedded.org/meta-openembedded-contrib/log/?h=jansa/master</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69482</commentid>
    <comment_count>6</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-01-04 17:27:57 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; Today I was pushing some new changes to master and master-next, everything
&gt; looked OK (push was much faster probably because of asynchronous hook you
&gt; mentioned before).
&gt; 
&gt; It wasn&apos;t showing any output from the hook, so I assumed everything is OK,
&gt; but now some people on IRC are reporting missing branches and indeed master
&gt; and master-next branches are gone:
&gt; 
&gt; OE @ ~/meta-openembedded $ git remote prune origin
&gt; Pruning origin
&gt; URL: git://git.openembedded.org/meta-openembedded
&gt;  * [pruned] origin/master
&gt;  * [pruned] origin/master-next
&gt;  refs/remotes/origin/HEAD has become dangling!
&gt; 
&gt; And I cannot just repush them:
&gt; OE @ ~/meta-openembedded $ git push origin master
&gt; Everything up-to-date
&gt; OE @ ~/meta-openembedded $ git push origin master-next
&gt; Everything up-to-date
&gt; 
&gt; Can you please check what went wrong on the server and if it&apos;s related to
&gt; the new hook or the recent infra update?

I believe this is something not related to the script discussed on this bug entry but either Jose or Michael have more insight.

Martin, I followed your steps and I saw no pruning on my local branches. 

---- snip ----
$ git remote prune origin
$ git remote -v
origin  git://git.openembedded.org/openembedded-core (fetch)
origin  git://git.openembedded.org/openembedded-core (push)
---- snip ----

Any other step that I am missing?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69491</commentid>
    <comment_count>7</comment_count>
    <who name="Jose Lamego">jose.a.lamego</who>
    <bug_when>2017-01-04 19:22:06 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; (In reply to comment #4)
&gt; &gt; Today I was pushing some new changes to master and master-next, everything
&gt; &gt; looked OK (push was much faster probably because of asynchronous hook you
&gt; &gt; mentioned before).
&gt; &gt; 
&gt; &gt; It wasn&apos;t showing any output from the hook, so I assumed everything is OK,
&gt; &gt; but now some people on IRC are reporting missing branches and indeed master
&gt; &gt; and master-next branches are gone:
&gt; &gt; 
&gt; &gt; OE @ ~/meta-openembedded $ git remote prune origin
&gt; &gt; Pruning origin
&gt; &gt; URL: git://git.openembedded.org/meta-openembedded
&gt; &gt;  * [pruned] origin/master
&gt; &gt;  * [pruned] origin/master-next
&gt; &gt;  refs/remotes/origin/HEAD has become dangling!
&gt; &gt; 
&gt; &gt; And I cannot just repush them:
&gt; &gt; OE @ ~/meta-openembedded $ git push origin master
&gt; &gt; Everything up-to-date
&gt; &gt; OE @ ~/meta-openembedded $ git push origin master-next
&gt; &gt; Everything up-to-date
&gt; &gt; 
&gt; &gt; Can you please check what went wrong on the server and if it&apos;s related to
&gt; &gt; the new hook or the recent infra update?
&gt; 
&gt; I believe this is something not related to the script discussed on this bug
&gt; entry but either Jose or Michael have more insight.
&gt; 
&gt; Martin, I followed your steps and I saw no pruning on my local branches. 
&gt; 
&gt; ---- snip ----
&gt; $ git remote prune origin
&gt; $ git remote -v
&gt; origin  git://git.openembedded.org/openembedded-core (fetch)
&gt; origin  git://git.openembedded.org/openembedded-core (push)
&gt; ---- snip ----
&gt; 
&gt; Any other step that I am missing?

I believe it is very unlike for the githook to mess with branches, however, I&apos;ll ask Michael to take a look at the server and see what he can find.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69492</commentid>
    <comment_count>8</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2017-01-04 19:37:03 +0000</bug_when>
    <thetext>&gt; Any other step that I am missing?

different project, try it in meta-openembedded(-contrib)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69517</commentid>
    <comment_count>9</comment_count>
    <who name="Michael Halstead">mhalstead</who>
    <bug_when>2017-01-05 15:11:04 +0000</bug_when>
    <thetext>This hook is not causing the problem with unavailable branches. It is a umask problem with gitolite and the git daemon.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69531</commentid>
    <comment_count>10</comment_count>
    <who name="Jose Lamego">jose.a.lamego</who>
    <bug_when>2017-01-05 16:24:56 +0000</bug_when>
    <thetext>I&apos;m closing this bug since the branches issue is not related. Let me know if I should file a new bug to track that.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>