mach commands spawn `hg outgoing` which may ask for ssh key etc
Categories
(Firefox Build System :: Mach Core, defect)
Tracking
(firefox96 fixed)
Tracking | Status | |
---|---|---|
firefox96 | --- | fixed |
People
(Reporter: jcristau, Assigned: mhentges)
References
Details
Attachments
(1 file)
Somehow every time I run mach (even just --help
) it runs hg outgoing -r . --quiet --template "{file_adds % '{file}\n'}{file_dels % '{file}\n'}{file_mods % '{file}\n'}" default
in the background, which in turns runs ssh hg.mozilla.org 'hg -R integration/mozilla-inbound serve --stdio'
(because for whatever reason my ~/.hgrc
has inbound as default-push
), which then means my ssh agent asks for a passphrase. Can we avoid hitting the network here if possible?
Assignee | ||
Comment 1•3 years ago
|
||
Hmm, this is likely our "should exceptions be reported to Sentry" logic.
Can you share your .hg/hgrc
(or ~/.hgrc, if you repo config is somehow in there) so I can better-understand why
hg` is deciding to hit the network?
Reporter | ||
Comment 2•3 years ago
|
||
~/.hgrc contains this:
[paths]
try = ssh://hg.mozilla.org/try
default-push = ssh://hg.mozilla.org/integration/mozilla-inbound
Reporter | ||
Comment 3•3 years ago
|
||
I've disabled mach telemetry for now which gets rid of the spurious hg outgoing
calls. And yes this is from the "should exceptions be reported to Sentry" logic.
Assignee | ||
Comment 4•3 years ago
|
||
~/.hgrc contains this:
Aside: why is your repo-local config in your home directory? ~/.hgrc
is referring to /home/jcristau/.hgrc
, is it not?
I'd expect ~/.hgrc
to contain your enabled extensions, username, config, etc.
Assignee | ||
Updated•3 years ago
|
Comment 5•3 years ago
|
||
hg outgoing always hits the network.
Assignee | ||
Comment 6•3 years ago
|
||
Unless an upstream is specified, we should be able to detect which files
are changed on our local branch without hitting the network.
Comment 8•3 years ago
|
||
bugherder |
Description
•