Open Bug 1471624 Opened 2 years ago Updated 2 years ago

Empty hosts file causes long delay for first connection

Categories

(Firefox Build System :: Mach Core, enhancement)

enhancement
Not set

Tracking

(Not tracked)

People

(Reporter: mixedpuppy, Unassigned)

References

Details

seems osx hardware upgrades can at times result in an empty hosts file.  This results in the inability to run tests.  mach test (etc.) should probably verify hosts is not empty, or at least drop an error in console to check the hosts file if connections fail.
I don't think this is something for mach, and definitely not something for Marionette. But as we talked on IRC we should not wait that long for the initial connection.
Summary: harware upgrades cause testing failure due to empty hosts file → Empty hosts file causes long delay for first connection
(In reply to Henrik Skupin (:whimboo) [away 07/08 - 07/22] from comment #1)
> I don't think this is something for mach, and definitely not something for
> Marionette.

I don't know why you don't think it fits in with mach.  mach test could simply check if "localhost" resolves or not.  That could even just be a part of mach bootstrap, but under normal circumstances a dns check should be quick.
If that was a general problem for you for running any kind of test then please file a new bug in the Mach component. As filed this bug is Marionette only, which is outside of any mach proposed feature.
Ensuring the test environment is in a sane state falls beyond the
scope of Marionette.  The Marionette client communicates with Firefox
over a transparent socket stream connection and we don’t want to
make assumptions about the DNS setup on the particular system at
this level.
Component: Marionette → Mach Core
Product: Testing → Firefox Build System
Version: Version 3 → unspecified
You need to log in before you can comment on or make changes to this bug.