<?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>9340</bug_id>
          
          <creation_ts>2016-03-24 14:25:52 +0000</creation_ts>
          <short_desc>Improve tooling around BuildLog and SWAT process</short_desc>
          <delta_ts>2017-12-06 16:52:20 +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.1</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>enhancement</bug_severity>
          <target_milestone>2.2 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joshua Lock">joshuagloe</reporter>
          <assigned_to name="Joshua Lock">joshuagloe</assigned_to>
          <cc>infras.ab.watcher</cc>
    
    <cc>Infras.watcher</cc>
    
    <cc>jose.perez.carranza</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>60387</commentid>
    <comment_count>0</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-03-24 14:25:52 +0000</bug_when>
    <thetext>The BuildLog[1] page on the Yocto Project wiki is very useful for SWAT coordination but adds manual process overheard to update it. 

With the MediWiki Edit API[2] we should be able to automatically create an entry in the BuildLog (most likely only when a checkbox is checked) and then whoever triggered the build can more easily edit the auto created markup on the wiki page to add more detail as required.

1. https://wiki.yoctoproject.org/wiki/BuildLog
2. https://www.mediawiki.org/wiki/API:Edit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60616</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-03-31 16:29:47 +0000</bug_when>
    <thetext>Stepping back a bit and re-framing this issue, we&apos;re trying to improve the SWAT process and automate pain points to make it easier for people who start builds to hand-over to SWAT.

In short, for this item, we need a way to communicate info about a build as the build happens:
- why the build was started / intent of build
- what actions does SWAT need to take
- what errors occurred &amp; what has been done to address them (BZ entries, patches, etc)

This information can&apos;t be automatically generated in full because it needs manually updating as the build progresses and this the BuildLog page will need to support manual markup.

A possible solution is to implement a continually running daemon that monitors the autobuilders JSON API &amp; tracks builds it has seen. This daemon would then add a new header and some skeleton/boilerplate information to the top of the BuildLog wiki page when a new build comes along that it hasn&apos;t seen. 

(Of course, the daemon also needs to accommodate for wiki pages being locked if the markup is being modified).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>60680</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-04-01 16:05:14 +0000</bug_when>
    <thetext>An example of the autobuilder JSON API:

https://autobuilder.yoctoproject.org/main/json/builders/nightly/builds/_all?as_text=1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62005</commentid>
    <comment_count>3</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-05-05 22:07:37 +0000</bug_when>
    <thetext>I have a simple script that will poll the Autobuilder API (currently at 1min intervals) and post a skeletal entry to the BuildLog wiki page when a new build has been fired.

There are doubtless improvements that can be made to both the code and the &quot;design&quot; (such as using the Last-Modified HTTP header, if we can get the Autobuilder JSON API to include that) — but now I&apos;ve worked out how to update the wiki page, I think the next step should be determining how we would want to deploy such a tool.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62018</commentid>
    <comment_count>4</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-05-06 13:42:41 +0000</bug_when>
    <thetext>Beth suggested the following, with regards making the script I have deployable to the autobuilder infrastructure:
* have the script called from the builder startup script, in a similar fashion as the janitor script
* have the script live in the yocto-autobuilder/bin
* read the configuration file live in yocto-autobuilder/etc
* read/write the cache file at yocto-autobuilder/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62049</commentid>
    <comment_count>5</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-05-09 15:14:23 +0000</bug_when>
    <thetext>Patch has been submitted and accepted to yocto-autobuilder, however there are some teething issues with rolling it out on the AB cluster. I will mark this task as resolved when the solution is working on the production AB cluster.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62078</commentid>
    <comment_count>6</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-05-10 21:09:42 +0000</bug_when>
    <thetext>The buildlogger should now be active on the YP Autobuilder</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>