<?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>283824</bug_id>
          
          <creation_ts>2024-11-29 05:55:43 -0800</creation_ts>
          <short_desc>[webkitpy] git-webkit revert --no-pr --no-bug fails with &quot;Please verify that the issue exists&quot;</short_desc>
          <delta_ts>2024-12-11 00:44:07 -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>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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Adrian Perez">aperez</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ben_schwartz</cc>
    
    <cc>bfan2</cc>
    
    <cc>gsnedders</cc>
    
    <cc>jbedard</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2078162</commentid>
    <comment_count>0</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2024-11-29 05:55:43 -0800</bug_when>
    <thetext>Trying to use “./Scripts/Tools/git-webkit revert --no-pr --no-bug &lt;commit&gt;”
produces a traceback (note that I left the bug URL/title empty because I did
not want to create a bug in this case):

% ./Tools/Scripts/git-webkit revert --no-pr --no-bug cdbaf316924a9586fe251b1006041b334d0c7fac 
This issue will track the revert and should not be the issue of the commit(s) to be reverted.
Enter issue URL or title of new issue (reason for the revert):
Traceback (most recent call last):
  File &quot;/home/aperez/devel/WebKit-2.46/./Tools/Scripts/git-webkit&quot;, line 63, in &lt;module&gt;
    sys.exit(program.main(
             ^^^^^^^^^^^^^
  File &quot;/home/aperez/devel/WebKit-2.46/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/__init__.py&quot;, line 185, in main
    return parsed.main(
           ^^^^^^^^^^^^
  File &quot;/home/aperez/devel/WebKit-2.46/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/revert.py&quot;, line 286, in main
    issue = cls.get_issue_info(args, repository, commit_objects, commit_issues, **kwargs)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File &quot;/home/aperez/devel/WebKit-2.46/Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/revert.py&quot;, line 139, in get_issue_info
    sys.stderr.write(&apos;Could not fetch {} from link. Please verify that the issue exists.\n&apos;.format(issue.tracker.NAME))
                                                                                                   ^^^^^^^^^^^^^
AttributeError: &apos;NoneType&apos; object has no attribute &apos;tracker&apos;
%</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2079626</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-12-06 05:56:12 -0800</bug_when>
    <thetext>&lt;rdar://problem/141044493&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2079694</commentid>
    <comment_count>2</comment_count>
    <who name="Brianna Fan">bfan2</who>
    <bug_when>2024-12-06 11:34:31 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/37553</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2079707</commentid>
    <comment_count>3</comment_count>
    <who name="Brianna Fan">bfan2</who>
    <bug_when>2024-12-06 12:20:26 -0800</bug_when>
    <thetext>Example of new behavior: 

```bfan@mac-422505 OpenSource % ../../OpenSource/Tools/Scripts/git-webkit revert ecd3a7a716062c31212fa77d43e71416fba41f66 --no-issue --no-pr
Enter a reason for the revert: Testing revert without issue
Switched to a new branch &apos;eng/Testing-revert-without-issue&apos;
Created the local development branch &apos;eng/Testing-revert-without-issue&apos;
  Running status to find changed, added, or removed files.
  Reviewing diff to determine which lines changed.
  Extracting affected function names from source files.
  Change author: Brianna Fan &lt;bfan2@apple.com&gt;.
[eng/Testing-revert-without-issue 71fd4549d416] Unreviewed, reverting 287415@main (ecd3a7a71606) Include a Bugzilla link (OOPS!). Include a Radar link (OOPS!).
 Date: Fri Dec 6 12:03:26 2024 -0800
 1 file changed, 2 insertions(+)
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2080225</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-12-09 09:44:05 -0800</bug_when>
    <thetext>Committed 287555@main (dec8a5a19822): &lt;https://commits.webkit.org/287555@main&gt;

Reviewed commits have been landed. Closing PR #37553 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2080772</commentid>
    <comment_count>5</comment_count>
    <who name="Adrian Perez">aperez</who>
    <bug_when>2024-12-11 00:44:07 -0800</bug_when>
    <thetext>(In reply to Brianna Fan from comment #3)
&gt; Example of new behavior: 
&gt; 
&gt; ```bfan@mac-422505 OpenSource % ../../OpenSource/Tools/Scripts/git-webkit
&gt; revert ecd3a7a716062c31212fa77d43e71416fba41f66 --no-issue --no-pr
&gt; Enter a reason for the revert: Testing revert without issue
&gt; Switched to a new branch &apos;eng/Testing-revert-without-issue&apos;
&gt; Created the local development branch &apos;eng/Testing-revert-without-issue&apos;
&gt;   Running status to find changed, added, or removed files.
&gt;   Reviewing diff to determine which lines changed.
&gt;   Extracting affected function names from source files.
&gt;   Change author: Brianna Fan &lt;bfan2@apple.com&gt;.
&gt; [eng/Testing-revert-without-issue 71fd4549d416] Unreviewed, reverting
&gt; 287415@main (ecd3a7a71606) Include a Bugzilla link (OOPS!). Include a Radar
&gt; link (OOPS!).
&gt;  Date: Fri Dec 6 12:03:26 2024 -0800
&gt;  1 file changed, 2 insertions(+)
&gt; ```

Lovely, thanks a lot for looking into this ✨</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>