Title: [291966] trunk/Tools
- Revision
- 291966
- Author
- [email protected]
- Date
- 2022-03-28 08:13:14 -0700 (Mon, 28 Mar 2022)
Log Message
Issues with WPT exporter
https://bugs.webkit.org/show_bug.cgi?id=238446
Also addresses https://bugs.webkit.org/show_bug.cgi?id=216330
and https://bugs.webkit.org/show_bug.cgi?id=216603
Reviewed by Youenn Fablet.
Fix issues with WPT exporter:
- Ignore *-expected.html files
- Perform a 3-way merge when applying patch
- Add a newline at the end of the patch
* Scripts/webkitpy/w3c/test_exporter.py:
(WebPlatformTestExporter._strip_ignored_files_from_diff):
(WebPlatformTestExporter.create_branch_with_patch):
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (291965 => 291966)
--- trunk/Tools/ChangeLog 2022-03-28 14:51:41 UTC (rev 291965)
+++ trunk/Tools/ChangeLog 2022-03-28 15:13:14 UTC (rev 291966)
@@ -1,3 +1,22 @@
+2022-03-28 Noam Rosenthal <[email protected]>
+
+ Issues with WPT exporter
+ https://bugs.webkit.org/show_bug.cgi?id=238446
+
+ Also addresses https://bugs.webkit.org/show_bug.cgi?id=216330
+ and https://bugs.webkit.org/show_bug.cgi?id=216603
+
+ Reviewed by Youenn Fablet.
+
+ Fix issues with WPT exporter:
+ - Ignore *-expected.html files
+ - Perform a 3-way merge when applying patch
+ - Add a newline at the end of the patch
+
+ * Scripts/webkitpy/w3c/test_exporter.py:
+ (WebPlatformTestExporter._strip_ignored_files_from_diff):
+ (WebPlatformTestExporter.create_branch_with_patch):
+
2022-03-28 Aakash Jain <[email protected]>
[ews] Update contributors in ews unit tests
Modified: trunk/Tools/Scripts/webkitpy/w3c/test_exporter.py (291965 => 291966)
--- trunk/Tools/Scripts/webkitpy/w3c/test_exporter.py 2022-03-28 14:51:41 UTC (rev 291965)
+++ trunk/Tools/Scripts/webkitpy/w3c/test_exporter.py 2022-03-28 15:13:14 UTC (rev 291966)
@@ -52,7 +52,7 @@
WPT_PR_URL = "%s/pull/" % WPT_GH_URL
WEBKIT_EXPORT_PR_LABEL = 'webkit-export'
-EXCLUDED_FILE_SUFFIXES = ['-expected.txt', '.worker.html', '.any.html', '.any.worker.html', 'w3c-import.log']
+EXCLUDED_FILE_SUFFIXES = ['-expected.txt', '-expected.html', '.worker.html', '.any.html', '.any.worker.html', 'w3c-import.log']
class WebPlatformTestExporter(object):
@@ -179,7 +179,7 @@
if include_file:
new_lines.append(line)
- return b'\n'.join(new_lines)
+ return b'\n'.join(new_lines) + b'\n'
def write_git_patch_file(self):
_, patch_file = self._filesystem.open_binary_tempfile('wpt_export_patch')
@@ -304,7 +304,7 @@
self._git.delete_branch(self._branch_name)
self._git.checkout_new_branch(self._branch_name)
try:
- self._git.apply_mail_patch([patch])
+ self._git.apply_mail_patch([patch, '-3'])
except Exception as e:
_log.warning(e)
return False
Modified: trunk/Tools/Scripts/webkitpy/w3c/test_exporter_unittest.py (291965 => 291966)
--- trunk/Tools/Scripts/webkitpy/w3c/test_exporter_unittest.py 2022-03-28 14:51:41 UTC (rev 291965)
+++ trunk/Tools/Scripts/webkitpy/w3c/test_exporter_unittest.py 2022-03-28 15:13:14 UTC (rev 291966)
@@ -138,7 +138,7 @@
'checkout master',
'reset hard origin/master',
'checkout new branch wpt-export-for-webkit-1234',
- 'apply_mail_patch patch.temp ',
+ 'apply_mail_patch patch.temp -3',
'commit -a -m WebKit export of https://bugs.webkit.org/show_bug.cgi?id=1234',
'remote ',
'remote add USER https://[email protected]/USER/wpt.git',
@@ -166,7 +166,7 @@
'checkout master',
'reset hard origin/master',
'checkout new branch wpt-export-for-webkit-1234',
- 'apply_mail_patch patch.temp ',
+ 'apply_mail_patch patch.temp -3',
'commit -a -m WebKit export of https://bugs.webkit.org/show_bug.cgi?id=1234',
'remote ',
'remote add USER https://[email protected]/USER/wpt.git',
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes