<?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>188572</bug_id>
          
          <creation_ts>2018-08-14 12:04:27 -0700</creation_ts>
          <short_desc>check-webkit-style incorrectly complaint about Buildbot 1.0 methods</short_desc>
          <delta_ts>2020-03-21 04:31:13 -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>CONFIGURATION CHANGED</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>ap</cc>
    
    <cc>lforschler</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1450056</commentid>
    <comment_count>0</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2018-08-14 12:04:27 -0700</bug_when>
    <thetext>check-webkit-style uses code from webkitpy which uses Buildbot 0.8.6p1 (https://trac.webkit.org/browser/webkit/trunk/Tools/Scripts/webkitpy/thirdparty/__init__.py#L197).

0.8.6p1 is the buildbot version used by build.webkit.org (and is very old version). However, in other portion of code (ews-build.webkit.org) we use latest Buildbot. There is significant difference in imports and functions signatures in Buildbot v0.8.6p1 and v1.0. Because of this check-webkit-style incorrectly complains about the code using Buildbot 1.0.

Sample error (https://bugs.webkit.org/show_bug.cgi?id=188498#c2):
ERROR: Tools/BuildSlaveSupport/ews-build/steps_unittest.py:777:  [TestRunWebKit1Tests.test_success] Passing unexpected keyword argument &apos;state_string&apos; in function call  [pylint/E1123] [5]
ERROR: Tools/BuildSlaveSupport/ews-build/steps_unittest.py:777:  [TestRunWebKit1Tests.test_success] No value passed for parameter &apos;status_text&apos; in function call  [pylint/E1120] [5]
ERROR: Tools/BuildSlaveSupport/ews-build/steps_unittest.py:791:  [TestRunWebKit1Tests.test_failure] Passing unexpected keyword argument &apos;state_string&apos; in function call  [pylint/E1123] [5]
ERROR: Tools/BuildSlaveSupport/ews-build/steps_unittest.py:791:  [TestRunWebKit1Tests.test_failure] No value passed for parameter &apos;status_text&apos; in function call  [pylint/E1120] [5]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1450059</commentid>
    <comment_count>1</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2018-08-14 12:05:06 -0700</bug_when>
    <thetext>When we upgrade build.webkit.org to latest Buildbot, this issue will be automatically fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1450062</commentid>
    <comment_count>2</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2018-08-14 12:15:01 -0700</bug_when>
    <thetext>One solution is to suppress these warnings by adding &apos;-pylint/E1123&apos; and &apos;-pylint/E1120&apos; to https://trac.webkit.org/browser/webkit/trunk/Tools/Scripts/webkitpy/style/checker.py#L118

However, it might suppress some real warnings as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1450105</commentid>
    <comment_count>3</comment_count>
    <who name="Lucas Forschler">lforschler</who>
    <bug_when>2018-08-14 14:45:09 -0700</bug_when>
    <thetext>I think it&apos;s possible to suppress the warning on the line of source code as well... 
https://stackoverflow.com/questions/28829236/is-it-possible-to-ignore-one-single-specific-line-with-pylint</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1450818</commentid>
    <comment_count>4</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2018-08-16 12:57:17 -0700</bug_when>
    <thetext>(In reply to Lucas Forschler from comment #3)
&gt; I think it&apos;s possible to suppress the warning on the line of source code as
&gt; well... 
&gt; https://stackoverflow.com/questions/28829236/is-it-possible-to-ignore-one-
&gt; single-specific-line-with-pylint


This works, however this would require adding the pylint disable statement for every line having Buildbot 1.0 related methods/imports. Would be few hundred such lines.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1632462</commentid>
    <comment_count>5</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2020-03-21 04:30:36 -0700</bug_when>
    <thetext>This issue no longer seems to be happening since we moved style queue to new EWS. ews bots have buildbot 1.0+ installed on them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1632463</commentid>
    <comment_count>6</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-03-21 04:31:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/60722746&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>