New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 648343 link

Starred by 5 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 2
Type: Bug



Sign in to add a comment

bot_update should fail if there is no diff after rebasing gerrit patch

Project Member Reported by tandrii@chromium.org, Sep 19 2016

Issue description

Consider bot_update for Gerrit, which has just rebased patch against HEAD in the following two cases:

1. If patch is empty - ie no files modified in it (example).
2. If patch has already been committed, but CQ is not aware of it (like here) or say tryjob is pending for too long time.

In both cases, the diff will be empty after rebase. Such patches should be rejected to avoid developers and tooling confusion by failing with PATCH_FAILURE exit code and a clear message.
 
Description: Show this description
Summary: bot_update should fail if there is no diff after rebasing gerrit patch (was: bot_update should there is no diff after rebasing gerrit patch)
Labels: -Pri-1 Milestone-Launch Pri-2

Comment 4 by aga...@chromium.org, Jan 13 2017

This is to preserve compatibility with Rietveld. If bot_update downloaded a patch from Rietveld that had already landed for some reason, it would fail to apply the patch. Gerrit on the other hand downloads the branch, rebases it out of existence, and then continues on happily.

Fixing this will provide compatibility with Rietveld behavior, reduce extra load, and keep troopers sane.
Labels: -Milestone-Launch Milestone-Afterglow
This isn't a customer-facing issue, really -- the test results will still be correct, it will just be wasting a bit of bot time that would otherwise be freed up. This isn't launch blocking, but should be addressed soon anyway.

Comment 6 by aga...@chromium.org, Jun 16 2017

Cc: hinoka@chromium.org aga...@chromium.org
 Issue 733792  has been merged into this issue.
Cc: tandrii@chromium.org dpranke@chromium.org
 Issue 737125  has been merged into this issue.
Cc: -andyb...@chromium.org
Labels: -Milestone-Afterglow
Removing Milestone-Afterglow, as it has ceased to have meaning. More refined milestones may be added back in the near future.
Cc: zchen@google.com iannucci@chromium.org
 Issue 706377  has been merged into this issue.
Cc: -iannucci@chromium.org iannu...@google.com

Sign in to add a comment