# Random build appearing

**URL:** <https://travis-ci.community/t/random-build-appearing/4115>\
**Category:** Node.js\
**Created:** [July 8, 2019, 1:01pm UTC](https://travis-ci.community/t/random-build-appearing/4115 "2019-07-08T13:01:02Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![GregTheGreek](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/gregthegreek/32/2671_2.png) [@GregTheGreek](https://travis-ci.community/u/GregTheGreek)\
**Post date:** [July 8, 2019, 1:01pm UTC](https://travis-ci.community/t/random-build-appearing/4115/1 "2019-07-08T13:01:02Z")

</div>

My CI runs have a couple random builds appearing in my stages called `Node/*lts`, they’re not defined so I’m not sure where they’re coming from. They’re also causing my entire CI to fail

[https://travis-ci.org/ChainSafe/lodestar/builds/555768024](https://travis-ci.org/ChainSafe/lodestar/builds/555768024)

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [July 8, 2019, 1:09pm UTC](https://travis-ci.community/t/random-build-appearing/4115/2 "2019-07-08T13:09:10Z")

</div>

It’s defined here:

> <https://github.com/ChainSafe/lodestar/blob/da694bac61b79977f74d2ef0c908d96275e7e935/.travis.yml#L2-L3>

---

<div class="post-metadata">

**Author:** ![GregTheGreek](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/gregthegreek/32/2671_2.png) [@GregTheGreek](https://travis-ci.community/u/GregTheGreek)\
**Post date:** [July 8, 2019, 1:20pm UTC](https://travis-ci.community/t/random-build-appearing/4115/3 "2019-07-08T13:20:36Z")

</div>

Thats considered a build? Doesn’t that dictate the nodejs version?

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [July 8, 2019, 1:25pm UTC](https://travis-ci.community/t/random-build-appearing/4115/4 "2019-07-08T13:25:46Z")

</div>

The Node.js version is appearing in the job listing because these are jobs that do not have “name” overridden. These are not “random” jobs; they are as defined in your configuration.

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [July 8, 2019, 1:31pm UTC](https://travis-ci.community/t/random-build-appearing/4115/5 "2019-07-08T13:31:49Z")

</div>

If you don’t want these default jobs in your build, remove `-` (and fix indentations) from:

> <https://github.com/ChainSafe/lodestar/blob/da694bac61b79977f74d2ef0c908d96275e7e935/.travis.yml#L13>

  

> <https://github.com/ChainSafe/lodestar/blob/da694bac61b79977f74d2ef0c908d96275e7e935/.travis.yml#L25>

  

> <https://github.com/ChainSafe/lodestar/blob/da694bac61b79977f74d2ef0c908d96275e7e935/.travis.yml#L28>

These hyphens introduce a new item in the list, and creates a default job from the lines immediately above each one of them.

---

<div class="post-metadata">

**Author:** ![GregTheGreek](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/gregthegreek/32/2671_2.png) [@GregTheGreek](https://travis-ci.community/u/GregTheGreek)\
**Post date:** [July 8, 2019, 1:57pm UTC](https://travis-ci.community/t/random-build-appearing/4115/6 "2019-07-08T13:57:26Z")

</div>

Based on the documentation [here](https://docs.travis-ci.com/user/languages/javascript-with-nodejs/) it shows that `node_js` should specify the version of node, there is no indication of it creating a build

```auto
language: node_js
node_js:
  - "7"

```

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [July 8, 2019, 2:36pm UTC](https://travis-ci.community/t/random-build-appearing/4115/7 "2019-07-08T14:36:09Z")

</div>

What do you expect to happen if this snippet does not define a build? The very purpose of `.travis.yml` is to define a build and jobs contained therein.

---

<div class="post-metadata">

**Author:** ![GregTheGreek](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/gregthegreek/32/2671_2.png) [@GregTheGreek](https://travis-ci.community/u/GregTheGreek)\
**Post date:** [July 8, 2019, 2:46pm UTC](https://travis-ci.community/t/random-build-appearing/4115/8 "2019-07-08T14:46:20Z")

</div>

I would expect that the version of node\_js i use would be 7 (or lts in my config) as per the documentation. I do not expect it to run as a build.

---

<div class="post-metadata">

**Author:** ![GregTheGreek](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/gregthegreek/32/2671_2.png) [@GregTheGreek](https://travis-ci.community/u/GregTheGreek)\
**Post date:** [July 8, 2019, 2:52pm UTC](https://travis-ci.community/t/random-build-appearing/4115/9 "2019-07-08T14:52:42Z")

</div>

Node\_js is not defined in my jobs, yet it still becomes one.

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [July 8, 2019, 3:01pm UTC](https://travis-ci.community/t/random-build-appearing/4115/10 "2019-07-08T15:01:13Z")

</div>

> [@GregTheGreek](#):
>
> I would expect that the version of node\_js i use would be 7 (or lts in my config) as per the documentation. I do not expect it to run as a build.

Without running a build, what good is setting the Node.js version? I’m really having a hard time understanding what you are trying to do.

---

<div class="post-metadata">

**Author:** ![GregTheGreek](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/gregthegreek/32/2671_2.png) [@GregTheGreek](https://travis-ci.community/u/GregTheGreek)\
**Post date:** [July 8, 2019, 3:10pm UTC](https://travis-ci.community/t/random-build-appearing/4115/11 "2019-07-08T15:10:02Z")

</div>

@BanzaiMan

Based on this configuration:

> <https://github.com/ChainSafe/lodestar/blob/greg/feature/lerna/.travis.yml>

The following builds appear:  
[https://travis-ci.org/ChainSafe/lodestar](https://travis-ci.org/ChainSafe/lodestar)

What i expected:

```auto
Lint and check types
- Lodestar
- Eth2.0 Types 

Unit Tests
- Lodestar
- Eth2.0 Types 

E2e Tests
- Lodestar

Spec Tests
- Lodestar

```

What I get:

```auto
Lint and check types
- Node.js:lts/*
- Lodestar
- Eth2.0 Types 

Unit Tests
- Lodestar
- Eth2.0 Types 

E2e Tests
- Node.js:lts/*
- Lodestar

Spec Tests
- Node.js:lts/*
- Lodestar

```

Under my `job` i never defined `Node.js:lts/*`, rather thats the language and version I want to boot for all the listed jobs.

How do i remove `Node.js:lts/*`

---

<div class="post-metadata">

**Author:** ![BanzaiMan](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/banzaiman/32/67_2.png) [@BanzaiMan](https://travis-ci.community/u/BanzaiMan)\
**Post date:** [July 8, 2019, 5:58pm UTC](https://travis-ci.community/t/random-build-appearing/4115/12 "2019-07-08T17:58:31Z")

</div>

I’ve already explained that in [Random build appearing](https://travis-ci.community/t/random-build-appearing/4115/5).
