`Invalid remote name: "hg::ssh://hg.mozilla.org/try"` error running ./mach try (fuzzy|chooser) on a git repo
Categories
(Developer Infrastructure :: Try, defect)
Tracking
(firefox69 fixed)
Tracking | Status | |
---|---|---|
firefox69 | --- | fixed |
People
(Reporter: anatal, Assigned: glandium)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
When I try to run ./mach try (fuzzy|chooser) on a m-c git repo, I get the following error:
Invalid remote name "hg::ssh://hg.mozilla.org/try": Invalid remote name: "hg::ssh://hg.mozilla.org/try"
error: failed to push some refs to 'hg::ssh://hg.mozilla.org/try'
Error running mach:
['try', 'fuzzy']
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 can invoke |./mach busted| to check if this issue is already on file. If it
isn't, please use |./mach busted file| to report it. If |./mach busted| is
misbehaving, you can also inspect the dependencies of bug 1543241.
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/local/bin/git', u'push', u'hg::ssh://hg.mozilla.org/try', u'+HEAD:refs/heads/branches/default/tip')' returned non-zero exit status 1
File "/Users/anatal/projects/mozilla/gecko-dev/tools/tryselect/mach_commands.py", line 276, in try_fuzzy
return self.run(**kwargs)
File "/Users/anatal/projects/mozilla/gecko-dev/tools/tryselect/mach_commands.py", line 180, in run
return mod.run(**kwargs)
File "/Users/anatal/projects/mozilla/gecko-dev/tools/tryselect/selectors/fuzzy.py", line 298, in run
closed_tree=closed_tree)
File "/Users/anatal/projects/mozilla/gecko-dev/tools/tryselect/push.py", line 131, in push_to_try
vcs.push_to_try(commit_message)
File "/Users/anatal/projects/mozilla/gecko-dev/python/mozversioncontrol/mozversioncontrol/init.py", line 460, in push_to_try
'+HEAD:refs/heads/branches/default/tip'), cwd=self.path)
File "/usr/local/Cellar/python@2/2.7.16/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 190, in check_call
raise CalledProcessError(retcode, cmd)
Updated•5 years ago
|
git-cinnabar
is required to push to try - see https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Simple_Firefox_build/Linux_and_MacOS_build_preparation#Getting_Started. and https://github.com/glandium/git-cinnabar/wiki/Mozilla:-A-git-workflow-for-Gecko-development
python bootstrap.py --vcs=git
should ensure you have git-cinnabar installed.
We should probably check that the cinnabar command is installed with git --list-cmds=others
and throw a better error message prior to interacting with hg::ssh://
repositories if it isn't.
Comment 2•5 years ago
|
||
That check should already exist:
https://searchfox.org/mozilla-central/source/python/mozversioncontrol/mozversioncontrol/__init__.py#454
So somehow git cinnabar --version
isn't failing, but we don't recognize the path. I'm not sure how this could have happened. Maybe try uninstalling/re-installing cinnabar?
Updated•5 years ago
|
Comment 3•5 years ago
|
||
Btw I think this issue is local to your environment, so not sure it should block mach-busted
. But maybe I don't understand how that's supposed to work.
Assignee | ||
Comment 4•5 years ago
|
||
(In reply to Byron Jones ‹:glob› 🎈 from comment #1)
We should probably check that the cinnabar command is installed with
git --list-cmds=others
There are valid setups where cinnabar and remote-hg don't appear in that list, but in git --list-cmds=main
.
Assignee | ||
Comment 5•5 years ago
|
||
The git version shipped in some versions of OSX is patched by apple in a
way such that doing git push hg::ssh://...
fails with an error message
like Invalid remote name "hg::ssh://...
.
So instead, we define a named remote via inline configuration, and use
that remote's name for the push.
Assignee | ||
Updated•5 years ago
|
Comment 7•5 years ago
|
||
Backed out changeset 21826fb830de (bug 1554987) for py2 and py3 failures. CLOSED TREE
Log:
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=253178381&repo=autoland&lineNumber=297
Push with failures:
https://treeherder.mozilla.org/#/jobs?repo=autoland&revision=21826fb830de97ce71635ad784acf5a0b0bf237c
Backout:
https://hg.mozilla.org/integration/autoland/rev/e4f9cc8d6314af0b810cad2bebee1327d3af5f4e
Assignee | ||
Updated•5 years ago
|
Comment 9•5 years ago
|
||
bugherder |
Updated•2 years ago
|
Description
•