Closed Bug 1739594 Opened 3 years ago Closed 3 years ago

mach commands spawn `hg outgoing` which may ask for ssh key etc

Categories

(Firefox Build System :: Mach Core, defect)

defect

Tracking

(firefox96 fixed)

RESOLVED FIXED
96 Branch
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?

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 whyhg` is deciding to hit the network?

Flags: needinfo?(jcristau)

~/.hgrc contains this:

[paths]
try = ssh://hg.mozilla.org/try
default-push = ssh://hg.mozilla.org/integration/mozilla-inbound
Flags: needinfo?(jcristau)

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.

~/.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: nobody → mhentges
Status: NEW → ASSIGNED

hg outgoing always hits the network.

Unless an upstream is specified, we should be able to detect which files
are changed on our local branch without hitting the network.

Pushed by mhentges@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c3ad16eab9cc
Don't hit network to resolve VCS-changed files r=ahal
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 96 Branch
Regressions: 1740620
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: