<?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>10926</bug_id>
          
          <creation_ts>2017-01-14 00:20:52 +0000</creation_ts>
          <short_desc>Buildhistory fails to write to repo on new cluster</short_desc>
          <delta_ts>2017-07-19 21:55:46 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>5</classification_id>
          <classification>Infrastructure</classification>
          <product>AutoBuilder</product>
          <component>autobuilder</component>
          <version>unspecified</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>normal</bug_severity>
          <target_milestone>2.4 M2</target_milestone>
          
          <blocked>11814</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Stephano Cetola">stephano</reporter>
          <assigned_to name="Stephano Cetola">stephano</assigned_to>
          <cc>infras.ab.watcher</cc>
    
    <cc>Infras.watcher</cc>
    
    <cc>joshuagloe</cc>
    
    <cc>leonardo.sandoval.gonzalez</cc>
    
    <cc>pidge</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>69813</commentid>
    <comment_count>0</comment_count>
    <who name="Stephano Cetola">stephano</who>
    <bug_when>2017-01-14 00:20:52 +0000</bug_when>
    <thetext>While the builds all look like they are succeeding, and the buildhistory logs appear to be written, the following error is being displayed at the end of each build:

NOTE: Writing buildhistory
fatal: &apos;//home/pokybuild/buildhistory&apos; does not appear to be a git repository
fatal: Could not read from remote repository.

e.g.
https://autobuilder.yocto.io/builders/nightly-x86-lsb/builds/136/steps/BuildImages/logs/stdio</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69823</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2017-01-16 12:50:54 +0000</bug_when>
    <thetext>I believe there are two issues here:

1) there&apos;s a configuration issue in that the autobuilder configuration points to a non-existent repository as the buildhistory remote
2) when the buildhistory push fails the buildstep isn&apos;t marked as failed</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72452</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2017-04-13 10:56:53 +0000</bug_when>
    <thetext>*** Bug 11334 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>72475</commentid>
    <comment_count>3</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2017-04-13 15:22:43 +0000</bug_when>
    <thetext>Too late to patch AB for 2.3 at this point, let&apos;s punt to 2.4 M1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74943</commentid>
    <comment_count>4</comment_count>
    <who name="Stephano Cetola">stephano</who>
    <bug_when>2017-07-11 22:44:18 +0000</bug_when>
    <thetext>I changed the configs on all the slaves and for some reason had to restart the controller to get the right variables to populate. I&apos;m not sure what was going on there, but I&apos;ll keep an eye on the CreateAutoConf steps to be sure this is fixed. So far that step has completed on debian-testing just fine with nightly-arm.

The bit that was failing was the git ls-remote:

https://autobuilder.yocto.io/builders/nightly-arm/builds/400/steps/CreateAutoConf/logs/stdio
(git ls-remote --exit-code file:////home/pokybuild/buildhistory)

Note that BUILD_HISTORY_DIR was set correctly there after I updated the config, but was being ignored for some reason. I restarted the controller and it seems to work now:

https://autobuilder.yocto.io/builders/nightly-arm/builds/401/steps/CreateAutoConf/logs/stdio
(git ls-remote --exit-code ssh://git@git.yoctoproject.org/poky-buildhistory)

One thing we have to decide is if we want this to be a hard error in the future. Currently it does not fail because, as mentioned, the git push is buried in an if statement with no error handling around it, so it simply never falls into the &quot;then&quot; clause. See CreateAutoConf.py around line 266.

I&apos;ll leave this as &quot;in progress review&quot; until we have time to discuss how we want to deal with these types of failures.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>