sapling/eden/fs
Wez Furlong 1e1d4eed29 eden: fail faster if launching eden fails in the test suite
Summary:
We're seeing failures like this in our CI system:

```
stderr:
test_create (eden.fs.integration.basic_test.BasicTest) ...
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

sudo: no tty present and no askpass program specified
error: edenfs is not running
ERROR
ERROR

======================================================================
ERROR: test_create (eden.fs.integration.basic_test.BasicTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "eden/fs/integration/basic_test.py", line 68, in test_create
    eden = self.init_git_eden()
  File "eden/fs/integration/lib/testcase.py", line 104, in init_git_eden
    return self.init_eden(repo_path)
  File "eden/fs/integration/lib/testcase.py", line 54, in init_eden
    inst.init(repo_path, *kwargs)
  File "eden/fs/integration/lib/edenclient.py", line 160, in init
    self.daemon_cmd(timeout)
  File "eden/fs/integration/lib/edenclient.py", line 174, in daemon_cmd
    self._wait_for_thrift(timeout)
  File "eden/fs/integration/lib/edenclient.py", line 99, in _wait_for_thrift
    raise Exception("edenfs didn't start within timeout of %s" % timeout)
Exception: edenfs didn't start within timeout of 10
```

This diff improves things by failing faster and printing a little more appropriate context.

Reviewed By: bolinfest

Differential Revision: D3523257

fbshipit-source-id: 14508a1b820d9d6c773713e2bb7c22955c5b2b66
2016-07-06 16:09:27 -07:00
..
cli Update _find_default_daemon_binary() because the binary is always named edenfs. 2016-06-28 11:02:05 -07:00
config add a BackingStore API 2016-06-13 15:16:29 -07:00
inodes eden: implement rename for files, add test for sed -i 2016-07-05 19:54:21 -07:00
integration eden: fail faster if launching eden fails in the test suite 2016-07-06 16:09:27 -07:00
model eden: introduce Tree::getEntryPtr(PathComponent) 2016-07-05 17:42:14 -07:00
overlay eden: implement rename for files, add test for sed -i 2016-07-05 19:54:21 -07:00
rocksdb Include build files that were inadvertently excluded from the initial export. 2016-05-12 16:08:34 -07:00
service buckification: remove builtin Buck thrift_library 2016-07-02 11:31:02 -07:00
store move importer/hg/ contents to store/hg 2016-06-20 13:40:02 -07:00