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

Issue 630707 link

Starred by 2 users

Issue metadata

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



Sign in to add a comment

git cl for Gerrit produces garbled unreadable warnings with a prompt on Mac

Project Member Reported by mark@chromium.org, Jul 22 2016

Issue description

Trying to land https://chromium-review.googlesource.com/c/362660/ from the command line:

--
% git cl land
Using 50% similarity for rename/copy detection. Override with --similarity.

r you. Are you sure you wish to bypass it?e, which can test and land changes fo 
ort.s Enter to continue, Ctrl+C to ab 
--

with the cursor flashing at me on the “s” after “ort.”

Yeah, so that’s something about the commit queue, I guess? Which we don’t have for Breakpad.

1. Fix the message so that it’s readable.
2. Don’t offer it in projects with no commit-queue

Perhaps this is an artifact of https://chromium-review.googlesource.com/c/362370/ not actually having landed yet? I used “git cl upload --gerrit” to create this code review on Gerrit.
 
Cc: -tandrii@chromium.org andyb...@chromium.org
Labels: -Pri-3 Pri-2
Owner: tandrii@chromium.org
Labels: Proj-Gerrit-Migration
Components: Infra>SDK
Thanks for the report!

1. I have no idea what's wrong with the message. It looks rather good in Python code:
https://cs.chromium.org/chromium/tools/depot_tools/git_cl.py?type=cs&q=%22which+can+test+and+land+changes+for+you.%22&sq=package:chromium&l=2274
So, it must be some weird interaction between python, git_cl and windows.

2. Sadly, your project "seems" to have Commit Queue, at least Gerrit UI shows it: https://screenshot.googleplex.com/A2DshNYevAY. I have no idea why.
Status: Started (was: Assigned)
And now there is no more gray "Commit-Queue" label on your review. Mind trying git cl land again?

Comment 7 by mark@chromium.org, Jul 25 2016

git cl land works now. Thanks! https://chromium.googlesource.com/breakpad/breakpad/+/f5638b8c2e309dc292571d8ee2035b3393ec5f5c

I’m still concerned about the message that didn’t print correctly. This was Mac, not Windows, and I’m using Terminal.app. There’s definitely something weird about Python raw_input and prompt strings with newlines or prompt strings wider than the terminal.
Cc: tandrii@chromium.org
Owner: ----
Status: Available (was: Started)
Summary: git cl for Gerrit produces garbled unreadable warnings with a prompt on Mac (was: git cl land for Gerrit gives me an unreadable message)
I ran unit tests of git_cl on Mac a few times (no CI for it, yet?) and they pass, though stdio streams are mocked. So, I also think the bug is somewhere in interaction of raw_input and terminal app.

This is not super high priority on my list tbh, but I'm likely biased as I don't use MacOS at all. If enough people star this issue (10+?), I'll have a look (but I prefer daily MacOS user does it instead :) ).

Comment 9 by aga...@chromium.org, Jul 25 2016

tandrii@: I'm already working on removing the CQ label config from All-Projects. First part here: https://chromium-review.googlesource.com/#/c/362700/ But that's a discussion for a different bug.
Status: WontFix (was: Available)
If this occurs again, please re-open the bug. We haven‘t seen this from any other users.

Comment 11 by mark@chromium.org, Nov 1 2016

Status: Untriaged (was: WontFix)
Still happening. See https://bugs.chromium.org/p/gerrit/issues/detail?id=4847.
Cc: -aga...@chromium.org
Labels: Milestone-Fishfood
Owner: aga...@chromium.org
Status: Assigned (was: Untriaged)
Labels: -Milestone-Fishfood Milestone-Afterglow
Labels: -Milestone-Afterglow
Removing Milestone-Afterglow, as it has ceased to have meaning. More refined milestones may be added back in the near future.
Owner: ----
Status: Available (was: Assigned)
Removing myself from all Pri-2/3 Gerrit issues and setting them to Available, to more accurately reflect the fact that there are a bunch of Pri-1 bugs open, and I'm splitting my time between codereview and codesearch.
Project Member

Comment 16 by sheriffbot@chromium.org, Jan 4

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Pri-2 Pri-3
Status: Available (was: Untriaged)

Sign in to add a comment