[Webkit-unassigned] [Bug 283337] New: export-w3c-test-changes should have a better error message for merge conflicts
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Nov 18 17:15:46 PST 2024
https://bugs.webkit.org/show_bug.cgi?id=283337
Bug ID: 283337
Summary: export-w3c-test-changes should have a better error
message for merge conflicts
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Tools / Tests
Assignee: webkit-unassigned at lists.webkit.org
Reporter: karlcow at apple.com
CC: gsnedders at apple.com
Let's say you have an older version of the tests on the WebKit repo than the ones on web-platform-tests.
The user merged the code on WebKit side, but when it's time to export the changes, this doesn't work because there is a merge conflict.
```
karlcow at Oison OpenSource % export-w3c-test-changes -c -g HEAD -b 280749 -d /Volumes/cidrerie/code/web-platform-tests
Fetching web-platform-tests repository
Cleaning web-platform-tests master branch
Applying patch to web-platform-tests branch wpt-export-for-webkit-280749
WARNING: Failed to run "['git', 'apply', '--index', '/var/folders/fs/72c82yrd15sfs1sqp_yf8zh80000gn/T/tmpnjqk_f6fwpt_export_patch', '-3']" exit_code: 1 cwd: /Volumes/cidrerie/code/web-platform-tests
ERROR: Cannot create web-platform-tests local branch from the patch '/var/folders/fs/72c82yrd15sfs1sqp_yf8zh80000gn/T/tmpnjqk_f6fwpt_export_patch'
Keeping local branch wpt-export-for-webkit-280749
```
looking at the web-platform-test repo
```
karlcow at Oison web-platform-tests % git status
On branch wpt-export-for-webkit-280749
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
modified: clipboard-apis/async-navigator-clipboard-read-resource-load.https.html
Unmerged paths:
(use "git restore --staged <file>..." to unstage)
(use "git add <file>..." to mark resolution)
both modified: clipboard-apis/async-html-script-removal.https.html
```
Is probably a sign of a merge conflict for the export.
```
WARNING: Failed to run "['git', 'apply', '--index', '/var/folders/fs/72c82yrd15sfs1sqp_yf8zh80000gn/T/tmpnjqk_f6fwpt_export_patch', '-3']" exit_code: 1 cwd: /Volumes/cidrerie/code/web-platform-tests
```
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20241119/03818106/attachment.htm>
More information about the webkit-unassigned
mailing list