<?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>10510</bug_id>
          
          <creation_ts>2016-10-27 19:10:17 +0000</creation_ts>
          <short_desc>devtool: add ability to export / import work in progress</short_desc>
          <delta_ts>2017-08-23 16:33:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>Scripts and Tools</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>Medium+</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.4 M3</target_milestone>
          
          <blocked>11737</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</assigned_to>
          <cc>leonardo.sandoval.gonzalez</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>67661</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2016-10-27 19:10:17 +0000</bug_when>
    <thetext>Enable basic collaboration by allowing the user to export one, several or all recipes from their workspace to a single file (tarball?) so that they can be imported by someone else also using devtool. Sources should be included in the tarball if they are in the workspace, at least by default.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70129</commentid>
    <comment_count>1</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-01-25 16:47:15 +0000</bug_when>
    <thetext>M2 missed. Targeting for  current milestone.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70718</commentid>
    <comment_count>2</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-02-15 20:28:11 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; Enable basic collaboration by allowing the user to export one, several or
&gt; all recipes from their workspace to a single file (tarball?) so that they
&gt; can be imported by someone else also using devtool. Sources should be
&gt; included in the tarball if they are in the workspace, at least by default.

Paul,

for the export: I believe the easiest is to find those files related to a specific recipe or recipes and create a tar based on this

for the import: based on the above tar file, just untar it skipping those that workspace files that can be overwrite

If this is what you want, I believe devtool export/import plugins would act as a simple tar wrappers. I wait for your comments before proceeding.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71331</commentid>
    <comment_count>3</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-03-16 03:25:01 +0000</bug_when>
    <thetext>Yes, that&apos;s part of it - we also need to ensure that the relevant entries in the .devtool_md5 get exported and imported as well.

It also occurs to me that it&apos;s possible that user A does an export of a recipe and then user B tries to import that on their system with incompatible metadata - i.e. where the version is different or the recipe is not even available. If we&apos;re importing a bbappend, we should check that the bbappend is still applicable (i.e. that a matching recipe exists in the user&apos;s configuration) and error out if that&apos;s not the case.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73520</commentid>
    <comment_count>4</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-05-25 21:36:49 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; Yes, that&apos;s part of it - we also need to ensure that the relevant entries in
&gt; the .devtool_md5 get exported and imported as well.
&gt; 
&gt; It also occurs to me that it&apos;s possible that user A does an export of a
&gt; recipe and then user B tries to import that on their system with
&gt; incompatible metadata - i.e. where the version is different or the recipe is
&gt; not even available. If we&apos;re importing a bbappend, we should check that the
&gt; bbappend is still applicable (i.e. that a matching recipe exists in the
&gt; user&apos;s configuration) and error out if that&apos;s not the case.

Paul,
I realized that this work deserves a separate bug (devtool import being a bit more smart). I will file bug once the following series have been reviewed so direction is clear:

http://lists.openembedded.org/pipermail/openembedded-core/2017-May/137140.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73986</commentid>
    <comment_count>5</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-06-12 15:17:15 +0000</bug_when>
    <thetext>Several comments from Paul, requiring a full revision of  proposed pluings, so moving it to the next milestone.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74654</commentid>
    <comment_count>6</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-06-29 16:53:23 +0000</bug_when>
    <thetext>New series revision sent to review (this is the v4):

http://lists.openembedded.org/pipermail/openembedded-core/2017-June/138887.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75132</commentid>
    <comment_count>7</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-07-19 14:53:59 +0000</bug_when>
    <thetext>Patches are in the ML, just did not arrive to master yet. Moving to M3.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76086</commentid>
    <comment_count>8</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-08-23 16:33:48 +0000</bug_when>
    <thetext>With some changes from Paul on the proposed patches, finally landed to master.


2de8ba89ef: Leonardo Sandoval: Mon Aug 21 08:30:32 2017 +0100: devtool: import: new plugin to import the devtool workspace

f9bc3b5101: Leonardo Sandoval: Mon Aug 21 08:30:32 2017 +0100: devtool: export: new plugin to export the devtool workspace</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>