<?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>265030</bug_id>
          
          <creation_ts>2023-11-17 06:48:52 -0800</creation_ts>
          <short_desc>check-webkit-style errors with multiple git commits on a branch</short_desc>
          <delta_ts>2024-04-06 15:53:52 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=261789</see_also>
          <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="Sam Sneddon [:gsnedders]">gsnedders</reporter>
          <assigned_to name="Sam Sneddon [:gsnedders]">gsnedders</assigned_to>
          <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1993432</commentid>
    <comment_count>0</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2023-11-17 06:48:52 -0800</bug_when>
    <thetext>I originally thought this is what Bug 261789 was about, but that actually says &quot;I want to make a PR just for the most recent commit&quot;, and the errors from check-webkit-style are therefore incidental there.

We seemingly are passing the output from git-format-patch (an mbox) into the DiffParser, and unsurprisingly passing something that isn&apos;t a diff into the DiffParser fails:

To use the example from the other bug:

OpenSource % git webkit pr  --no-commit
ERROR: Unexpected diff format when parsing a chunk: &apos;From 7ba7f1664729c24f8bb6f7a24bda5a64b71b2deb Mon Sep 17 00:00:00 2001&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;From: Simon Fraser &lt;simon.fraser@apple.com&gt;&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;Date: Tue, 19 Sep 2023 17:45:18 -0700&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;Subject: [PATCH 2/2] Add UnifiedPDF feature flag, PDFPluginBase.* and fix the&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;Reviewed by NOBODY (OOPS!).&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;Add a feature flag for UnifiedPDF, which is a PDF plugin shared between platforms.&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;Add empty PDFPluginBase.h/mm files, and deal with the unified sources fallout.&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;* Source/WebKit/SourcesCocoa.txt:&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;* Source/WebKit/WebKit.xcodeproj/project.pbxproj:&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;* Source/WebKit/WebProcess/Plugins/PDF/PDFPluginBase.h: Copied from Source/WebKit/WebProcess/WebCoreSupport/WebBadgeClient.cpp.&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;* Source/WebKit/WebProcess/Plugins/PDF/PDFPluginBase.mm: Copied from Source/WebKit/WebProcess/WebCoreSupport/WebBadgeClient.cpp.&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;* Source/WebKit/WebProcess/WebCoreSupport/WebBadgeClient.cpp:&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;* Source/WebKit/WebProcess/WebCoreSupport/mac/WebContextMenuClientMac.mm:&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;* Source/WebKit/WebProcess/WebPage/Cocoa/WebPageCocoa.mm:&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;* Source/WebKit/WebProcess/WebPage/RemoteLayerTree/RemoteScrollbarsController.h:&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;* Source/WebKit/WebProcess/WebPage/RemoteLayerTree/RemoteScrollbarsController.mm:&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;(WebKit::RemoteScrollbarsController::shouldRegisterScrollbars const):&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;* Source/WebKit/webpushd/MockPushServiceConnection.mm:&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;* Source/WebKit/webpushd/PushService.mm:&apos;
ERROR: Unexpected diff format when parsing a chunk: &apos;* Source/WebKit/webpushd/PushServiceConnection.mm:&apos;

The bug here is that we&apos;re passing the output of git-format-patch, rather than git-diff.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1993538</commentid>
    <comment_count>1</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2023-11-17 11:33:38 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/20686</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1994645</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-11-24 06:49:13 -0800</bug_when>
    <thetext>&lt;rdar://problem/118772248&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2009059</commentid>
    <comment_count>3</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-01-30 12:56:27 -0800</bug_when>
    <thetext>Committed 273780@main (81bfcf01ed2b): &lt;https://commits.webkit.org/273780@main&gt;

Reviewed commits have been landed. Closing PR #20686 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2015776</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-02-21 09:14:24 -0800</bug_when>
    <thetext>Committed 272448.593@safari-7618-branch (4ab0984084ca): &lt;https://commits.webkit.org/272448.593@safari-7618-branch&gt;

Reviewed commits have been landed. Closing PR #1088 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2026552</commentid>
    <comment_count>5</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2024-04-06 15:53:52 -0700</bug_when>
    <thetext>*** Bug 268060 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>