<?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>53462</bug_id>
          
          <creation_ts>2011-01-31 15:57:42 -0800</creation_ts>
          <short_desc>Using Control-C to cancel webkit-patch or other python tools causes unpleasant traceback console spew</short_desc>
          <delta_ts>2011-02-01 12:36: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>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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Darin Adler">darin</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>commit-queue</cc>
    
    <cc>eric</cc>
    
    <cc>mihaip</cc>
    
    <cc>ojan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>342880</commentid>
    <comment_count>0</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2011-01-31 15:57:42 -0800</bug_when>
    <thetext>For example, I hit Control-C when webkit-patch was asking me about a diff

Was that diff correct? [Y/n]: Traceback (most recent call last):
  File &quot;/Users/darin/Safari/OpenSource/Tools/Scripts/webkit-patch&quot;, line 70, in &lt;module&gt;
    main()
  File &quot;/Users/darin/Safari/OpenSource/Tools/Scripts/webkit-patch&quot;, line 65, in main
    WebKitPatch(__file__).main()
  File &quot;/Volumes/Home/darin/Safari/OpenSource/Tools/Scripts/webkitpy/tool/multicommandtool.py&quot;, line 308, in main
    result = command.check_arguments_and_execute(options, args, self)
  File &quot;/Volumes/Home/darin/Safari/OpenSource/Tools/Scripts/webkitpy/tool/multicommandtool.py&quot;, line 117, in check_arguments_and_execute
    return self.execute(options, args, tool) or 0
  File &quot;/Volumes/Home/darin/Safari/OpenSource/Tools/Scripts/webkitpy/tool/commands/abstractsequencedcommand.py&quot;, line 51, in execute
    self._sequence.run_and_handle_errors(tool, options, state)
  File &quot;/Volumes/Home/darin/Safari/OpenSource/Tools/Scripts/webkitpy/tool/commands/stepsequence.py&quot;, line 70, in run_and_handle_errors
    self._run(tool, options, state)
  File &quot;/Volumes/Home/darin/Safari/OpenSource/Tools/Scripts/webkitpy/tool/commands/stepsequence.py&quot;, line 64, in _run
    step(tool, options).run(state)
  File &quot;/Volumes/Home/darin/Safari/OpenSource/Tools/Scripts/webkitpy/tool/steps/confirmdiff.py&quot;, line 73, in run
    diff_correct = self._tool.user.confirm(&quot;Was that diff correct?&quot;)
  File &quot;/Volumes/Home/darin/Safari/OpenSource/Tools/Scripts/webkitpy/common/system/user.py&quot;, line 128, in confirm
    response = raw_input(&quot;%s [%s]: &quot; % (message, choice))
KeyboardInterrupt

Yuck!

Who else should I cc on this bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>342882</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-01-31 15:59:25 -0800</bug_when>
    <thetext>We could catch these, sure.  For now we&apos;ve enjoyed the default handler&apos;s print-the-stacktrace behavior.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>342902</commentid>
    <comment_count>2</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2011-01-31 16:09:54 -0800</bug_when>
    <thetext>Since I’m using the scripts, not developing them, the traceback is never useful to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>342903</commentid>
    <comment_count>3</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-01-31 16:11:36 -0800</bug_when>
    <thetext>Yes, I think you are correct that these scripts have moved from a development stage to being deployed and used and we should get rid of debug messages like these.  I agree with this bug completely.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>343369</commentid>
    <comment_count>4</comment_count>
      <attachid>80793</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-02-01 11:22:26 -0800</bug_when>
    <thetext>Created attachment 80793
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>343381</commentid>
    <comment_count>5</comment_count>
      <attachid>80793</attachid>
    <who name="Mihai Parparita">mihaip</who>
    <bug_when>2011-02-01 11:35:22 -0800</bug_when>
    <thetext>Comment on attachment 80793
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=80793&amp;action=review

&gt; Tools/Scripts/webkit-patch:72
&gt; +        pass

Exiting with a non-0 exit code seems better (see http://trac.webkit.org/browser/trunk/Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py#L440)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>343388</commentid>
    <comment_count>6</comment_count>
      <attachid>80797</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2011-02-01 11:39:15 -0800</bug_when>
    <thetext>Created attachment 80797
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>343413</commentid>
    <comment_count>7</comment_count>
      <attachid>80797</attachid>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-02-01 12:23:28 -0800</bug_when>
    <thetext>Comment on attachment 80797
Patch

I would hav elogged &quot;user interupted&quot;.  I might even put this in the multicommandtool.py instead.

Also, isn&apos;t there a python helper for the 128 + bit?

I don&apos;t think this should exit 0 though, so you&apos;re right in returning the signal code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>343425</commentid>
    <comment_count>8</comment_count>
      <attachid>80797</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-02-01 12:35:58 -0800</bug_when>
    <thetext>Comment on attachment 80797
Patch

Clearing flags on attachment: 80797

Committed r77275: &lt;http://trac.webkit.org/changeset/77275&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>343427</commentid>
    <comment_count>9</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2011-02-01 12:36:04 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="1"
              isprivate="0"
          >
            <attachid>80793</attachid>
            <date>2011-02-01 11:22:26 -0800</date>
            <delta_ts>2011-02-01 11:39:12 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-53462-20110201112225.patch</filename>
            <type>text/plain</type>
            <size>973</size>
            <attacher name="Adam Barth">abarth</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDc3MjYzKQorKysgVG9vbHMvQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMg
KzEsMTUgQEAKKzIwMTEtMDItMDEgIEFkYW0gQmFydGggIDxhYmFydGhAd2Via2l0Lm9yZz4KKwor
ICAgICAgICBSZXZpZXdlZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBVc2luZyBDb250
cm9sLUMgdG8gY2FuY2VsIHdlYmtpdC1wYXRjaCBvciBvdGhlciBweXRob24gdG9vbHMgY2F1c2Vz
CisgICAgICAgIHVucGxlYXNhbnQgdHJhY2ViYWNrIGNvbnNvbGUgc3BldworICAgICAgICBodHRw
czovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9NTM0NjIKKworICAgICAgICBDYXRj
aCB0aGUgZXhjZXB0aW9uIGFuZCBkb24ndCBwcmludCB0aGUgc3RhY2sgdHJhY2UuCisKKyAgICAg
ICAgKiBTY3JpcHRzL3dlYmtpdC1wYXRjaDoKKwogMjAxMS0wMi0wMSAgQmFsYXpzIEtlbGVtZW4g
IDxrYmFsYXpzQHdlYmtpdC5vcmc+CiAKICAgICAgICAgUmV2aWV3ZWQgYnkgQW5kcmVhcyBLbGlu
Zy4KSW5kZXg6IFRvb2xzL1NjcmlwdHMvd2Via2l0LXBhdGNoCj09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIFRvb2xz
L1NjcmlwdHMvd2Via2l0LXBhdGNoCShyZXZpc2lvbiA3NzI2MikKKysrIFRvb2xzL1NjcmlwdHMv
d2Via2l0LXBhdGNoCSh3b3JraW5nIGNvcHkpCkBAIC02Niw1ICs2Niw3IEBAIGRlZiBtYWluKCk6
CiAKIAogaWYgX19uYW1lX18gPT0gIl9fbWFpbl9fIjoKLQotICAgIG1haW4oKQorICAgIHRyeToK
KyAgICAgICAgbWFpbigpCisgICAgZXhjZXB0IEtleWJvYXJkSW50ZXJydXB0OgorICAgICAgICBw
YXNzCg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>80797</attachid>
            <date>2011-02-01 11:39:15 -0800</date>
            <delta_ts>2011-02-01 12:35:58 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-53462-20110201113914.patch</filename>
            <type>text/plain</type>
            <size>1137</size>
            <attacher name="Adam Barth">abarth</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDc3MjYzKQorKysgVG9vbHMvQ2hhbmdlTG9nCSh3b3JraW5nIGNvc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NyBAQCBkZWYgbWFpbigpOgogCiAKIGlmIF9fbmFtZV9fID09ICJfX21haW5fXyI6
Ci0KLSAgICBtYWluKCkKKyAgICB0cnk6CisgICAgICAgIG1haW4oKQorICAgIGV4Y2VwdCBLZXli
b2FyZEludGVycnVwdDoKKyAgICAgICAgc3lzLmV4aXQoc2lnbmFsLlNJR0lOVCArIDEyOCkK
</data>

          </attachment>
      

    </bug>

</bugzilla>