<?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>13323</bug_id>
          
          <creation_ts>2019-05-02 13:24:38 +0000</creation_ts>
          <short_desc>Add reproducibility automated testing</short_desc>
          <delta_ts>2019-09-05 14:45:49 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Functional (self) Testing</product>
          <component>general</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>High</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.8 M3</target_milestone>
          
          <blocked>13324</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Purdie">richard.purdie</reporter>
          <assigned_to name="Joshua Watt">JPEWhacker</assigned_to>
          <cc>alessioigorbogani</cc>
    
    <cc>JPEWhacker</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</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>83686</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2019-05-02 13:24:38 +0000</bug_when>
    <thetext>We need to have tests that confirm our builds are reproducible. Initially we want a test which:

a) runs a build in the usual way/location (can be sstate accelerated)

b) changes to a new TMPDIR and rebuilds without using sstate

c) compares the build in a) and b) and lists the differences both in packages themselves and in images.

We&apos;d start with a test for core-image-minimal, ultimately moving to more complex images such as sato-sdk and perhaps world builds.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84488</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-07-25 14:42:10 +0000</bug_when>
    <thetext>The test suite is merged in oe-core now but is skipped currently.  We can close this when the test is enabled.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84506</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-07-25 15:19:26 +0000</bug_when>
    <thetext>With a couple of patches I&apos;m about to send, the current failure list is:

The following deb packages are missing or different:
ca-certificates_20190110-r0_all.deb
libical-dbg_2.0.0-r0_amd64.deb
libical_2.0.0-r0_amd64.deb
perl-ptest_5.30.0-r0_amd64.deb
systemd-dbg_242+0+db2e367bfc-r0_amd64.deb
systemd_242+0+db2e367bfc-r0_amd64.deb
kernel-image-bzimage-5.0.19-yocto-standard_5.0.19+git0+c2e34d9ab2_00638cdd8f-r0_amd64.deb</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84510</commentid>
    <comment_count>3</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-07-25 17:54:11 +0000</bug_when>
    <thetext>So if the test uses reproducible_build_simple instead of the convoluted magic in the normal class, more recipes are reproducible.  With that change it&apos;s just:

libical-dbg_2.0.0-r0_amd64.deb
libical_2.0.0-r0_amd64.deb
systemd-dbg_242+0+db2e367bfc-r0_amd64.deb
systemd_242+0+db2e367bfc-r0_amd64.deb
kernel-image-bzimage-5.0.19-yocto-standard_5.0.19+git0+c2e34d9ab2_00638cdd8f-r0_amd64.deb

The libical one is build paths in the cmake files, iirc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84518</commentid>
    <comment_count>4</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-07-26 10:34:42 +0000</bug_when>
    <thetext>ical hopefully fixed with v3 of the upgrade.

systemd is because it embeds the build timestamp as a build epoch.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84537</commentid>
    <comment_count>5</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-07-26 20:46:32 +0000</bug_when>
    <thetext>With a bit of a hack to fix systemd, and a little patch to the kernel, I have the test passing here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84576</commentid>
    <comment_count>6</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2019-08-02 10:19:45 +0000</bug_when>
    <thetext>For a laugh I changed the QA test to build core-image-sato instead of -minimal.

gstreamer1.0-libav-dbg_1.16.0-r0_amd64.deb
gstreamer1.0-libav_1.16.0-r0_amd64.deb
jpeg-tools_2.0.2-r0_amd64.deb
libatk-1.0-doc_2.32.0-r0_amd64.deb
libatspi-src_2.32.1-r0_amd64.deb
libical-dbg_3.0.5-r0_amd64.deb
libical_3.0.5-r0_amd64.deb
libjpeg-dbg_2.0.2-r0_amd64.deb
libjpeg62_2.0.2-r0_amd64.deb
librsvg-2-2_2.40.20-r0_amd64.deb
librsvg-2-dbg_2.40.20-r0_amd64.deb
libsoup-2.4-doc_2.66.2-r0_amd64.deb
libtag-c0_1.11.1-r0_amd64.deb
libtag-dbg_1.11.1-r0_amd64.deb
libturbojpeg0_2.0.2-r0_amd64.deb
pango-src_1.42.4-r0_amd64.deb
xserver-xorg-src_1.20.4-r0_amd64.deb

The ones which impact *just* the -src are where absolute build paths are embedded in generated sources, I&apos;ve a fix for xserver-xorg already.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84759</commentid>
    <comment_count>7</comment_count>
    <who name="Joshua Watt">JPEWhacker</who>
    <bug_when>2019-08-27 19:37:20 +0000</bug_when>
    <thetext>This patch series is the initial attempt to enable the reproducible OEQA test for core-image-minimal:

http://lists.openembedded.org/pipermail/openembedded-core/2019-August/286154.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84883</commentid>
    <comment_count>8</comment_count>
    <who name="Joshua Watt">JPEWhacker</who>
    <bug_when>2019-09-05 14:45:49 +0000</bug_when>
    <thetext>The autobuilder is now running the reproducible build test.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>