RESOLVED FIXED298688
[export-w3c-test-changes] should gracefully handle the 'nothing to commit' case
https://bugs.webkit.org/show_bug.cgi?id=298688
Summary [export-w3c-test-changes] should gracefully handle the 'nothing to commit' case
Brianna Fan
Reported 2025-09-10 16:17:12 PDT
When we don't have changes to export to WPT, such as with an import/rebase commit, using `export-w3c-test-changes` can result in an error message. In most cases, we actually don't want to return an error since this behaviour is correct and expected (we don't need to export what already exists on the remote). ``` Checking for WPT changes Fetching web-platform-tests repository Cleaning web-platform-tests master branch Switched to branch 'master' Your branch is up to date with 'origin/master'. HEAD is now at 8274ec185c Apply word-space to leading spaces if white-space is pre Applying patch to web-platform-tests branch wpt-export-for-webkit-298214 Switched to a new branch 'wpt-export-for-webkit-298214' Performing three-way merge... Applied patch to 'fonts/math/css-units.woff' cleanly. Performing three-way merge... Applied patch to 'fonts/math/largeop-displayoperatorminheight1250.woff' cleanly. Performing three-way merge... Applied patch to 'fonts/math/largeop-displayoperatorminheight3000-2AFF-axisheight1000.woff' cleanly. Performing three-way merge... Applied patch to 'fonts/math/radical-rtlm.woff' cleanly. Performing three-way merge... Applied patch to 'fonts/math/stretchy-text-direction-asymetrical.woff' cleanly. On branch wpt-export-for-webkit-298214 nothing to commit, working tree clean ERROR: No changes to commit! Exiting... ERROR: Cannot create web-platform-tests local branch from the patch '/var/folders/pt/kpszr_vd45q6xp8tbsv80rs80000gn/T/tmpoi4lsly9wpt_export_patch' Keeping local branch wpt-export-for-webkit-298214 ```
Attachments
Radar WebKit Bug Importer
Comment 1 2025-09-10 16:17:23 PDT
Sam Sneddon [:gsnedders]
Comment 2 2025-09-11 11:33:21 PDT
Brianna Fan
Comment 3 2025-09-11 15:39:52 PDT
I don't think that's actually the failure point. If we got here, it means the patch we created is non-empty (we create the patch based on the WebKit PR, not compared to WPT ToT). It's actually about not returning an error when there are no changes to commit. I'm just wary of any cases that are actually failures that could possibly also result in no changes no commit.
Brianna Fan
Comment 4 2025-09-11 15:58:02 PDT
EWS
Comment 5 2025-09-19 10:34:28 PDT
Committed 300242@main (ef97d89d09d3): <https://commits.webkit.org/300242@main> Reviewed commits have been landed. Closing PR #50626 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.