<?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>10097</bug_id>
          
          <creation_ts>2016-08-08 16:54:01 +0000</creation_ts>
          <short_desc>Add support for non interactive execution of build-perf-test-wrapper.sh script</short_desc>
          <delta_ts>2016-08-09 21:47:19 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Build Testing</product>
          <component>general</component>
          <version>2.2</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>Undecided</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jose Perez C">jose.perez.carranza</reporter>
          <assigned_to name="Markus Lehtonen">markus.lehtonen</assigned_to>
          
          
          <qa_contact name="Jose Perez C">jose.perez.carranza</qa_contact>
          <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>64954</commentid>
    <comment_count>0</comment_count>
    <who name="Jose Perez C">jose.perez.carranza</who>
    <bug_when>2016-08-08 16:54:01 +0000</bug_when>
    <thetext>Currently build-perf-test-wrapper.sh asks for sudo password to check KernelDropCaches in an interactive way, our machines needs a method to execute this script in non interactive way.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>64984</commentid>
    <comment_count>1</comment_count>
    <who name="Markus Lehtonen">markus.lehtonen</who>
    <bug_when>2016-08-09 06:59:26 +0000</bug_when>
    <thetext>oe-build-perf test script (that is being called by build-perf-test-wrapper.sh) needs root privileges in order to drop the kernel caches. The script uses the tee command for writing into /proc/sys/vm/drop_caches. You can avoid the password prompt by defining:

&lt;user&gt; ALL = NOPASSWD: /usr/bin/tee /proc/sys/vm/drop_caches

in a sudoers file (e.g. /etc/sudoers.d/buildperf). Just replace &lt;user&gt; with the username that is supposed to be able to run the script without a password probmpt.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65005</commentid>
    <comment_count>2</comment_count>
    <who name="Jose Perez C">jose.perez.carranza</who>
    <bug_when>2016-08-09 21:47:19 +0000</bug_when>
    <thetext>Not a bug</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>