New issue
Advanced search Search tips

Issue 678172 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 704993
Owner: ----
Closed: Apr 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Feature

Blocked on:
issue 600469



Sign in to add a comment

Commit Queue patch apply failure error message could be improved

Project Member Reported by chrishall@chromium.org, Jan 4 2017

Issue description

Describe infrastructure request/issue:
Today a developer (dominickn) reported an issue with the CL he was working on
https://codereview.chromium.org/2589503002/

In particular the IOS trybot had failed despite all other trybots passing,
and a commit-queue error was shown:

https://codereview.chromium.org/2589503002/#msg25

"Failed to apply patch for
chrome/browser/android/webapk/webapk_update_data_fetcher.cc:
While running git apply --index -p1;
  error: patch failed:
chrome/browser/android/webapk/webapk_update_data_fetcher.cc:108
  error: chrome/browser/android/webapk/webapk_update_data_fetcher.cc: patch does
not apply

Patch:       chrome/browser/android/webapk/webapk_update_data_fetcher.cc
Index: chrome/browser/android/webapk/webapk_update_data_fetcher.cc
diff --git a/chrome/browser/android/webapk/webapk_update_data_fetcher.cc
b/chrome/browser/android/webapk/webapk_update_data_fetcher.cc
index
a5a20efebe050d58bcb9d3074a7fff60b8fd0524..53a944e6afaae8181b5262efa0eb85924cd964e5
100644
--- a/chrome/browser/android/webapk/webapk_update_data_fetcher.cc
+++ b/chrome/browser/android/webapk/webapk_update_data_fetcher.cc
@@ -108,10 +108,10 @@ void WebApkUpdateDataFetcher::FetchInstallableData() {
     return;
 
   InstallableParams params;
-  params.ideal_icon_size_in_dp =
-      ShortcutHelper::GetIdealHomescreenIconSizeInDp();
-  params.minimum_icon_size_in_dp =
-      ShortcutHelper::GetMinimumHomescreenIconSizeInDp();
+  params.ideal_icon_size_in_px =
+      ShortcutHelper::GetIdealHomescreenIconSizeInPx();
+  params.minimum_icon_size_in_px =
+      ShortcutHelper::GetMinimumHomescreenIconSizeInPx();
   params.check_installable = true;
   params.fetch_valid_icon = true;
   InstallableManager::CreateForWebContents(web_contents());
"

The ios trybot was a red herring, an issue related to libyuv (a separate bug should be filled for this) against whoever owns that trybot.


The real issue is that the patch failed to apply when the CQ tried to land it, as the message says.
However the patch applied cleanly on the trybots... why?

The trybots will fall back to a 3-way merge, whereas the CQ will not.
This is likely for good reasons, as a 3-way merge can do the wrong thing.


I think we should make the above CQ error message clearer to explain this different briefly to developers, to make it clear this is a commit queue apply patch failure, and inform them that they need to rebase and resubmit.


 
Blockedon: 600469
Labels: -Restrict-View-Google Pri-3 Type-Feature
Status: Available (was: Untriaged)
We recently removed 3-way merge, so you are correct. That said, this only applies to Rietveld, and not to Gerrit CQ, and hence this is between P3 and WontFix once we switch to Gerrit ( issue 600469 ).
Owner: chrishall@chromium.org
Do we have an idea of when the Gerrit change will land?

If this is just a simple text change, and the Gerrit change isn't landing "right now", then I'm happy to make it myself if you can point me in the right direction.
Many projects are now on Gerrit. Of course, chromium will only start dogfood this month, so perhaps end of Q1 is a realistic estimate.

That said, patches are welcome! Start looking here: https://chrome-internal.googlesource.com/infra/infra_internal/+/master/commit_queue/pending_manager/rietveld.py#326 
Status: Assigned (was: Available)
Cc: -serg...@chromium.org
Components: -Infra>CQ Infra>Platform>CQdaemon
Owner: ----
Status: Available (was: Assigned)
Project Member

Comment 8 by bugdroid1@chromium.org, Mar 27 2017

The following revision refers to this bug:
  https://chrome-internal.googlesource.com/infra/infra_internal/+/af9b202bd2a4c57742dd374030e02404f93002cd

commit af9b202bd2a4c57742dd374030e02404f93002cd
Author: Andrii Shyshkalov <tandrii@chromium.org>
Date: Mon Mar 27 17:40:03 2017

Mergedinto: 704993
Status: Duplicate (was: Available)
Actually, I've enabled 3-way merge last week, deduping and marking as fixed.

Sign in to add a comment