Commit Graph

3833 Commits

Author SHA1 Message Date
Sean Chittenden
47146b9b87 Fix the unit tests for TestPrettyPrintOff
A different failing test masked that this wasn't even being run.

Pointy Hat: sean- for testing first on Travis in a branch vs verifying locally
2016-05-11 15:48:43 -07:00
Alex Dadgar
c612bb8276 Merge pull request #1166 from hashicorp/f-job-diff2
Job Diff structure
2016-05-11 15:38:56 -07:00
Alex Dadgar
b0d3f1ba28 Add service diff 2016-05-11 15:25:59 -07:00
Sean Chittenden
1e8d6eb283 Fix unit tests for TestPrettyPrintBare 2016-05-11 15:20:57 -07:00
Sean Chittenden
81f9d42c15 Merge pull request #1165 from hashicorp/f-append-newline
Append a newline when pretty-printing the response
2016-05-11 13:10:37 -07:00
Sean Chittenden
7a2bd507e7 Merge pull request #1160 from hashicorp/f-freebsd
Stubbed out raw_exec support for *NIX platforms

OOB LGTM: @diptanu
2016-05-11 12:54:27 -07:00
Diptanu Choudhury
a84ace5136 Merge pull request #1164 from hashicorp/fix-unmount
Removing directories only if we could successfully unmount them
2016-05-11 12:51:34 -07:00
Alex Dadgar
52f1fbdaac changelog 2016-05-11 11:12:18 -07:00
Alex Dadgar
a71053b4ab contextual diff 2016-05-11 11:11:26 -07:00
Sean Chittenden
534156d9eb Update tests for pretty printing that includes a newline.
Add a test verifying that pretty printing can be disabled, too.
2016-05-11 10:55:01 -07:00
Alex Dadgar
fefc55906e Job diff using generic structures 2016-05-10 22:23:34 -07:00
Sean Chittenden
08aa82b483 Append a newline when pretty-printing the response
Instead of typing `curl http://foo/v1/nodes?pretty; echo` to inject a
newline into your terminal, now pretty will provide its own newline.
2016-05-10 15:46:20 -07:00
Diptanu Choudhury
dc38906809 Removing directories only if we could successfully unmount them 2016-05-10 14:57:16 -07:00
Alex Dadgar
6247fa29c9 Merge pull request #1153 from hashicorp/b-task-resource-update
Check if network asks have changed when checking task updates
2016-05-09 18:46:43 -07:00
Alex Dadgar
0f71d7a4f7 Merge pull request #1161 from hashicorp/d-json-corrections
Json clean up + fixed variable names
2016-05-09 17:04:05 -07:00
Alex Dadgar
cbadf03208 Merge pull request #1162 from hashicorp/d-telemetry
Describe key metrics
2016-05-09 17:03:47 -07:00
Alex Dadgar
fb1ac29d27 describe interval 2016-05-09 17:03:04 -07:00
Alex Dadgar
ca60ce0b61 Json clean up + fixed variable names 2016-05-09 16:23:25 -07:00
Alex Dadgar
a28213b48b Document key metrics 2016-05-09 16:04:41 -07:00
Sean Chittenden
a91f41ce14 Establish a floor of one core for the number of cores.
In most cases the upstream library [shirou/gopsutil](https://github.com/shirou/gopsutil)
needs to be fixed.
2016-05-09 12:22:40 -07:00
Sean Chittenden
fd9bcabaa8 Emit various debugging information with the results of the fingerprinter 2016-05-09 12:21:51 -07:00
Sean Chittenden
32ade79a62 cgroups are a decidedly Linux-only feature. Build and test as such. 2016-05-09 11:56:35 -07:00
Sean Chittenden
be7cdf97d1 Decrease the log-level from WARN to DEBUG when fingerprinting GCE
This brings the logging here inline with the remaining fingerprinting code
2016-05-09 11:56:35 -07:00
Sean Chittenden
1d108a77d6 Rename cgroup_universal.go to cgroup_default.go
Universal implies it is applicable to Linux, whereas default implies
the fallthrough for the non-Linux build targets.
2016-05-09 11:56:35 -07:00
Sean Chittenden
e5272cea2b Move network detection code to Linux-specific build
Non-Linux build targets get the current default of 0.  This will allow
platform specific fingerprinting for network capabilities.
2016-05-09 11:56:35 -07:00
Sean Chittenden
0fdb16af99 Stub out FreeBSD support for Nomad
Compiles, but is not functional (yet).
2016-05-09 11:56:35 -07:00
Sean Chittenden
9d4e37af81 Merge pull request #1156 from hashicorp/f-x-sys-unix
Use x/sys/unix vs syscall package where appropriate
2016-05-09 11:56:00 -07:00
Sean Chittenden
b84bf392df Rename the windows exec driver file to be the default exec driver.
No functional difference in practice, but results in a more clean build.
2016-05-09 11:32:05 -07:00
Diptanu Choudhury
902550ca7c Merge pull request #1159 from capone212/master
Enable consul script checks for raw_exec driver
2016-05-09 08:28:03 -07:00
capone212
e616e5446d Added java 2016-05-09 17:27:01 +03:00
capone212
23c5b584a4 Reverted blank line 2016-05-09 17:23:38 +03:00
capone212
2a4bea364c Fixed CR defect 2016-05-09 17:22:01 +03:00
capone212
f6460ebdd4 Merge https://github.com/capone212/nomad 2016-05-09 13:36:12 +03:00
capone212
a363479fb0 Added consul script check support for raw_exec driver 2016-05-09 13:35:19 +03:00
Sean Chittenden
6a0d3ed8c5 Bump Go to 1.6.2 for Travis (just added) 2016-05-08 22:12:45 -07:00
Diptanu Choudhury
cad5bea177 Merge pull request #1158 from bodymindarts/patch-1
fix docs for specifying multiple config files
2016-05-08 19:37:29 -07:00
Sean Chittenden
f70c9ee849 Re-sort functions back to the same ordering as master 2016-05-08 11:46:20 -07:00
Sean Chittenden
72005b7d25 Remove stray debugging fmt.Printf 2016-05-08 11:43:43 -07:00
Sean Chittenden
22aecf1402 Revert making UniversalExecutor.wait() platform specific 2016-05-08 11:21:34 -07:00
Sean Chittenden
b53183a332 Revert making UniversalExecutor.wait() platform specific 2016-05-08 11:17:27 -07:00
Justin Carter
c5513deb25 -config needed to pass multiple config files
When trying the command above with just 1 -config option specified only the config from the first file was picked up.
2016-05-08 10:53:46 +02:00
Sean Chittenden
46a2d5de0b Revert making UniversalExecutor.wait() platform specific 2016-05-08 00:13:28 -07:00
Sean Chittenden
92bad38729 Catch up with error message drift in docker 2016-05-07 15:46:44 -07:00
Sean Chittenden
55385ab060 Bump Go to 1.6.1 2016-05-07 13:30:04 -07:00
Sean Chittenden
16b0ad4263 Break out the windows vs UNIX Fingerprinter
cgroup's are applicable to Windows and will require a more specific abstraction.  Stub out the difference.  The *NIX exec drivers will likely be broken out over time (e.g. *BSD and Solaris).
2016-05-07 12:37:15 -07:00
Sean Chittenden
2ffef3d48d Fully enumerate build targets
Exclude broken build targets from gox
2016-05-07 12:12:04 -07:00
Sean Chittenden
3a0d6040f1 Fix executor builds on Windows 2016-05-07 12:07:27 -07:00
Sean Chittenden
a8122e8ef3 Vendor golang.org/x/sys/windows 2016-05-07 12:06:42 -07:00
Sean Chittenden
1acc8a3355 Implement a Windows-specific UniversalExecutor wait() 2016-05-07 12:00:44 -07:00
Sean Chittenden
7763edeaae Windows needs a stub chroot command 2016-05-07 11:59:55 -07:00