Alex Dadgar
5a3df2ed89
Merge pull request #2888 from hashicorp/b-fix-allocrunner-test
...
Fix TestAllocRunner_TaskLeader_StopTG and unrelated races
2017-07-22 11:44:04 -07:00
Alex Dadgar
46c8bec9b0
faster vaultclient
2017-07-21 19:38:37 -07:00
Alex Dadgar
4dd5d943c7
remove root requirement on consul integration check
2017-07-21 19:32:41 -07:00
Alex Dadgar
219ef8a640
parallel deploymentwatcher tests
2017-07-21 19:23:24 -07:00
Alex Dadgar
e9a1397f34
Merge pull request #2889 from hashicorp/f-parallel-api
...
Parallel API tests
2017-07-21 18:05:23 -07:00
Alex Dadgar
789751d84e
Parallel
2017-07-21 16:33:04 -07:00
Michael Schurter
d840fc8c95
Fix tr race by not sharing alloc/task
...
prestart only needs the original alloc/task so pass their pointers in.
Task updates may concurrently replace the pointer on tr.
2017-07-21 16:17:42 -07:00
Michael Schurter
a22cfa8387
Minor test race fix
2017-07-21 16:17:23 -07:00
Michael Schurter
9a7a1d8c13
Fix race by not accessing tr.task from ar
2017-07-21 16:16:53 -07:00
Michael Schurter
2e9a1e3fa6
Remove unneeded saveTaskRunnerState method
...
Collapse it into the one place it's called
2017-07-21 16:16:02 -07:00
Alex Dadgar
61f4f01151
Merge pull request #2887 from hashicorp/f-parallel-driver
...
Parallel tests: driver, executor, driver/logging
2017-07-21 16:15:28 -07:00
Alex Dadgar
d3409d10c4
Remove comment
2017-07-21 15:55:43 -07:00
Alex Dadgar
0eaea964ed
Improve shutdown code
2017-07-21 15:44:51 -07:00
Michael Schurter
996ce9286e
Fix test race by locking around ar.tasks access
2017-07-21 14:25:51 -07:00
Michael Schurter
8d1d8eac46
Fix handle race
2017-07-21 14:00:32 -07:00
Michael Schurter
5f40901422
Fix more test races
2017-07-21 14:00:21 -07:00
Michael Schurter
b9ba447399
Fixup a few more even rarer test races
2017-07-21 13:43:32 -07:00
Michael Schurter
38cb2021dd
Always interpolate task before calling with Consul
...
Also switch to returning a copy of the task to avoid races between
altering the Task and persitence.
2017-07-21 13:37:16 -07:00
Michael Schurter
6e80a8ee39
Fix TestAllocRunner_TaskLeader_StopTG
...
Also make alloc runner tests less racy. Basically every alloc runner
test used to have races with `upd.{Count,Allocs}`
2017-07-21 13:37:16 -07:00
Alex Dadgar
5c6b4e7cc3
vendor
2017-07-21 13:29:08 -07:00
Alex Dadgar
e509661cf9
executor and logging pkg
2017-07-21 12:14:54 -07:00
Alex Dadgar
a8f440bade
Vendor go-plugin
2017-07-21 12:11:21 -07:00
Alex Dadgar
7c433a1767
Parallel
2017-07-21 12:06:39 -07:00
Alex Dadgar
0fabb5902a
Merge pull request #2881 from hashicorp/f-parallel-command
...
Parallel nomad/command pkg tests
2017-07-21 11:04:19 -07:00
Alex Dadgar
081a23309d
Release v0.6.0-rc2
2017-07-21 10:02:03 -07:00
Michael Schurter
e8505e6c8d
Forgot to bump version to rc2
2017-07-21 09:39:01 -07:00
Alex Dadgar
c355250fca
Force parallelism on travis
2017-07-20 22:47:10 -07:00
Alex Dadgar
56f9cf86df
Speed up client startup
2017-07-20 22:34:24 -07:00
Alex Dadgar
d7fee07ebc
Parallel
2017-07-20 21:24:21 -07:00
Alex Dadgar
c106df9215
Switch to in-process agent
2017-07-20 21:07:32 -07:00
Alex Dadgar
c8ad00aff6
Undo verbose and parallel on tests
2017-07-20 20:28:31 -07:00
Alex Dadgar
d019eed363
Merge pull request #2874 from hashicorp/f-command-agent-tests
...
Parallelize the command/agent tests and add new test agent
2017-07-20 20:27:49 -07:00
Alex Dadgar
5df9be0ccb
Fix bootstrapping and waiting
2017-07-20 20:15:37 -07:00
Alex Dadgar
c1dddd747e
Release v0.6.0-rc2
2017-07-20 17:55:48 -07:00
Alex Dadgar
15fad96c21
Merge pull request #2868 from hashicorp/f-feedback
...
Variety of UX fixes
2017-07-20 17:43:42 -07:00
Alex Dadgar
da13d5a61c
Fix test
2017-07-20 17:42:58 -07:00
Alex Dadgar
2db57d6351
changelog
2017-07-20 17:36:47 -07:00
Alex Dadgar
40ca1298b3
Multiple matched objects now treated as an error condition.
2017-07-20 17:31:07 -07:00
Michael Schurter
4fa5bc5041
Merge pull request #2876 from hashicorp/b-special-case-unix-epoch
...
Don't display UNIX epoch dates
2017-07-20 17:26:25 -07:00
Michael Schurter
7ab09dc756
Mention #2878 in changelog
2017-07-20 17:17:45 -07:00
Michael Schurter
0d7f7e2b9d
Merge pull request #2878 from hashicorp/b-save-state
...
Fix state handling on restart
2017-07-20 17:16:46 -07:00
Michael Schurter
93edbb8c17
Mention #2877 in changelog
2017-07-20 17:14:46 -07:00
Alex Dadgar
afbcb8f55f
Merge pull request #2875 from hashicorp/b-discount
...
Handle destructive changes before placements
2017-07-20 17:12:05 -07:00
Michael Schurter
b5881eef0f
Merge pull request #2877 from kmalec/add-group-name-env
...
Pass task group name as NOMAD_GROUP_NAME environment variable
2017-07-20 16:51:10 -07:00
Karel Malec
cf985f011c
Pass task group name as NOMAD_GROUP_NAME environment variable
2017-07-21 01:22:54 +02:00
Michael Schurter
6b2cb6bb23
Don't display UNIX epoch dates
...
Submitted times are UNIX epoch for jobs created before 0.6 which is
confusing in the CLI. Display nothing instead (formatted as "<none>").
2017-07-20 15:43:00 -07:00
Alex Dadgar
184bfd4836
Better comment
2017-07-20 12:31:08 -07:00
Alex Dadgar
248315a2d9
Handle destructive changes before placements
...
This PR updates the generic scheduler to handle destructive changes
before handling placements. This is important because the destructive
change may be due to a lowering of resources. If this is the case, the
handling of the destructive changes first may make it possible for the
placement to happen.
To reason about this imagine there is one node with CPU = 500.
If the group originally had:
* `count = 1`
* `cpu = 400`
And then the job was updated such that the group had:
* `count = 4`
* `cpu = 120`
If the original alloc isn't discounted first, nothing would be able to
place.
2017-07-20 12:24:27 -07:00
Alex Dadgar
ce265e0aff
Update full node test to test more advanced case
2017-07-20 12:23:40 -07:00
Alex Dadgar
09c8ee621b
Destroy tasks that are part of terminal alloc
2017-07-20 12:02:04 -07:00