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)
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"
this wasn't caused by the changes in bug 1436803, removing dependency.
No longer blocks: 1436803
Reporter | ||
Comment 2•7 years ago
|
||
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 hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 6•7 years ago
|
||
mozreview-review |
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 7•7 years ago
|
||
mozreview-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
Updated•7 years ago
|
Product: MozReview → Conduit
Updated•11 months ago
|
Product: Conduit → Conduit Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•