<?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>225789</bug_id>
          
          <creation_ts>2021-05-13 16:48:15 -0700</creation_ts>
          <short_desc>report-non-inclusive-language should skip symlinks</short_desc>
          <delta_ts>2021-05-17 10:01:35 -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>
          
          <blocked>213092</blocked>
          <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>bdakin</cc>
    
    <cc>darin</cc>
    
    <cc>ryanhaddad</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1759900</commentid>
    <comment_count>0</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2021-05-13 16:48:15 -0700</bug_when>
    <thetext>report-non-inclusive-language should skip symlinks. Currently the script fails with an error if there is a symlink pointing to a non-existing file. 

Traceback (most recent call last):
  File &quot;OpenSource/Tools/Scripts/report-non-inclusive-language&quot;, line 70, in &lt;module&gt;
    handle = open(os.path.join(subroot, file), &quot;r&quot;)
IOError: [Errno 2] No such file or directory: &apos;testdir/symlink-pointing-to-non-existing-file&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1759908</commentid>
    <comment_count>1</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2021-05-13 16:56:23 -0700</bug_when>
    <thetext>Also most likely the linked file would be checked directly by the script while iterating the directory structure and would result in it being counted twice.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1759909</commentid>
    <comment_count>2</comment_count>
      <attachid>428578</attachid>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2021-05-13 16:57:56 -0700</bug_when>
    <thetext>Created attachment 428578
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1759953</commentid>
    <comment_count>3</comment_count>
      <attachid>428578</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2021-05-13 18:27:07 -0700</bug_when>
    <thetext>Comment on attachment 428578
Patch

How did you discover the need for this? Who’s using this on directories with symlinks in them?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1759956</commentid>
    <comment_count>4</comment_count>
    <who name="Aakash Jain">aakash_jain</who>
    <bug_when>2021-05-13 18:31:33 -0700</bug_when>
    <thetext>&gt; How did you discover the need for this? 
I discovered this while running this script on an &quot;Internal&quot; repository.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1759959</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-05-13 18:34:54 -0700</bug_when>
    <thetext>&lt;rdar://problem/77998004&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1759969</commentid>
    <comment_count>6</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2021-05-13 19:06:14 -0700</bug_when>
    <thetext>Committed r277476 (237711@main): &lt;https://commits.webkit.org/237711@main&gt;

All reviewed patches have been landed. Closing bug and clearing flags on attachment 428578.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>428578</attachid>
            <date>2021-05-13 16:57:56 -0700</date>
            <delta_ts>2021-05-14 04:08:29 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-225789-20210513195755.patch</filename>
            <type>text/plain</type>
            <size>1426</size>
            <attacher name="Aakash Jain">aakash_jain</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDI3NzQ2NykKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDE0IEBACisyMDIxLTA1LTEzICBBYWthc2ggSmFpbiAgPGFha2FzaF9qYWluQGFwcGxlLmNv
bT4KKworICAgICAgICByZXBvcnQtbm9uLWluY2x1c2l2ZS1sYW5ndWFnZSBzaG91bGQgc2tpcCBz
eW1saW5rcworICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9
MjI1Nzg5CisKKyAgICAgICAgUmV2aWV3ZWQgYnkgTk9CT0RZIChPT1BTISkuCisKKyAgICAgICAg
KiBTY3JpcHRzL3JlcG9ydC1ub24taW5jbHVzaXZlLWxhbmd1YWdlOiBTa2lwIHN5bWxpbmtzIHNp
bmNlIG1vc3QgbGlrZWx5IHRoZSBsaW5rZWQgZmlsZSB3b3VsZCBiZSBjaGVja2VkIAorICAgICAg
ICBkaXJlY3RseSBieSB0aGUgc2NyaXB0IHdoaWxlIGl0ZXJhdGluZyB0aGUgZGlyZWN0b3J5IHN0
cnVjdHVyZSBhbmQgd291bGQgcmVzdWx0IGluIGl0IGJlaW5nIGNvdW50ZWQgdHdpY2UuCisgICAg
ICAgIEFsc28gdGhlIHNjcmlwdCBmYWlscyB3aXRoIGFuIGVycm9yIGlmIHRoZXJlIGlzIGEgc3lt
bGluayBwb2ludGluZyB0byBhIG5vbi1leGlzdGluZyBmaWxlLgorCiAyMDIxLTA1LTEzICBBYWth
c2ggSmFpbiAgPGFha2FzaF9qYWluQGFwcGxlLmNvbT4KIAogICAgICAgICBbZXdzXSBTdHlsZSBm
aXhlcyBpbiBzdGVwcy5weQpJbmRleDogVG9vbHMvU2NyaXB0cy9yZXBvcnQtbm9uLWluY2x1c2l2
ZS1sYW5ndWFnZQo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9TY3JpcHRzL3JlcG9ydC1ub24taW5jbHVz
aXZlLWxhbmd1YWdlCShyZXZpc2lvbiAyNzc0NjcpCisrKyBUb29scy9TY3JpcHRzL3JlcG9ydC1u
b24taW5jbHVzaXZlLWxhbmd1YWdlCSh3b3JraW5nIGNvcHkpCkBAIC02Nyw2ICs2Nyw4IEBAIGZv
ciBzdWJyb290LCBkaXJlY3RvcmllcywgZmlsZXMgaW4gb3Mud2EKICAgICAgICAgICAgIGNvbnRp
bnVlCiAgICAgICAgIGlmIGZpbGUgaW4gSUdOT1JFX0ZJTEVfTkFNRVM6CiAgICAgICAgICAgICBj
b250aW51ZQorICAgICAgICBpZiBvcy5wYXRoLmlzbGluayhvcy5wYXRoLmpvaW4oc3Vicm9vdCwg
ZmlsZSkpOgorICAgICAgICAgICAgY29udGludWUKICAgICAgICAgaGFuZGxlID0gb3Blbihvcy5w
YXRoLmpvaW4oc3Vicm9vdCwgZmlsZSksICJyIikKICAgICAgICAgZm9yIGxpbmUgaW4gaGFuZGxl
LnJlYWRsaW5lcygpOgogICAgICAgICAgICAgZm9yIHRlcm0gaW4gbm9uSW5jbHVzaXZlVGVybXM6
Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>