<?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>15264</bug_id>
          
          <creation_ts>2023-10-27 12:00:06 +0000</creation_ts>
          <short_desc>Improve patchtest runtime</short_desc>
          <delta_ts>2024-10-17 15:22:02 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Patchwork/Patchtest</product>
          <component>Patchtest</component>
          <version>5.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>5.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Trevor Gamblin">tgamblin</reporter>
          <assigned_to name="Trevor Gamblin">tgamblin</assigned_to>
          <cc>randy.macleod</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>97021</commentid>
    <comment_count>0</comment_count>
    <who name="Trevor Gamblin">tgamblin</who>
    <bug_when>2023-10-27 12:00:06 +0000</bug_when>
    <thetext>Patchtest starts up the bitbake (tinfoil) interface multiple times during testing. While this isn&apos;t very critical for the user testing a handful of patches, both the selftest suite and the automated patchtest service iterate over many patches to provide feedback, and lose significant amounts of time to simply re-initializing the system for each one. The patchtest code should be refactored to reduce the number of overall calls to tinfoil and find other optimizations that will improve runtime.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>99922</commentid>
    <comment_count>1</comment_count>
    <who name="Trevor Gamblin">tgamblin</who>
    <bug_when>2024-10-17 15:22:02 +0000</bug_when>
    <thetext>The reason that this is happening is because patchtest uses tinfoil to figure out which files have been added/modified/deleted/etc. in a given patch/series. The runtime impact of this can be reduced for now by using BB_SERVER_TIMEOUT = &quot;60&quot; in local.conf for patchtest runs (this has been implemented on my local selftest runs). For now, I think this is sufficient, as more significant patchtest adjustments will find newer ways to determine what files are changed.

Closing for now, but it can be reopened if necessary.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>