<?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>4606</bug_id>
          
          <creation_ts>2013-06-04 14:51:28 +0000</creation_ts>
          <short_desc>[Test Case 147] Check if AUTOPR could be export/import for package build</short_desc>
          <delta_ts>2013-10-11 11:05:33 +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>BitBake</product>
          <component>bitbake</component>
          <version>1.5</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Stoicescu Cornel">corneliux.stoicescu</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</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>33548</commentid>
    <comment_count>0</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-06-04 14:51:28 +0000</bug_when>
    <thetext>STATUS: FAILED
BUILD: master:676fd3f394a0c0576b63c77ed2184bf5f42c29b6
ENVIRONMENT: Ubuntu 12.04 x86_64
STEPS TO REPRODUCE: 1. prepare 2 poky build environments


2. in one of the poky source, set PRSERV_HOST to localhost:0 in local.conf
4. run &quot;bitbake man&quot; and then add following lines into man_${PV}.bb
#######
do_package_append() {
        bb.build.exec_func(&apos;do_test_prserv&apos;, d)
}

do_test_prserv() {
 echo &quot;Test if PR service could work&quot;
}
#######
7. re-run &quot;bitbake man&quot;, and check the deploy folder if the packages for man are re-generated with PR number bump up
8. run &quot;bitbake-prserv-tool export export.inc&quot;
9. in the second poky source, set PRSERV_HOST to localhost:0 in local.conf
10. copy export.inc into the second poky source&apos;s build directory
11. run &quot;bitbake-prserv-tool import export.inc&quot; and run &quot;bitbake man&quot;
12. check the deploy folder if the packages for man are generated with N+1 PR number compared with the first poky source.

EXPECTED OUTCOME: Check if AUTOPR could be export/import for package build

ACTUAL OUTCOME: packages for man are generated with the same PR number compared with the first poky source.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33950</commentid>
    <comment_count>1</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-06-18 08:19:38 +0000</bug_when>
    <thetext>I will try and reproduce this issue as it seems to be a little more tricky than what is described. 

As a rough summary, multiple builds must be made in the first poky source that involve adding/removing lines in the man_${PV}.bb file. This stresses the PR server by going back and forth. After exporting and importing the PR server in the second poky source behaves as described in the ACTUAL OUTCOME.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>33978</commentid>
    <comment_count>2</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-06-19 13:48:35 +0000</bug_when>
    <thetext>I did try this locally and it worked for me. We therefore need a better set of steps to reproduce and more information where exactly the process fails.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34027</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-06-20 21:21:42 +0000</bug_when>
    <thetext>Need more information to help reproduce...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34040</commentid>
    <comment_count>4</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-06-21 09:53:11 +0000</bug_when>
    <thetext>I managed to reproduce this:
you have to add the following steps between 10. and 11.
&apos;bitbake -R export.inc man&apos;
&apos;bitbake -cclean man&apos;

I will try to find more scenarios that fit this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34045</commentid>
    <comment_count>5</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-06-21 11:12:58 +0000</bug_when>
    <thetext>Doing the below instead solves the problem:

&apos;bitbake -R export.inc man&apos;
&apos;bitbake -ccleansstate man&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34254</commentid>
    <comment_count>6</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-07-01 09:14:16 +0000</bug_when>
    <thetext>Info provided</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37834</commentid>
    <comment_count>7</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-10-11 10:50:06 +0000</bug_when>
    <thetext>The issue is that &quot;bitbake -R export.inc man&quot; will build a package with AUTOPR of &quot;1&quot; yet from metadata which does not match the checksum encoded in the export.inc file. It should have really built a package of &quot;2&quot; yet couldn&apos;t due to the data not being in the actual PR Server.

I&apos;m not sure this extended test case makes sense. &quot;bitbake -R export.inc man&quot; is not a command that we recommend anywhere in the documentation and it will not behave quite as you&apos;d expect. We only support the use case where data is imported or exported from the PR server, not used in intermediate steps.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37837</commentid>
    <comment_count>8</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-10-11 11:05:33 +0000</bug_when>
    <thetext>https://bugzilla.yoctoproject.org/tr_show_case.cgi?case_id=146 is now marked as DISABLED</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>