Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove accent from first name of clems4ever contributor. #284

Closed
wants to merge 1 commit into from
Closed

Remove accent from first name of clems4ever contributor. #284

wants to merge 1 commit into from

Conversation

clems4ever
Copy link
Contributor

Review bot fails to apply reviews (with ./support/apply-review.py script) because of the accent in my first name.

@clems4ever
Copy link
Contributor Author

Hello @tillt , there is an issue with the review bot applying my review: https://reviews.apache.org/r/66621/. I think it is due to the accent in my first name.
So, I created this review to remove the accent. Can you please merge it? Thanks.

@bmahler
Copy link
Contributor

bmahler commented Apr 19, 2018

@clems4ever can you post the error? Is this an issue in rbt or our python wrapper script?

@clems4ever
Copy link
Contributor Author

clems4ever commented Apr 19, 2018

@bmahler , here is the error from the python script in this review https://reviews.apache.org/r/66621/.

FAIL: Failed to apply the current review.

Failed command: python.exe .\\support\\apply-reviews.py -n -r 66621

All the build artifacts available at: http://dcos-win.westus.cloudapp.azure.com/mesos-build/review/66621

Relevant logs:

apply-review-66621-stderr.log:


Traceback (most recent call last):
  File ".\support\apply-reviews.py", line 447, in <module>
    main()
  File ".\support\apply-reviews.py", line 442, in main
    reviewboard(options)
  File ".\support\apply-reviews.py", line 432, in reviewboard
    apply_review(options)
  File ".\support\apply-reviews.py", line 163, in apply_review
    commit_patch(options)
  File ".\support\apply-reviews.py", line 292, in commit_patch
    shell(cmd, options['dry_run'])
  File ".\support\apply-reviews.py", line 147, in shell
    error_code = subprocess.call(command, stderr=subprocess.STDOUT, shell=True)
  File "C:\Program Files\Python27\lib\subprocess.py", line 168, in call
    return Popen(*popenargs, **kwargs).wait()
  File "C:\Program Files\Python27\lib\subprocess.py", line 390, in __init__
    errread, errwrite)
  File "C:\Program Files\Python27\lib\subprocess.py", line 610, in _execute_child
    args = '{} /c "{}"'.format (comspec, args)
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 23: ordinal not in range(128)

@clems4ever
Copy link
Contributor Author

Apparently the character \xe9 is é as stated here: https://stackoverflow.com/questions/6327494/what-is-the-following-unicode-string-xe9. So, I really think this is due to my first name.

@bmahler
Copy link
Contributor

bmahler commented Apr 19, 2018

We should try to fix apply-reviews.py. Looks related to this discussion?
https://bugs.python.org/issue1759845

@kaysoky
Copy link
Member

kaysoky commented Apr 19, 2018

Here's the associated JIRA: https://issues.apache.org/jira/browse/MESOS-7658

@andyleejordan
Copy link
Contributor

@bmahler Really the only fix is to convert our Python scripts to Python 3. (I tried to get someone at the Hackathon to do this 😉 but failed 😦).

@gkleiman
Copy link
Contributor

I also had to change my name from Gastón to Gaston to stop the Windows reviewbot from failing to apply my patches.

@clems4ever
Copy link
Contributor Author

Thank you guys for your feedbacks. Since it might take some time to rewrite the script in Python 3 I think it's better to merge this PR so that I can move forward with my review in the review board. What do you think?

@andyleejordan
Copy link
Contributor

@clems4ever Yes, and I'm sorry 😭

@clems4ever
Copy link
Contributor Author

@andschwa , no problem. Do you have the rights to merge it?

@bbannier
Copy link
Contributor

@clems4ever I don't believe fixing that database is going to make support/apply_reviews.py work. I think you need to reconfigure the name you use to create git commit you put onto reviewboard -- this can be done for just the Mesos repo with git config user name ....

Sorry for the inconvenience :/

@clems4ever
Copy link
Contributor Author

@bbannier , apparently apply-review.py retrieves data from the profile in the review board. I updated my profile and now the author is correct (I mean without accent).
Thank you for the help.

@clems4ever clems4ever closed this Apr 20, 2018
@clems4ever clems4ever deleted the clems4ever-contributor branch May 16, 2018 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
6 participants