<?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>194795</bug_id>
          
          <creation_ts>2019-02-18 15:11:29 -0800</creation_ts>
          <short_desc>Clean-up output from generate-xcfilelists so it can be filtered</short_desc>
          <delta_ts>2019-02-19 13:52:04 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>WebKit Nightly Build</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="Dean Jackson">dino</reporter>
          <assigned_to name="Dean Jackson">dino</assigned_to>
          <cc>joepeck</cc>
    
    <cc>krollin</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1507474</commentid>
    <comment_count>0</comment_count>
    <who name="Dean Jackson">dino</who>
    <bug_when>2019-02-18 15:11:29 -0800</bug_when>
    <thetext>Clean-up output from generate-xcfilelists so it can be filtered</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1507477</commentid>
    <comment_count>1</comment_count>
      <attachid>362345</attachid>
    <who name="Dean Jackson">dino</who>
    <bug_when>2019-02-18 15:13:22 -0800</bug_when>
    <thetext>Created attachment 362345
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1507512</commentid>
    <comment_count>2</comment_count>
      <attachid>362345</attachid>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2019-02-18 16:00:11 -0800</bug_when>
    <thetext>Comment on attachment 362345
Patch

r=me!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1507519</commentid>
    <comment_count>3</comment_count>
    <who name="Keith Rollin">krollin</who>
    <bug_when>2019-02-18 16:14:50 -0800</bug_when>
    <thetext>We should reconsider removing the &apos;...&apos; without a replacement for it. The &apos;...&apos; is used to ferry some logging across the &quot;Xcode barrier&quot;.

generate-xcfilelist runs in two contexts: standalone, and from within Xcode. To achieve this, when running standalone, generate-xcfilelist can launch Xcode and then invoke itself to continue some operations.

If, when debugging, it&apos;s necessary to enable logging, both the standalone generate-xcfilelist and the one sub-launched under Xcode both emit logging. But, at the same time, Xcode will spew out a lot of logging. We want the generate-xcfilelist logging, but not the Xcode logging. In order to distinguish between the two generate-xcfilelist will scan all of the logging from the Xcode process, keep the logging starting with &apos;...&apos; and discarding the rest.

There are also cases where we need to ferry error messages across this Xcode barrier. We we like to receive this logging without also receiving Xcode&apos;s native logging.

For examples of where we filter based on ..., see:

        sed -E -e &apos;s/^/... /&apos; &lt; &quot;${GX_TEMP}/std.err&quot;

and:

        WK_SUBLAUNCH_SCRIPT_PARAMETERS=(&quot;${GX_ARGS[@]}&quot;) xcodebuild &quot;${GX_XCODE_PARAMETERS[@]}&quot; | grep &apos;^\.\.\. &apos;

I&apos;ll be the first to admit that this is a bit of a hack. If anyone has a better approach to pick apart the generate-xcfilelist logging from Xcode&apos;s native logging, we can use that instead.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1507526</commentid>
    <comment_count>4</comment_count>
    <who name="Keith Rollin">krollin</who>
    <bug_when>2019-02-18 16:18:56 -0800</bug_when>
    <thetext>Will filter-webkit-build handle &quot;Generating all .xcfilelists&quot;? This logging doesn&apos;t seem to match the regex added in the patch. Is plain old &quot;Generating .+&quot; handled elsewhere?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1507692</commentid>
    <comment_count>5</comment_count>
    <who name="Dean Jackson">dino</who>
    <bug_when>2019-02-19 09:58:57 -0800</bug_when>
    <thetext>(In reply to Keith Rollin from comment #4)
&gt; Will filter-webkit-build handle &quot;Generating all .xcfilelists&quot;? This logging
&gt; doesn&apos;t seem to match the regex added in the patch. Is plain old &quot;Generating
&gt; .+&quot; handled elsewhere?

It won&apos;t. Well noticed.

It&apos;s not such a big deal since a fbwk &quot;failure&quot; will just let the output go through. But I&apos;ll fix it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1507693</commentid>
    <comment_count>6</comment_count>
    <who name="Dean Jackson">dino</who>
    <bug_when>2019-02-19 10:01:40 -0800</bug_when>
    <thetext>(In reply to Keith Rollin from comment #3)
&gt; We should reconsider removing the &apos;...&apos; without a replacement for it. The
&gt; &apos;...&apos; is used to ferry some logging across the &quot;Xcode barrier&quot;.
&gt; 
&gt; generate-xcfilelist runs in two contexts: standalone, and from within Xcode.
&gt; To achieve this, when running standalone, generate-xcfilelist can launch
&gt; Xcode and then invoke itself to continue some operations.
&gt; 
&gt; If, when debugging, it&apos;s necessary to enable logging, both the standalone
&gt; generate-xcfilelist and the one sub-launched under Xcode both emit logging.
&gt; But, at the same time, Xcode will spew out a lot of logging. We want the
&gt; generate-xcfilelist logging, but not the Xcode logging. In order to
&gt; distinguish between the two generate-xcfilelist will scan all of the logging
&gt; from the Xcode process, keep the logging starting with &apos;...&apos; and discarding
&gt; the rest.
&gt; 
&gt; There are also cases where we need to ferry error messages across this Xcode
&gt; barrier. We we like to receive this logging without also receiving Xcode&apos;s
&gt; native logging.
&gt; 
&gt; For examples of where we filter based on ..., see:
&gt; 
&gt;         sed -E -e &apos;s/^/... /&apos; &lt; &quot;${GX_TEMP}/std.err&quot;
&gt; 
&gt; and:
&gt; 
&gt;         WK_SUBLAUNCH_SCRIPT_PARAMETERS=(&quot;${GX_ARGS[@]}&quot;) xcodebuild
&gt; &quot;${GX_XCODE_PARAMETERS[@]}&quot; | grep &apos;^\.\.\. &apos;
&gt; 
&gt; I&apos;ll be the first to admit that this is a bit of a hack. If anyone has a
&gt; better approach to pick apart the generate-xcfilelist logging from Xcode&apos;s
&gt; native logging, we can use that instead.

OK. I definitely shouldn&apos;t land my patch in this state then.

Maybe we could prefix generate-xcfilelist output with something other than &quot;...&quot; and have fbwk identify it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1507705</commentid>
    <comment_count>7</comment_count>
    <who name="Keith Rollin">krollin</who>
    <bug_when>2019-02-19 10:27:54 -0800</bug_when>
    <thetext>(In reply to Dean Jackson from comment #6)
&gt; 
&gt; Maybe we could prefix generate-xcfilelist output with something other than
&gt; &quot;...&quot; and have fbwk identify it.

I had a similar thought during development of the script. I was thinking of keeping the ===&apos;s and ...&apos;s and filtering based on them. But you see a need to remove them and replace them with some other prefix?

Personally, I&apos;m fine with anything. We could use &quot;GXCF:&quot;, for example.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1507728</commentid>
    <comment_count>8</comment_count>
      <attachid>362345</attachid>
    <who name="Joseph Pecoraro">joepeck</who>
    <bug_when>2019-02-19 11:19:21 -0800</bug_when>
    <thetext>Comment on attachment 362345
Patch

r- based on the comment thread</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1507803</commentid>
    <comment_count>9</comment_count>
    <who name="Dean Jackson">dino</who>
    <bug_when>2019-02-19 13:50:01 -0800</bug_when>
    <thetext>Committed r241771: &lt;https://trac.webkit.org/changeset/241771&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1507804</commentid>
    <comment_count>10</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-02-19 13:52:04 -0800</bug_when>
    <thetext>&lt;rdar://problem/48213591&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>362345</attachid>
            <date>2019-02-18 15:13:22 -0800</date>
            <delta_ts>2019-02-19 11:19:21 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-194795-20190219101320.patch</filename>
            <type>text/plain</type>
            <size>4571</size>
            <attacher name="Dean Jackson">dino</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjQxNzQwCmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggYjllMmYxMmJjZjdjYmZkYjM4MmQ0OWJhMDljMmM5ZDI1
ZmYwOTA0Mi4uZjQxNzc3ZmYxNzUyYjUxMjI3YWIwM2I4NzBmNjQxNzcwNGQxMmU2YyAxMDA2NDQK
LS0tIGEvVG9vbHMvQ2hhbmdlTG9nCisrKyBiL1Rvb2xzL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE3
IEBACisyMDE5LTAyLTE4ICBEZWFuIEphY2tzb24gIDxkaW5vQGFwcGxlLmNvbT4KKworICAgICAg
ICBDbGVhbi11cCBvdXRwdXQgZnJvbSBnZW5lcmF0ZS14Y2ZpbGVsaXN0cyBzbyBpdCBjYW4gYmUg
ZmlsdGVyZWQKKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dpP2lk
PTE5NDc5NQorCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAg
IFJlbW92ZSB0aGUgIi4uLiIgYW5kICI9PT0iIGZyb20gZ2VuZXJhdGUteGNmaWxlbGlzdHMgb3V0
cHV0LCBhbmQKKyAgICAgICAgbWFrZSBhIHNsaWdodCB0d2VhayB0byBmaWx0ZXItYnVpbGQtd2Vi
a2l0IHNvIHN1Y2ggbGluZXMgYXJlIG1hcmtlZAorICAgICAgICBhcyBwbGFpbi4KKworICAgICAg
ICAqIFNjcmlwdHMvZmlsdGVyLWJ1aWxkLXdlYmtpdDoKKyAgICAgICAgKiBTY3JpcHRzL2dlbmVy
YXRlLXhjZmlsZWxpc3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lzdHMgPT09
IgorICAgICAgICBsb2dfcHJvZ3Jlc3MgIkNoZWNraW5nIGFsbCAueGNmaWxlbGlzdHMiCiAgICAg
ZWxzZQotICAgICAgICBsb2dfcHJvZ3Jlc3MgIj09PSBDaGVja2luZyAueGNmaWxlbGlzdHMgZm9y
ICR7R1hfUFJPSkVDVF9UQUd9ID09PSIKKyAgICAgICAgbG9nX3Byb2dyZXNzICJDaGVja2luZyAu
eGNmaWxlbGlzdHMgZm9yICR7R1hfUFJPSkVDVF9UQUd9IgogICAgIGZpCiAKICAgICBmb3JfZWFj
aF9wcm9qZWN0IFwKQEAgLTExNjUsNyArMTE2NCw3IEBAIGZ1bmN0aW9uIGRvX3N1YmdlbmVyYXRl
KCkKICAgICBbWyAtbiAiJHtHWF9QUk9KRUNUX1RBR30iIF1dIHx8IGRpZSAiR1hfUFJPSkVDVF9U
QUcgaXMgbm90IGRlZmluZWQuIgogICAgIFtbIC1uICIke1BST0pFQ1RfTkFNRX0iIF1dIHx8IGRp
ZSAic3ViZ2VuZXJhdGUgc2hvdWxkIG9ubHkgYmUgaW52b2tlZCBpbiBhbiBYY29kZSBjb250ZXh0
LiIKIAotICAgIGxvZ19wcm9ncmVzcyAiPT09IEdlbmVyYXRpbmcgLnhjZmlsZWxpc3RzIGZvciAk
e1BST0pFQ1RfTkFNRX0vJHtQTEFURk9STV9OQU1FfS8ke0NPTkZJR1VSQVRJT059ID09PSIKKyAg
ICBsb2dfcHJvZ3Jlc3MgIkdlbmVyYXRpbmcgLnhjZmlsZWxpc3RzIGZvciAke1BST0pFQ1RfTkFN
RX0vJHtQTEFURk9STV9OQU1FfS8ke0NPTkZJR1VSQVRJT059IgogCiAgICAgc2V0X3Byb2plY3Rf
c2V0dGluZ3MKIAo=
</data>
<flag name="review"
          id="378984"
          type_id="1"
          status="-"
          setter="joepeck"
    />
          </attachment>
      

    </bug>

</bugzilla>