Commit Graph

90 Commits

Author SHA1 Message Date
Danielle Tomlinson
eab62662de chore: Setup appveyor for windows test execution 2019-01-17 18:43:13 +01:00
Mahmood Ali
b51ecacd23 remove lxc references 2019-01-08 09:28:20 -05:00
Mahmood Ali
8b53ff978a ci: use gotestsum for running tests
`gotestsum` has user friendlier output that emits final summary, also it can emit junit xml file for
automated analysis instead of current format that should significantly
ease automated analysis of CI.
2018-12-15 21:41:11 -05:00
Mahmood Ali
bb248e86cc dev: expand ... in go get
workaround a regression in 1.11.3

> We are aware of a functionality regression in "go get" when executed in GOPATH mode on an import path pattern containing "..." (e.g., "go get github.com/golang/pkg/..."), when downloading packages not already present in the GOPATH workspace. This is issue golang.org/issue/29241. It will be resolved in the next minor patch releases, Go 1.11.4 and Go 1.10.7, which we plan to release soon. We apologize for any disruption.
2018-12-14 09:42:23 -05:00
Mahmood Ali
744aab5751 tests: Lower package runtime
Lowering the runtime here to pre 7ca535aa90 expectations.

The longest package at the time `client/driver` shrunk significantly,
and now the longest packages take less than 5 minutes.

We do have some long running timed out projects due to a stuck shutdown,
but in completed jobs (though they failed), the longest packages took
less than 5 minutes.  The longest running packages in
https://travis-ci.org/hashicorp/nomad/jobs/464640776 were:

```
FAIL  github.com/hashicorp/nomad/nomad                                   268.089s
ok    github.com/hashicorp/nomad/drivers/docker                          203.903s  coverage:  68.8%   of  statements
ok    github.com/hashicorp/nomad/drivers/rkt                             132.104s  coverage:  65.0%   of  statements
ok    github.com/hashicorp/nomad/api                                     123.193s  coverage:  62.9%   of  statements
ok    github.com/hashicorp/nomad/command/agent                           74.657s   coverage:  72.3%   of  statements
ok    github.com/hashicorp/nomad/command                                 63.592s   coverage:  42.7%   of  statements
```
2018-12-11 09:35:26 -05:00
Danielle Tomlinson
4dfd952e05 make: Fix invocation of vault e2e test 2018-11-29 15:37:26 +01:00
Sevag Hanssian
0f211d11d5 webiste -> website 2018-11-19 18:50:42 -08:00
Mahmood Ali
7ca535aa90 increase timeout to 30 minutes
nomad/client take very long and exceed 15m sometimes:

In https://travis-ci.org/hashicorp/nomad/jobs/452990197 :

```
panic: test timed out after 15m0s

goroutine 4739 [running]:
testing.(*M).startAlarm.func1()
	/home/travis/.gimme/versions/go1.11.2.linux.amd64/src/testing/testing.go:1296 +0xfd
....
goroutine 4665 [select]:
github.com/hashicorp/nomad/vendor/google.golang.org/grpc.newClientStream.func5(0xc0003dd500, 0xc000420120, 0x2b3f86295588, 0xc000496810)
	/home/travis/gopath/src/github.com/hashicorp/nomad/vendor/google.golang.org/grpc/stream.go:287 +0xd7
created by github.com/hashicorp/nomad/vendor/google.golang.org/grpc.newClientStream
	/home/travis/gopath/src/github.com/hashicorp/nomad/vendor/google.golang.org/grpc/stream.go:286 +0x842
FAIL	github.com/hashicorp/nomad/client/driver	900.036s
```
2018-11-13 10:21:40 -05:00
Alex Dadgar
873cf30af1 seperate struct and proto generation 2018-11-07 11:51:03 -08:00
Alex Dadgar
57f40c7e3e Device manager
Introduce a device manager that manages the lifecycle of device plugins
on the client. It fingerprints, collects stats, and forwards Reserve
requests to the correct plugin. The manager, also handles device plugins
failing and validates their output.
2018-11-07 10:43:15 -08:00
Chris Baker
99beb3ed4c docs: added docs website tests using a simple wget --recursive 2018-10-08 14:44:23 -04:00
Alex Dadgar
088f51a330 skip e2e/vault if integration isn't set 2018-09-25 11:29:09 -07:00
Alex Dadgar
f7f5da204d build nomad in e2e tests 2018-09-19 10:38:20 -07:00
Alex Dadgar
ebe6fe208e run in matrix 2018-09-19 10:21:57 -07:00
Alex Dadgar
67ab8eff07 test automation 2018-09-19 10:18:10 -07:00
Michael Schurter
ec1d3e1000 Add a -race enabled build to Travis
Allow it to fail for now with the goal of making it the default build in
the future.
2018-08-27 14:15:56 -07:00
Chelsea Holland Komlo
f25149dce6 add dev dependency for generating protobufs 2018-08-06 11:43:24 -04:00
Michael Lange
7f36eb37c7 Remove phantomjs call from the makefile 2018-06-11 16:22:52 -07:00
Alex Dadgar
9973467de9 Travis tests binary built with generated files 2018-04-26 15:24:53 -07:00
Michael Schurter
a3dba1db78 rkt: test Stats() and always run tests
Remove the NOMAD_TEST_RKT flag as a guard for rkt tests. Still require
Linux, root, and rkt to be installed. Only check for rkt installation
once in hopes of speeding up rkt tests a bit.
2018-04-24 11:05:42 -07:00
Michael Schurter
29da24b77b test: build with mock_driver by default
`make release` and `make prerelease` set a `release` tag to disable
enabling the `mock_driver`
2018-04-18 14:45:33 -07:00
Michael Lange
fbe20ac2bf Run yarn silently during make ember-dist 2018-03-20 11:31:35 -07:00
Michael Schurter
82fb214f93 Fix generating static assets
Broke due to a change in go-bindata-assetfs
2018-03-19 15:52:38 -07:00
Preetha Appan
47c039cbbe Disables verbose mode in travis 2018-02-20 18:38:18 -06:00
Preetha Appan
552cf8073d Make tests in travis be verbose 2018-02-14 10:42:57 -06:00
Alex Dadgar
5fad2288b7 Switches to HashiCorp fork of jteeuwen/go-bindata.
We make a HashiCorp hard fork of the jteeuwen/go-bindata hard fork that
was replaced and diffed the code against a Dec 1, 2015 copy of the
original repository we had as a cross-check of that hard fork.

This replaces references to jteeuwen/go-bindata to point to the
HashiCorp fork.
2018-02-07 09:48:57 -08:00
Michael Lange
ab5cec4e1b Lock down yarn version 2018-01-17 09:02:04 -08:00
Preetha Appan
ebbbf432e4 Add changelog formatting to make dev 2018-01-03 16:38:41 -06:00
Preetha Appan
99e896da2d Linkify changelog issues 2017-12-12 15:52:58 -06:00
Preetha Appan
120f13bd78 Changes vendor.json to one dependency per line 2017-12-12 10:30:36 -06:00
Preetha Appan
7f6c7bee1a Removes variable value printer 2017-12-06 18:29:25 -06:00
Preetha Appan
c8b5b204ab Remove newline 2017-12-06 13:36:46 -06:00
Preetha Appan
805ade7d34 Makes tests on travis not run in verbose mode. 2017-12-06 13:30:31 -06:00
Alex Dadgar
d7071a008a drop gas 2017-12-04 13:07:24 -08:00
Charlie Voiselle
bf1e314d70 Makefile typos 2017-11-13 14:57:17 -05:00
Michael Lange
822cb6d334 Make make dev-ui work as expected 2017-11-10 13:27:48 -08:00
Michael Schurter
f84bd23e7a Fix git commit build flag 2017-11-03 16:01:01 -07:00
Preetha
ba32beb951 Merge pull request #3477 from hashicorp/verbose_test
Run test with verbose mode and log to a file
2017-11-01 15:02:27 -05:00
Preetha Appan
a187491693 Also search for panics and output 10 lines of context around it 2017-11-01 13:53:03 -05:00
Alex Dadgar
ed2beb1601 fix tags 2017-10-31 14:52:01 -07:00
Preetha Appan
a66fc52deb Run test with verbose mode and log to a file 2017-10-31 12:38:29 -05:00
Alex Dadgar
c873969555 document release procedure 2017-10-26 10:08:19 -07:00
Alex Dadgar
6526e2ee02 add static ui assets 2017-10-25 17:01:26 -07:00
Alex Dadgar
eedbe02f06 Merge pull request #3435 from hashicorp/f-travis-seperate
seperate linting from testing
2017-10-25 16:31:55 -07:00
Alex Dadgar
7fab0e1c9e seperate linting from testing 2017-10-24 10:52:26 -07:00
Alex Dadgar
ac6fc9b150 Build nomad before testing 2017-10-24 09:35:51 -07:00
Alex Dadgar
8accabcd87 move to consul freeport implementation 2017-10-23 16:51:40 -07:00
Alex Dadgar
e1b1465081 Standardize retrieving a free port into a helper package 2017-10-23 16:48:20 -07:00
Alex Dadgar
c231089cfd Only check scripts on linux and don't double lint 2017-10-19 16:49:58 -07:00
Alex Dadgar
d54cb92c70 check lxc properly 2017-10-19 15:53:19 -07:00