<?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>34193</bug_id>
          
          <creation_ts>2010-01-26 18:53:38 -0800</creation_ts>
          <short_desc>webkit-patch: Hangs on bad bugzilla username and completes?</short_desc>
          <delta_ts>2011-06-24 10:01:01 -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>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>REOPENED</bug_status>
          <resolution></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>34265</dependson>
    
    <dependson>34264</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chris Jerdonek">cjerdonek</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>abarth</cc>
    
    <cc>cjerdonek</cc>
    
    <cc>commit-queue</cc>
    
    <cc>dbates</cc>
    
    <cc>eric</cc>
    
    <cc>joenotcharles</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>184893</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Jerdonek">cjerdonek</who>
    <bug_when>2010-01-26 18:53:38 -0800</bug_when>
    <thetext>Looking at the webkit-patch issues, this one is probably already recorded somewhere.

I had an experience where webkit-patch hung for a minute and terminated -- apparently because the bugzilla username in my keychain was out of date.  I spent another 15 minutes trying to get webkit-patch to work, only to discover later that the commit had already happened!  It looks like it got interrupted while trying to mark the bug resolved.  It&apos;s bad because there is no line of output saying anything like &quot;Committed revision....&quot; -- only &quot;Processing patch 47411 from bug 34060.&quot;  It&apos;s hard to know this means &quot;committed&quot; because the next output line says it is parsing the Changelog.  It seems like the ChangeLog would be parsed before it starts committing.  It would also be good if the error says what remaining steps didn&apos;t complete, so the user knows what remaining steps need to be manually completed.

See below:

$ WebKitTools/Scripts/webkit-patch land-from-bug --no-build --ignore-builders 34060
Fetching: https://bugs.webkit.org/show_bug.cgi?id=34060&amp;ctype=xml
1 reviewed patch found on bug 34060.
Processing 1 patch from 1 bug.
Cleaning working directory
Updating working directory
Processing patch 47411 from bug 34060.
Parsing ChangeLog: WebKitTools/ChangeLog
Reading Keychain for bugs.webkit.org account and password.  Click &quot;Allow&quot; to continue...
Logging in as chris.jerdonek@gmail.com...
Traceback (most recent call last):
  File &quot;WebKitTools/Scripts/webkit-patch&quot;, line 108, in &lt;module&gt;
    WebKitPatch().main()
  File &quot;/Users/chris_g4/Dev/Apple/WebKit-svn/WebKitTools/Scripts/webkitpy/multicommandtool.py&quot;, line 299, in main
    return command.check_arguments_and_execute(options, args, self)
  File &quot;/Users/chris_g4/Dev/Apple/WebKit-svn/WebKitTools/Scripts/webkitpy/multicommandtool.py&quot;, line 113, in check_arguments_and_execute
    return self.execute(options, args, tool) or 0
  File &quot;/Users/chris_g4/Dev/Apple/WebKit-svn/WebKitTools/Scripts/webkitpy/commands/download.py&quot;, line 116, in execute
    self._process_patch(patch, options, args, tool)
  File &quot;/Users/chris_g4/Dev/Apple/WebKit-svn/WebKitTools/Scripts/webkitpy/commands/download.py&quot;, line 135, in _process_patch
    self._main_sequence.run_and_handle_errors(tool, options, state)
  File &quot;/Users/chris_g4/Dev/Apple/WebKit-svn/WebKitTools/Scripts/webkitpy/stepsequence.py&quot;, line 66, in run_and_handle_errors
    self._run(tool, options, state)
  File &quot;/Users/chris_g4/Dev/Apple/WebKit-svn/WebKitTools/Scripts/webkitpy/stepsequence.py&quot;, line 60, in _run
    step(tool, options).run(state)
  File &quot;/Users/chris_g4/Dev/Apple/WebKit-svn/WebKitTools/Scripts/webkitpy/steps/closepatch.py&quot;, line 36, in run
    self._tool.bugs.clear_attachment_flags(state[&quot;patch&quot;].id(), comment_text)
  File &quot;/Users/chris_g4/dev/apple/WebKit-svn/WebKitTools/Scripts/webkitpy/bugzilla.py&quot;, line 632, in clear_attachment_flags
    self.authenticate()
  File &quot;/Users/chris_g4/dev/apple/WebKit-svn/WebKitTools/Scripts/webkitpy/bugzilla.py&quot;, line 476, in authenticate
    &quot;index.cgi?GoAheadAndLogIn=1&quot;)
  File &quot;./autoinstall.cache.d/-7171706890285649816/mechanize-0.1.11.zip/mechanize-0.1.11/mechanize/_mechanize.py&quot;, line 209, in open
  File &quot;./autoinstall.cache.d/-7171706890285649816/mechanize-0.1.11.zip/mechanize-0.1.11/mechanize/_mechanize.py&quot;, line 236, in _mech_open
  File &quot;./autoinstall.cache.d/-7171706890285649816/mechanize-0.1.11.zip/mechanize-0.1.11/mechanize/_opener.py&quot;, line 191, in open
  File &quot;/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py&quot;, line 401, in _open
    &apos;_open&apos;, req)
  File &quot;/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py&quot;, line 361, in _call_chain
    result = func(*args)
  File &quot;./autoinstall.cache.d/-7171706890285649816/mechanize-0.1.11.zip/mechanize-0.1.11/mechanize/_http.py&quot;, line 756, in https_open
  File &quot;./autoinstall.cache.d/-7171706890285649816/mechanize-0.1.11.zip/mechanize-0.1.11/mechanize/_http.py&quot;, line 706, in do_open
urllib2.URLError: &lt;urlopen error [Errno 60] Operation timed out&gt;
stonewall:WebKit-svn chris_g4$</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>185088</commentid>
    <comment_count>1</comment_count>
      <attachid>47530</attachid>
    <who name="Joe Mason">joenotcharles</who>
    <bug_when>2010-01-27 07:18:57 -0800</bug_when>
    <thetext>Created attachment 47530
patch to limit number of login attempts

As a first cut, lets cap the number of login attempts so that noninteractive logins don&apos;t get stuck if the credentials are wrong</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>185353</commentid>
    <comment_count>2</comment_count>
      <attachid>47530</attachid>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-01-27 23:43:03 -0800</bug_when>
    <thetext>Comment on attachment 47530
patch to limit number of login attempts

Ok, but it seems like it should prompt you when the stored credentials don&apos;t work out.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>185367</commentid>
    <comment_count>3</comment_count>
      <attachid>47530</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-01-28 00:12:38 -0800</bug_when>
    <thetext>Comment on attachment 47530
patch to limit number of login attempts

Clearing flags on attachment: 47530

Committed r53976: &lt;http://trac.webkit.org/changeset/53976&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>185368</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2010-01-28 00:12:45 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>185388</commentid>
    <comment_count>5</comment_count>
    <who name="Chris Jerdonek">cjerdonek</who>
    <bug_when>2010-01-28 01:48:42 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; (From update of attachment 47530 [details])
&gt; Clearing flags on attachment: 47530
&gt; 
&gt; Committed r53976: &lt;http://trac.webkit.org/changeset/53976&gt;

Thanks a lot for addressing this so quickly!

I mentioned a couple other things though--

&gt; It&apos;s bad because there is no line of
&gt; output saying anything like &quot;Committed revision....&quot; -- only &quot;Processing
&gt; patch 47411 from bug 34060.&quot;  It&apos;s hard to know this means &quot;committed&quot;
&gt; because the next output line says it is parsing the Changelog.  It seems
&gt; like the ChangeLog would be parsed before it starts committing.  It
&gt; would also be good if the error says what remaining steps didn&apos;t
&gt; complete, so the user knows what remaining steps need to be manually
&gt; completed.

And Joe, you acknowledged that this is a &quot;first cut&quot;.

Could you preserve the other suggestions in a report that is not marked RESOLVED (or alternatively, re-open this one), or explain why the commit makes it unnecessary to address the other suggestions?  Thanks a lot.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>185466</commentid>
    <comment_count>6</comment_count>
    <who name="Joe Mason">joenotcharles</who>
    <bug_when>2010-01-28 06:52:09 -0800</bug_when>
    <thetext>I don&apos;t think I can reopen the bug, since I wasn&apos;t the submitter (at least, I don&apos;t see a link for that anywhere).  Can you file a new bug with a &quot;depends on&quot; field for this one, with the title something like &quot;webkit-patch does not clearly state whether it committed or not&quot; since the actual hang has been dealt with?  (Or else just reopen this one and change the title, if possible.)

This does point out a disturbing lack of atomicity - as I understand it, the patch was landed to svn ok, since your svn login was correct, but then the associated bug wasn&apos;t updated in bugzilla, since the bugzilla login was not.  Maybe it should login to bugzilla first and not push to svn unless that succeeded?  It could still fail if there&apos;s a timeout or bugzilla service outage, though

I guess the best approach would be, if any step failed, print out a nice big, &quot;WARNING: the following steps were completed: ... But the following were NOT, you need to do them manually: ...&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>185470</commentid>
    <comment_count>7</comment_count>
    <who name="Chris Jerdonek">cjerdonek</who>
    <bug_when>2010-01-28 07:05:33 -0800</bug_when>
    <thetext>(In reply to comment #6)
&gt; I don&apos;t think I can reopen the bug, since I wasn&apos;t the submitter (at least, I
&gt; don&apos;t see a link for that anywhere).  Can you file a new bug with a &quot;depends
&gt; on&quot; field for this one, with the title something like &quot;webkit-patch does not
&gt; clearly state whether it committed or not&quot; since the actual hang has been dealt
&gt; with?  (Or else just reopen this one and change the title, if possible.)
&gt; 
&gt; This does point out a disturbing lack of atomicity - as I understand it, the
&gt; patch was landed to svn ok, since your svn login was correct, but then the
&gt; associated bug wasn&apos;t updated in bugzilla, since the bugzilla login was not. 
&gt; Maybe it should login to bugzilla first and not push to svn unless that
&gt; succeeded?  It could still fail if there&apos;s a timeout or bugzilla service
&gt; outage, though
&gt; 
&gt; I guess the best approach would be, if any step failed, print out a nice big,
&gt; &quot;WARNING: the following steps were completed: ... But the following were NOT,
&gt; you need to do them manually: ...&quot;

Thanks, Joe.  I&apos;ll go ahead and create new bugs, etc. for you right now.

In the meantime, you can ask Maciej (or maybe Eric or someone) to grant you the editbugs privilege so you&apos;ll be able to reorganize/edit bugs yourself in the future.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>185473</commentid>
    <comment_count>8</comment_count>
    <who name="Chris Jerdonek">cjerdonek</who>
    <bug_when>2010-01-28 07:11:28 -0800</bug_when>
    <thetext>(In reply to comment #7)
&gt; Thanks, Joe.  I&apos;ll go ahead and create new bugs, etc. for you right now.

See the two bugs this depends on for the two issues remaining before this report should be marked resolved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>185500</commentid>
    <comment_count>9</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-01-28 08:36:22 -0800</bug_when>
    <thetext>In general, we prefer to have one patch per bug.  Bugs are cheap, so you might as well open new ones instead of reopening old ones.

These are all great suggestions, by the way.  We&apos;re very interested in improving the error handling for webkit-patch.  That&apos;s one of it&apos;s major weak points at the moment.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>185504</commentid>
    <comment_count>10</comment_count>
    <who name="Chris Jerdonek">cjerdonek</who>
    <bug_when>2010-01-28 08:46:39 -0800</bug_when>
    <thetext>(In reply to comment #9)
&gt; In general, we prefer to have one patch per bug.  Bugs are cheap, so you might
&gt; as well open new ones instead of reopening old ones.

I agree with one patch per bug.

In addition to reopening this one, I did open two new bugs.  I just reopened this one to serve as the master bug for the other two (since it is the original report of all the issues).  This report can be closed when the other two are resolved, without submitting further patches to this report.  Or you can close this now.  Whatever works best for you guys to keep track of the issues.  Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>185509</commentid>
    <comment_count>11</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2010-01-28 08:49:26 -0800</bug_when>
    <thetext>It&apos;s certainly fine to keep this bug open as a meta bug.  I was just spamming with generic advice.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>426940</commentid>
    <comment_count>12</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2011-06-24 10:01:01 -0700</bug_when>
    <thetext>Is this still an issue?</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>47530</attachid>
            <date>2010-01-27 07:18:57 -0800</date>
            <delta_ts>2010-06-10 20:43:26 -0700</delta_ts>
            <desc>patch to limit number of login attempts</desc>
            <filename>34193.patch</filename>
            <type>text/plain</type>
            <size>1691</size>
            <attacher name="Joe Mason">joenotcharles</attacher>
            
              <data encoding="base64">ZGlmZiAtLWdpdCBhL1dlYktpdFRvb2xzL0NoYW5nZUxvZyBiL1dlYktpdFRvb2xzL0NoYW5nZUxv
ZwppbmRleCBiZWRlYTY3Li43NzJjNTM0IDEwMDY0NAotLS0gYS9XZWJLaXRUb29scy9DaGFuZ2VM
b2cKKysrIGIvV2ViS2l0VG9vbHMvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTIgQEAKKzIwMTAtMDEt
MjcgIEpvZSBNYXNvbiAgPGptYXNvbkByaW0uY29tPgorCisgICAgICAgIFJldmlld2VkIGJ5IE5P
Qk9EWSAoT09QUyEpLgorCisgICAgICAgIExpbWl0IGxvZ2luIHJldHJpZXMgdG8gNQorICAgICAg
ICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9zaG93X2J1Zy5jZ2k/aWQ9MzQxOTMKKworICAgICAg
ICAqIFNjcmlwdHMvd2Via2l0cHkvYnVnemlsbGEucHk6CisKIDIwMTAtMDEtMjcgIEVyaWMgU2Vp
ZGVsICA8ZXJpY0B3ZWJraXQub3JnPgogCiAgICAgICAgIFJldmlld2VkIGJ5IERhcmluIEFkbGVy
LgpkaWZmIC0tZ2l0IGEvV2ViS2l0VG9vbHMvU2NyaXB0cy93ZWJraXRweS9idWd6aWxsYS5we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pKQorICAgICAgICAgICAgICAgIGVycm9yTWVzc2FnZSA9ICJCdWd6
aWxsYSBsb2dpbiBmYWlsZWQ6ICVzIiAlIG1hdGNoLmdyb3VwKDEpCisgICAgICAgICAgICAgICAg
IyByYWlzZSBhbiBleGNlcHRpb24gb25seSBpZiB0aGlzIHdhcyB0aGUgbGFzdCBhdHRlbXB0Cisg
ICAgICAgICAgICAgICAgaWYgYXR0ZW1wdHMgPCA1OgorICAgICAgICAgICAgICAgICAgICBsb2co
ZXJyb3JNZXNzYWdlKQorICAgICAgICAgICAgICAgIGVsc2U6CisgICAgICAgICAgICAgICAgICAg
IHJhaXNlIEV4Y2VwdGlvbihlcnJvck1lc3NhZ2UpCiAgICAgICAgICAgICBlbHNlOgogICAgICAg
ICAgICAgICAgIHNlbGYuYXV0aGVudGljYXRlZCA9IFRydWUKIAo=
</data>

          </attachment>
      

    </bug>

</bugzilla>