Closed Bug 1444840 Opened 7 years ago Closed 7 years ago

Detect when a patch fails to apply and prefix the pingback error_msg with a user-friendly message

Categories

(Conduit Graveyard :: Transplant, enhancement)

Production
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: imadueme, Assigned: glob)

References

Details

Attachments

(2 files)

When transplant fails to rebase commits (in the mozreview world) it detects this and provides a little helpful message in addition to the full error: https://hg.mozilla.org/hgcustom/version-control-tools/file/tip/autoland/autoland/autoland.py#l191 This check works for rebases but doesn't work for `hg import` which is used for all lando patches. When `hg import` fails the error message normally includes "hunks FAILED" or something to that extent. It would be nice if transplant detects this and does the same thing as the rebase failure. The user would first see: "We're sorry, Autoland could not apply your changes...." Instead of: "applying /tmp/tmpJccXwZ unable to find 'client.py' for patching (use ''--prefix'' to apply patch relative to the current directory) 1 out of 1 hunks FAILED"
See Also: → 1444841
this wasn't caused by the changes in bug 1436803, removing dependency.
No longer blocks: 1436803
I set it to block bug 1436803 because for that story to be complete we will most likely need this bug to be resolved first. Do you know a better way to signal that another bug is depending on this one?
following on from a discussion about tracking in another bug, i'll mark this as blocking bug 1441728.
Assignee: nobody → glob
Blocks: 1441728
Comment on attachment 8958364 [details] autoland: use a friendlier error message for patch-based merge conflicts (bug 1444840) https://reviewboard.mozilla.org/r/227302/#review233250
Attachment #8958364 - Flags: review?(smacleod) → review+
Comment on attachment 8958363 [details] ansible: don't run server-only changes in docker (bug 1444840) https://reviewboard.mozilla.org/r/227300/#review233304 Eek - unwanted data loss!
Attachment #8958363 - Flags: review?(gps) → review+
Pushed by bjones@mozilla.com: https://hg.mozilla.org/hgcustom/version-control-tools/rev/f115bc96c7b7 ansible: don't run server-only changes in docker r=gps https://hg.mozilla.org/hgcustom/version-control-tools/rev/946206f145d6 autoland: use a friendlier error message for patch-based merge conflicts r=smacleod
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Product: MozReview → Conduit
Product: Conduit → Conduit Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: