<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>228900</bug_id>
          
          <creation_ts>2021-08-07 13:08:13 -0700</creation_ts>
          <short_desc>[ews] Limit the size of error context buffer</short_desc>
          <delta_ts>2021-08-09 04:44:44 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Aakash Jain">aakash_jain</reporter>
          <assigned_to name="Aakash Jain">aakash_jain</assigned_to>
          <cc>aakash_jain</cc>
    
    <cc>ap</cc>
    
    <cc>dewei_zhu</cc>
    
    <cc>jbedard</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1782722</commentid>
    <comment_count>0</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2021-08-07 13:08:13 -0700</bug_when>
    <thetext>In EWS, when build fails, we provide a filtered log for errors. In that log, apart from filtering lines containign the word Error, we also include few lines before that to provide additional context. However, sometimes, those additional context line might be pretty large (almost the whole log). For e.g.: in https://ews-build.webkit.org/#/builders/36/builds/42029 overall stdio logs were 9171 lines, while filtered error log was 9150 lines (almost same length as complete logs). This defeats the purpose of filtering.

Also adding large number of lines in the filtered error logs slow down the build (e.g.: in https://ews-build.webkit.org/#/builders/36/builds/42029 in step 15 the actual script took ~3 minutes (183 seconds), while the step took ~5 minutes). I have noticed few times that after the step is finished, adding logs in error view takes long time when there are large amount of lines being added to errors log.

We should limit the number of additional lines we add in errors log.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1782724</commentid>
    <comment_count>1</comment_count>
      <attachid>435134</attachid>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2021-08-07 13:12:44 -0700</bug_when>
    <thetext>Created attachment 435134
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1782726</commentid>
    <comment_count>2</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2021-08-07 13:18:16 -0700</bug_when>
    <thetext>Tested on uat instance.

With this patch: https://ews-build.webkit-uat.org/#/builders/35/builds/105397 (see errors log in step 11)
Without this patch: https://ews-build.webkit-uat.org/#/builders/35/builds/105398 (see errors log in step 11)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1782729</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-08-07 13:26:25 -0700</bug_when>
    <thetext>&lt;rdar://problem/81657334&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1782744</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2021-08-07 18:20:54 -0700</bug_when>
    <thetext>Committed r280763 (240348@main): &lt;https://commits.webkit.org/240348@main&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 435134.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1782867</commentid>
    <comment_count>5</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2021-08-09 04:44:44 -0700</bug_when>
    <thetext>Restarted buildbot to pick up this fix</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>435134</attachid>
            <date>2021-08-07 13:12:44 -0700</date>
            <delta_ts>2021-08-07 18:20:55 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-228900-20210807161243.patch</filename>
            <type>text/plain</type>
            <size>1193</size>
            <attacher name="Aakash Jain">aakash_jain</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDI4MDc1OCkKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDEzIEBACisyMDIxLTA4LTA3ICBBYWthc2ggSmFpbiAgPGFha2FzaF9qYWluQGFwcGxlLmNv
bT4KKworICAgICAgICBbZXdzXSBMaW1pdCB0aGUgc2l6ZSBvZiBlcnJvciBjb250ZXh0IGJ1ZmZl
cgorICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MjI4OTAw
CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAgKiBDSVN1
cHBvcnQvZXdzLWJ1aWxkL3N0ZXBzLnB5OgorICAgICAgICAoQnVpbGRMb2dMaW5lT2JzZXJ2ZXIu
b3V0TGluZVJlY2VpdmVkKTogTGltaXQgdGhlIGxpbmVzIGZvciBhZGRpdGlvbmFsIGNvbnRleHQg
dG8gNTAgbGluZXMuCisKIDIwMjEtMDgtMDYgIEpvbmF0aGFuIEJlZGFyZCAgPGpiZWRhcmRAYXBw
bGUuY29tPgogCiAgICAgICAgIFtnaXQtd2Via2l0XSBBZGQgc2V0dXAgZnVuY3Rpb24KSW5kZXg6
IFRvb2xzL0NJU3VwcG9ydC9ld3MtYnVpbGQvc3RlcHMucHkKPT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gVG9vbHMv
Q0lTdXBwb3J0L2V3cy1idWlsZC9zdGVwcy5weQkocmV2aXNpb24gMjgwNzU4KQorKysgVG9vbHMv
Q0lTdXBwb3J0L2V3cy1idWlsZC9zdGVwcy5weQkod29ya2luZyBjb3B5KQpAQCAtMTUyOSw3ICsx
NTI5LDcgQEAgY2xhc3MgQnVpbGRMb2dMaW5lT2JzZXJ2ZXIobG9nb2JzZXJ2ZXIuTAogICAgICAg
ICAgICAgc2VsZi5lcnJvcl9jb250ZXh0X2J1ZmZlci5hcHBlbmQobGluZSkKIAogICAgICAgICBp
ZiBzZWxmLnNlYXJjaFN0cmluZyBpbiBsaW5lOgotICAgICAgICAgICAgZm9yIGxvZyBpbiBzZWxm
LmVycm9yX2NvbnRleHRfYnVmZmVyOgorICAgICAgICAgICAgZm9yIGxvZyBpbiBzZWxmLmVycm9y
X2NvbnRleHRfYnVmZmVyWy01MDpdOgogICAgICAgICAgICAgICAgIHNlbGYuZXJyb3JSZWNlaXZl
ZChsb2cpCiAgICAgICAgICAgICBzZWxmLmVycm9yX2NvbnRleHRfYnVmZmVyID0gW10KIAo=
</data>

          </attachment>
      

    </bug>

</bugzilla>