Closed Bug 1546748 Opened 6 years ago Closed 6 years ago

Commit Access (Level 1) for Jonathan Chan

Categories

(Infrastructure & Operations :: Infrastructure: LDAP, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dholbert, Assigned: jlin)

Details

Attachments

(1 file)

Jonathan Chan (:jyc) was previously granted L1 commit access (bug 1278638, bug 1278628), which I suspect has expired, and he's got some patches that he's planning on posting for review & running through Try soon. So, he'll need L1 access restored.

CC'ing him so he can attach his current Public Key (it's changed since the last time he requested access).

Thanks!

Moving over to Infra to reactivate the account. Will add ni's to Infra team after he adds the key.

Assignee: mozillamarcia.knous → infra
Component: Repository Account Requests → Infrastructure: LDAP
Product: mozilla.org → Infrastructure & Operations
QA Contact: jdow

Hello!

I'd like to request L1 commit access to run some patches through try, like Daniel said! I've attached my public SSH key to the bug.

I have read, and agree to abide by, the Commit Access Requirements.

Attached file id_rsa.pub
Flags: needinfo?(nli)
Flags: needinfo?(mpoessy)
Flags: needinfo?(jlin)
Flags: needinfo?(htusiime)
Assignee: infra → jlin
Flags: needinfo?(nli)
Flags: needinfo?(mpoessy)
Flags: needinfo?(jlin)
Flags: needinfo?(htusiime)
Attachment #9060602 - Attachment mime type: application/octet-stream → text/plain

hg enabled. updated ssh key to match the one attached in comment 3

I've also reset the password attached to this account email. You'll need to set up multifactor authentication in order to access phabricator if needed in the future.

Hi, Can you confirm you have access so we can close out the bug?

Flags: needinfo?(jyc)

Thanks!

When I attempted to use mach try, I got the following error:

[jyc@jc-trfx-arch gecko-2] (git pv/HEAD Bug 1370344 - Part 11: Add tests…)
→ ./mach try empty
remote: jyc@hg.mozilla.org: Permission denied (publickey).
Traceback (most recent call last):
  File "/home/jyc/.mozbuild/git-cinnabar/cinnabar/util.py", line 828, in run
    retcode = func(sys.argv[1:])
  File "/home/jyc/.mozbuild/git-cinnabar/git-remote-hg", line 32, in main
    helper = GitRemoteHelper(store, remote)
  File "/home/jyc/.mozbuild/git-cinnabar/cinnabar/remote_helper.py", line 128, in __init__
    self._repo = get_repo(remote)
  File "/home/jyc/.mozbuild/git-cinnabar/cinnabar/hg/repo.py", line 1138, in get_repo
    return bundlerepo(remote.url, HTTPReader(remote.url))
  File "/home/jyc/.mozbuild/git-cinnabar/cinnabar/util.py", line 610, in __init__
    self.fh = urlopen(url)
  File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python2.7/urllib2.py", line 429, in open
    response = self._open(req, data)
  File "/usr/lib/python2.7/urllib2.py", line 452, in _open
    'unknown_open', req)
  File "/usr/lib/python2.7/urllib2.py", line 407, in _call_chain
    result = func(*args)
  File "/usr/lib/python2.7/urllib2.py", line 1266, in unknown_open
    raise URLError('unknown url type: %s' % type)
URLError: <urlopen error unknown url type: ssh>
Error running mach:

    ['try', 'empty']

The error occurred in code that was called by the mach command. This is either
a bug in the called code itself or in the way that mach is calling it.

You should consider filing a bug for this issue.

If filing a bug, please include the full output of mach, including this error
message.

The details of the failure are as follows:

CalledProcessError: Command '(u'/usr/bin/git', u'push', u'hg::ssh://hg.mozilla.org/try', u'+HEAD:refs/heads/branches/default/tip')' returned non-zero exit status 128

  File "/home/jyc/projects/gecko-2/tools/tryselect/mach_commands.py", line 315, in try_empty
    return self.run(**kwargs)
  File "/home/jyc/projects/gecko-2/tools/tryselect/mach_commands.py", line 180, in run
    return mod.run(**kwargs)
  File "/home/jyc/projects/gecko-2/tools/tryselect/selectors/empty.py", line 19, in run
    closed_tree=closed_tree)
  File "/home/jyc/projects/gecko-2/tools/tryselect/push.py", line 131, in push_to_try
    vcs.push_to_try(commit_message)
  File "/home/jyc/projects/gecko-2/python/mozversioncontrol/mozversioncontrol/__init__.py", line 459, in push_to_try
    '+HEAD:refs/heads/branches/default/tip'), cwd=self.path)
  File "/usr/lib/python2.7/subprocess.py", line 190, in check_call
    raise CalledProcessError(retcode, cmd)

I'm using git-cinnabar installed via vcs-setup:

[jyc@jc-trfx-arch gecko-2] (git pv/HEAD Bug 1370344 - Part 11: Add tests…)
→ which git-cinnabar
/home/jyc/.mozbuild/git-cinnabar/git-cinnabar

The strange thing is I went to login.mozilla.com to try upload my public key again, but that page said that the SSH key already existed.

Do I have to configure what username git cinnabar will use when it tries to push to hg.mozilla.org?

Flags: needinfo?(jyc)

I'm not sure if there's anything extra for git-cinnabar, but you do indeed need to configure your SSH username.

In my $HOME/.ssh/config file, I have:

Host hg.mozilla.org
 User dholbert@mozilla.com

You probably need something similar.

(And if it's set up correctly, you should be able to run ssh hg.mozilla.org and see a success message printed to your terminal.)

Awesome, that worked! Thanks dholbert!

I will marked this as FIXED because it seems like this was the last obstacle. Thanks everyone for the help.

Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: