<?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>10319</bug_id>
          
          <creation_ts>2016-09-22 08:13:13 +0000</creation_ts>
          <short_desc>cp failures during PublishArtifacts should cause the step to fail</short_desc>
          <delta_ts>2016-09-28 15:01:50 +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>2.2</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>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joshua Lock">joshuagloe</reporter>
          <assigned_to name="Mariano Lopez">mariano.lopez</assigned_to>
          <cc>anibal.limon</cc>
    
    <cc>infras.ab.watcher</cc>
    
    <cc>Infras.watcher</cc>
    
    <cc>leonardo.sandoval.gonzalez</cc>
    
    <cc>mariano.lopez</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>66464</commentid>
    <comment_count>0</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-09-22 08:13:13 +0000</bug_when>
    <thetext>We&apos;ve observed logs like:

cp: cannot stat ‘/home/pokybuild/yocto-autobuilder/yocto-worker/buildtools/build/build/tmp/deploy/sdk/*buildtools*’: No such file or directory
cp: cannot stat ‘/home/pokybuild/yocto-autobuilder/yocto-worker/buildtools/build/build/tmp/deploy/sdk/x86_64-nativesdk-libc*’: No such file or directory
MD5sums are generated and deployed from the image or toolchain artifact

on the autobuilder where the cp call fails (do to the file not being present) but the buildstep completes successfully.

The buildstep should fail when an artefact isn&apos;t published, as this indicates that a build is incomplete and may hint at a deeper issue which is otherwise masked if the buildstep reports success.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66502</commentid>
    <comment_count>1</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2016-09-22 15:59:57 +0000</bug_when>
    <thetext>It seems the problem is within PublishArtifacts.py, and it seems it will be very difficult to change the way it runs the command in the worker, because it will iterate over the artifacts and will build a huge command and execute it with just one call in the worker.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66583</commentid>
    <comment_count>2</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2016-09-26 15:30:58 +0000</bug_when>
    <thetext>I added a pipeline in the cp commands of PublishArtifacts.py, with these it will set an env var that later will be checked to mark the exit as successful of failed. I tested locally and it works fine, I&apos;ll test in GDC autobuilders before submitting the patch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66629</commentid>
    <comment_count>3</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2016-09-27 14:35:02 +0000</bug_when>
    <thetext>The test on the GDC autobuilders was successful. Sent patch to the mailing list:

https://lists.yoctoproject.org/pipermail/yocto/2016-September/032183.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>66683</commentid>
    <comment_count>4</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-09-28 15:01:50 +0000</bug_when>
    <thetext>This change has been merged to the yocto-autobuilder and deployed to the build cluster.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>