<?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>34822</bug_id>
          
          <creation_ts>2010-02-10 17:42:26 -0800</creation_ts>
          <short_desc>webkit-build-directory misuses terms</short_desc>
          <delta_ts>2010-02-17 12:26:32 -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>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>34898</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Eric Seidel (no email)">eric</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>commit-queue</cc>
    
    <cc>dpranke</cc>
    
    <cc>mrowe</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>189541</commentid>
    <comment_count>0</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-02-10 17:42:26 -0800</bug_when>
    <thetext>From an email from Mark Rowe:


Added: trunk/WebKitTools/Scripts/webkit-build-directory (0 =&gt; 54634)

--- trunk/WebKitTools/Scripts/webkit-build-directory	                        (rev 0)
+++ trunk/WebKitTools/Scripts/webkit-build-directory	2010-02-11 01:24:04 UTC (rev 54634)
@@ -0,0 +1,65 @@

+my $programName = basename($0);
+my $usage = &lt;&lt;EOF;
+Usage: $programName [options]
+  --base      Show the root build directory instead of one corresponding to the current target (e.g. Debug, Release)
+  --debug     Show build directory for the Debug target
+  -h|--help   Show this help message
+  --release   Show build directory for the Release target
+EOF

The terminology used here is wrong.  Debug and Release are configurations, not targets.  A target is a result of a build (such as derived source file generation, or the WebKit framework).

The documentation for --base is also confusing.  It talks about a &quot;root build directory&quot; while the option name implies it is the &quot;base build directory&quot;.  Presumably they&apos;re the same thing so we should pick a single name for them.
+
+setConfiguration(); # Figure out from the command line if we&apos;re --debug or --release or the default.
… this is why the method to process these flags uses the term configuration ;-)

It would probably be clearer to explain the behavior in terms of two modes: one that shows the base build directory, and a second that shows the per-configuration build directory.  I would suggest using explicit flags to select the mode of operation, since as it stands the default behavior is somewhat confusing (it will show the per-configuration build directory for the active configuration).

== end email ==

I&apos;m about to prepare a patch to fix the Configuration/Target confusion.  I&apos;m not sure I understand the suggestion with regards to the flags.  The current behavior is designed to be &quot;correct&quot; for any shell script/Makefile which wants to know where to put output.  But you&apos;re right, that may be confusing to users just running the script without args.

Could you give an example of another interface you&apos;d prefer?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>189544</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2010-02-10 17:49:13 -0800</bug_when>
    <thetext>The current behavior seems to be:
webkit-build-directory -&gt; WebKitBuild/Release
webkit-build-directory --debug -&gt; WebKitBuild/Debug
webkit-build-directory --base -&gt; WebKitBuild

I’m basically suggesting that we do the following:
webkit-build-directory -&gt; error, need to specify which directory you want.
webkit-build-directory --configuration-build-directory -&gt; WebKitBuild/Release
webkit-build-directory --configuration-build-directory --debug -&gt; WebKitBuild/Debug
webkit-build-directory --base-build-directory -&gt; WebKitBuild

I don’t think that it is intuitive for a script named webkit-build-directory to default to giving you the per-configuration build directory.  Making it explicit which directory is being requested is much clearer.  The option names I suggested may be a little verbose.  I just picked the most literal names possible.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>189556</commentid>
    <comment_count>2</comment_count>
      <attachid>48538</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-02-10 18:06:24 -0800</bug_when>
    <thetext>Created attachment 48538
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>189817</commentid>
    <comment_count>3</comment_count>
      <attachid>48538</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-02-11 15:37:21 -0800</bug_when>
    <thetext>Comment on attachment 48538
Patch

Does this look good to you Mark?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>190123</commentid>
    <comment_count>4</comment_count>
      <attachid>48538</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-02-12 12:58:00 -0800</bug_when>
    <thetext>Comment on attachment 48538
Patch

Rejecting patch 48538 from commit-queue.

Failed to run &quot;[&apos;WebKitTools/Scripts/run-webkit-tests&apos;, &apos;--no-launch-safari&apos;, &apos;--exit-after-n-failures=1&apos;, &apos;--quiet&apos;]&quot; exit_code: 1
Running build-dumprendertree
Running tests from /Users/eseidel/Projects/CommitQueue/LayoutTests
Testing 12157 test cases.
websocket/tests/bufferedAmount-after-close.html -&gt; crashed

Exiting early after 1 failures. 12124 tests run.
500.30s total testing time

12123 test cases (99%) succeeded
1 test case (&lt;1%) crashed
7 test cases (&lt;1%) had stderr output

Full output: http://webkit-commit-queue.appspot.com/results/261095</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>190160</commentid>
    <comment_count>5</comment_count>
      <attachid>48538</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-02-12 14:46:03 -0800</bug_when>
    <thetext>Comment on attachment 48538
Patch

Bug 34898.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>190373</commentid>
    <comment_count>6</comment_count>
      <attachid>48538</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-02-14 20:42:08 -0800</bug_when>
    <thetext>Comment on attachment 48538
Patch

Clearing flags on attachment: 48538

Committed r54759: &lt;http://trac.webkit.org/changeset/54759&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>190374</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-02-14 20:42:17 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>191149</commentid>
    <comment_count>8</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2010-02-17 12:26:32 -0800</bug_when>
    <thetext>Crash was bug 34898.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>48538</attachid>
            <date>2010-02-10 18:06:24 -0800</date>
            <delta_ts>2010-02-14 20:42:08 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-34822-20100210180622.patch</filename>
            <type>text/plain</type>
            <size>3277</size>
            <attacher name="Eric Seidel (no email)">eric</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYktpdFRvb2xzL0NoYW5nZUxvZyBiL1dlYktpdFRvb2xzL0NoYW5nZUxv
ZwppbmRleCAyODYxOTBhLi5jZmJiYmEzIDEwMDY0NAotLS0gYS9XZWJLaXRUb29scy9DaGFuZ2VM
b2cKKysrIGIvV2ViS2l0VG9vbHMvQ2hhbmdlTG9nCkBAIC0xLDUgKzEsMTcgQEAKIDIwMTAtMDIt
MTAgIEVyaWMgU2VpZGVsICA8ZXJpY0B3ZWJraXQub3JnPgogCisgICAgICAgIFJldmlld2VkIGJ5
IE5PQk9EWSAoT09QUyEpLgorCisgICAgICAgIHdlYmtpdC1idWlsZC1kaXJlY3RvcnkgbWlzdXNl
cyB0ZXJtcworICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9
MzQ4MjIKKworICAgICAgICAqIFNjcmlwdHMvd2Via2l0LWJ1aWxkLWRpcmVjdG9yeToKKyAgICAg
ICAgIC0gQ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