# 5 test fail every time w/fresh cloned repo

**URL:** <https://discuss.elastic.co/t/5-test-fail-every-time-w-fresh-cloned-repo/125268>\
**Category:** Kibana\
**Created:** [March 22, 2018, 9:02pm UTC](https://discuss.elastic.co/t/5-test-fail-every-time-w-fresh-cloned-repo/125268 "2018-03-22T21:02:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_princesscode](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/_princesscode/32/29151_2.png) [@\_princesscode](https://discuss.elastic.co/u/_princesscode)\
**Post date:** [March 22, 2018, 9:02pm UTC](https://discuss.elastic.co/t/5-test-fail-every-time-w-fresh-cloned-repo/125268/1 "2018-03-22T21:02:32Z")

</div>

Hi,

I'm trying to make sure I start with a solid baseline Kibana, but it seems like no matter what I do every single time I run `yarn test` the suite fails complete with no errors.

_ **I'm running `yarn test` against a freshly git cloned repo from github.** _

These are the steps I take:

```
1. git clone <kibana_repo>
2. git fetch --tags
3. git checkout tags/v6.2.3 -b v6.2.3
4. nvm install 6.12.2 && nvm use 6.12.2
5. yarn
6. yarn test

```

The example provided above was my attempt for tag release **6.2.3** , but I have also tried going through the same steps for tag release **v6.2.2** and branch **6.2**.

I also made sure to install all dependencies to be able to build kibana from source as well. I'm trying to do all this on **Debian 9.4**.

```
sudo apt git build-essential ruby-dev rpm gcc
gem install fpm -v 1.5.0

```

**ERRORS**

```
 1657 passing (1m)
  5 pending
  5 failing

  1) single test that uses esArchiver "before all" hook:
     Error: Command failed: /home/ansible/kibana/esvm/test_utils/es_test_cluster/branch-6.x/bin/elasticsearch -h

      at ChildProcess.exithandler (child_process.js:199:12)
      at maybeClose (internal/child_process.js:920:16)
      at Socket.<anonymous> (internal/child_process.js:351:11)
      at Pipe._handle.close [as _onclose] (net.js:497:12)

  2) single test that uses esArchiver "after all" hook:
     Error: Timeout of 10000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.

  3) createOrUpgradeSavedConfig() "before all" hook:
     Error: Command failed: /home/ansible/kibana/esvm/test_utils/es_test_cluster/branch-6.x/bin/elasticsearch -h

      at ChildProcess.exithandler (child_process.js:199:12)
      at maybeClose (internal/child_process.js:920:16)
      at Socket.<anonymous> (internal/child_process.js:351:11)
      at Pipe._handle.close [as _onclose] (net.js:497:12)

  4) uiSettings/routes "before all" hook: startServers:
     Error: Command failed: /home/ansible/kibana/esvm/test_utils/es_test_cluster/branch-6.x/bin/elasticsearch -h

      at ChildProcess.exithandler (child_process.js:199:12)
      at maybeClose (internal/child_process.js:920:16)
      at Socket.<anonymous> (internal/child_process.js:351:11)
      at Pipe._handle.close [as _onclose] (net.js:497:12)

  5) uiSettings/routes "after all" hook: stopServers:
     Error: Timeout of 10000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.

Warning: Task "simplemocha:all" failed. Use --force to continue.

Aborted due to warnings.
error An unexpected error occurred: "Command failed.
Exit code: 3
Command: sh
Arguments: -c grunt test
Directory: /home/ansible/kibana
Output:
".
info If you think this is a bug, please open a bug report with the information provided in "/home/ansible/kibana/yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

```

Does anyone have an idea on how to solve this issue?

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [March 22, 2018, 10:25pm UTC](https://discuss.elastic.co/t/5-test-fail-every-time-w-fresh-cloned-repo/125268/2 "2018-03-22T22:25:19Z")

</div>

I am also getting test failures by running `yarn test` on master

```auto
single test that uses esArchiver test:
     Error: expected 1 to equal 0
      at Assertion.assert (node_modules/expect.js/index.js:96:13)
      at Assertion.be.Assertion.equal (node_modules/expect.js/index.js:216:10)
      at Assertion.(anonymous function) [as be] (node_modules/expect.js/index.js:69:24)
      at Context.<anonymous> (src/functional_test_runner/ __tests__ /integration/with_es_archiver.js:78:40)
      at <anonymous>:null:null
      at process._tickDomainCallback (internal/process/next_tick.js:228:7)

```

I created this [issue](https://github.com/elastic/kibana/issues/17357).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 19, 2018, 10:25pm UTC](https://discuss.elastic.co/t/5-test-fail-every-time-w-fresh-cloned-repo/125268/3 "2018-04-19T22:25:34Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
