Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AllocRunner v2 Feature Branch PR #4792

Merged
merged 152 commits into from
Oct 17, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
152 commits
Select commit Hold shift + click to select a range
deede95
Initial V2 alloc runner
dadgar Jun 22, 2018
15c0731
artifact task hook
schmichael Jun 27, 2018
0892aca
begin adding AllocRunner.Update
schmichael Jun 28, 2018
53a4b3f
example redis job "runs" on arv2! see below
schmichael Jun 29, 2018
2d90ec6
Copy TR.Config vals to TR
schmichael Jun 29, 2018
124ad51
tr: start update/shutdown logic
schmichael Jun 29, 2018
256bc5a
tr: don't lock for immutable fields
schmichael Jun 29, 2018
1e24cd6
tr: skip error/success saving
schmichael Jun 29, 2018
07d5bac
tr: cleanup main loop and shutdown hook impl
schmichael Jun 29, 2018
6250509
remove unused allocrunner shim
schmichael Jul 11, 2018
370d92f
pass statedb into allocrunnerv2
schmichael Jul 11, 2018
4107afd
reimplement success state for tr hooks and state persistence
schmichael Jul 11, 2018
bfbc95e
fix hclog level
schmichael Jul 11, 2018
d3d590f
tr: fix setting done in existing hooks
schmichael Jul 11, 2018
eea820e
tr: pass context to hooks
schmichael Jul 11, 2018
fdd3bb6
tr: improve skip log line
schmichael Jul 11, 2018
427eab5
vault hook
dadgar Jul 12, 2018
781c498
address comments
dadgar Jul 13, 2018
711d09e
Template hook
dadgar Jul 13, 2018
05a0565
remove comment
dadgar Jul 16, 2018
912d361
Hook renames
dadgar Jul 17, 2018
c19ea97
comments
dadgar Jul 17, 2018
8030341
Implement lifecycle hooks on the task runner
dadgar Jul 16, 2018
7e60f0b
client: implement all-or-nothing alloc restoration
schmichael Jul 13, 2018
457250b
wip split event emitting and state transitions
schmichael Jul 16, 2018
9c04ed3
compile
dadgar Jul 17, 2018
bbcc916
Remove SetState from interface
dadgar Jul 17, 2018
cdabf42
Fix deadlock
dadgar Jul 17, 2018
4f2d641
wip
dadgar Jul 18, 2018
b09b552
missed locking around c.allocs access
schmichael Jul 19, 2018
fae9474
tr: add validate task hook
schmichael Jul 18, 2018
ebf1aa0
Define and thread through state updating interface
dadgar Jul 18, 2018
52ae83d
Update state with server
dadgar Jul 19, 2018
a744845
no need to TaskStateUpdated to return an error
schmichael Jul 19, 2018
3bca947
log before killing tasks
schmichael Jul 19, 2018
bb27389
restore vault client
schmichael Jul 20, 2018
76194c7
consul service hook
schmichael Jul 20, 2018
cea2b87
Add Network method to Handle interface
schmichael Jul 30, 2018
97dbf99
call handle.Network() instead of storing it
schmichael Jul 30, 2018
7ca41a8
Implement alloc updates in arv2
schmichael Aug 1, 2018
8958919
removing old restoration path before api change
schmichael Aug 8, 2018
e8036ff
artifacts: don't emit event when there's no artifacts
schmichael Aug 8, 2018
27894a5
tr: persist hook state whenever it changes
schmichael Aug 8, 2018
63fea0c
implement all boltdb interactions behind StateDB
schmichael Aug 8, 2018
c9e9712
Move all encoding and put deduping into state db
schmichael Aug 9, 2018
e808a1b
wip wrap boltdb to get path information
schmichael Aug 15, 2018
c0d1b63
wrap boltdb in a write deduplicator
schmichael Aug 16, 2018
b97bbd9
persist alloc state on changes, not periodically
schmichael Aug 17, 2018
051c5ea
keep forgetting lxc
schmichael Aug 17, 2018
de54261
lots of comment/log fixes
schmichael Aug 22, 2018
c95155d
implement stopping, destroying, and disk migration
schmichael Aug 23, 2018
9da25ad
client: hclog-ify most of the client
schmichael Aug 29, 2018
12171cd
make AllocBroadcaster easier to use
schmichael Aug 30, 2018
5f668aa
refactor ar hooks into their own files
schmichael Aug 31, 2018
2b5d840
arv2: implement alloc health watching
schmichael Aug 30, 2018
6ba5c7c
fix detection of task transitioning to running
schmichael Sep 7, 2018
bc26540
ar: create health setting shim for health watcher
schmichael Sep 11, 2018
5405313
tr: refactor EmitEvents into Emit+Append
schmichael Sep 11, 2018
0d7b6e7
ar: use multierror in update hook loop
schmichael Sep 11, 2018
61a5a84
Use a semaphore to block until watcher exits
schmichael Sep 11, 2018
15b568c
Emit events before long operations
schmichael Sep 11, 2018
5cbd013
health_hook: fix panic and add tests
schmichael Sep 12, 2018
e9f3f2c
Update runc/libcontainer and friends (#4655)
nickethier Sep 14, 2018
9a2c2a4
client uses passed logger and fix fingerprinters
dadgar Sep 16, 2018
a203689
fifo: add new fifo package for named pipes (#4665)
nickethier Sep 17, 2018
9fd0ba1
add logger back
dadgar Sep 17, 2018
b7d3f59
health_hook: simplify locking; test thoroughly
schmichael Sep 14, 2018
d0842e7
test: cleanup mock consul service client
schmichael Sep 14, 2018
796f0ca
fix build errors post merges
schmichael Sep 18, 2018
da8f053
tr: implement stats collection hook
schmichael Sep 15, 2018
5b14d24
executor v2 (#4656)
nickethier Sep 24, 2018
78c15dc
tr: add comments and cleanup call signature
schmichael Sep 25, 2018
e2bf0a3
clientv2: base driver plugin (#4671)
nickethier Sep 26, 2018
2b655e4
driver/raw_exec: initial raw_exec implementation
nickethier Sep 19, 2018
650ac5a
driver/raw_exec: more tests and bug fixes
nickethier Sep 25, 2018
8f2f603
lint: remove unused code and fix spelling
nickethier Sep 25, 2018
05ca3e9
driver/raw_exec: export driver config fields so they are encoded
nickethier Sep 26, 2018
c9f0d2e
driver/raw_exec: port existing raw_exec tests and add some testing ut…
nickethier Sep 26, 2018
3910057
fix package references after drivers/base subpackage removed
nickethier Sep 26, 2018
50b2981
raw_exec: move package outside of plugins dir
nickethier Sep 26, 2018
fc16a5c
plugin/drivers: plumb in stdout/stderr paths
nickethier Sep 26, 2018
7ad161f
drivers/raw_exec: added unix specific tests
nickethier Sep 26, 2018
757260a
drivers/raw_exec: sync access to task state
nickethier Sep 26, 2018
957ea01
Internal plugin catalog
dadgar Sep 26, 2018
7882ae4
Plugin loader initialization
dadgar Sep 26, 2018
e2553a1
Fix client reloading and pass the plugin loaders to server and client
dadgar Sep 27, 2018
14cc4f7
extra logging
dadgar Sep 27, 2018
1dcde75
ar: lock around accessing tasks
schmichael Sep 20, 2018
95634ae
tr: remove wip comments
schmichael Sep 20, 2018
9394b98
client: fix accessing alloc runners
schmichael Sep 20, 2018
349b827
mock_driver: close waitCh after exiting
schmichael Sep 20, 2018
13f47aa
client: do not inspect task state to follow logs
schmichael Sep 20, 2018
9f64add
tr: fix shutdown/destroy/WaitResult handling
schmichael Sep 20, 2018
334f2b4
tests: fix races caused by sharing a buffer
schmichael Sep 20, 2018
981acf3
tr: remove unneeded lock; chan synchronizes access
schmichael Sep 25, 2018
99e2953
client: fix potentially dropped streaming errors
schmichael Sep 25, 2018
737b1d8
client: add comment
schmichael Sep 25, 2018
d29d613
client: expose task state to client
schmichael Sep 27, 2018
62e90cd
tests: test via ServeMux so http codes are set
schmichael Sep 27, 2018
e495a04
tests: ensure task state is initialized in NewAR
schmichael Sep 27, 2018
01f057e
tests: make a test client/config easier to generate
schmichael Sep 27, 2018
4d1a1ac
tests: test logs endpoint against pending task
schmichael Sep 27, 2018
8e92896
ar: AllocState should not mutate ar.state
schmichael Sep 28, 2018
3b8da30
tr: properly comment handle fields
schmichael Sep 28, 2018
37387bb
tests: fix missing logger caused by bad merge
schmichael Sep 28, 2018
0d7bf53
plugin/drivers: rework eventer and change naming stream -> consumer
nickethier Sep 30, 2018
207522b
drivers/rawexec: PR comments and feedback
nickethier Sep 30, 2018
a8d50e8
plugins/drivers: remove bool to track if eventLoop shutdown and use c…
nickethier Sep 30, 2018
ca27a02
drivers/utils: better handling of consumer cleanup in eventer
nickethier Oct 2, 2018
db981de
drivers/shared: move eventer to subpackage under drivers shared package
nickethier Oct 2, 2018
3f7c14c
drivers/shared: added func comment to eventer
nickethier Oct 3, 2018
2e535ae
move files around
dadgar Oct 4, 2018
31d49c7
skip building deprecated files
dadgar Oct 4, 2018
f91b269
fix test compiling
dadgar Oct 4, 2018
3a492bb
allocrunnerv2 -> allocrunner
dadgar Oct 4, 2018
7b7cb38
more test fixes
dadgar Oct 4, 2018
3c0b073
compile on windows
dadgar Oct 4, 2018
627e208
Fix lints
dadgar Oct 5, 2018
d335a82
client: begin driver plugin integration
nickethier Oct 4, 2018
ea9ed22
client: refactor post allocrunnerv2 finalization
nickethier Oct 6, 2018
dd3b2ef
docklog: add go-plugin for forwarding of docker logs
nickethier Oct 6, 2018
4f9522d
client: review comments and fixup/skip tests
nickethier Oct 10, 2018
d68f2f0
client: fix broked tests from refactoring
nickethier Oct 10, 2018
b016b2b
plugin/driver: add Copy funcs
nickethier Oct 11, 2018
44cc52a
client: simplify driver plugin logic from review comments
nickethier Oct 11, 2018
993e045
taskrunner: return error on waitCh
nickethier Oct 11, 2018
5338103
Get raw exec tests compiling and passing again
Oct 11, 2018
b751030
rkt: start rkt driver plugin
nickethier Oct 5, 2018
2e055fe
client: add test for driverfailure during fingerprinting
nickethier Oct 11, 2018
19b222b
client: log retry during driver fingerprint redispense
nickethier Oct 11, 2018
0ebc3bd
RKT driver plugin and unit tests
Oct 12, 2018
04a2aad
Stats collection test
Oct 12, 2018
3c6d6b9
Review comments
Oct 15, 2018
f13a094
make port map a slice of maps to match existing rkt driver
Oct 15, 2018
a44e82f
tr: implement dispatch payload hook
schmichael Oct 10, 2018
2256917
Port client portion of #4392 to new taskrunner
schmichael Oct 10, 2018
9bd696e
drivers/mock: start mock driver implementation
nickethier Oct 12, 2018
089bce5
drivers/mock: complete plugin impl
schmichael Oct 12, 2018
7848acb
register drivers by default
schmichael Oct 15, 2018
4175e90
fixup comments, logging, and missing method impls
schmichael Oct 15, 2018
be57b3e
Switch back to using map[string]string for port map
Oct 15, 2018
ed2b3b2
Address review comments
Oct 15, 2018
b12de40
Address review comments around logging task properly
Oct 15, 2018
2b249ee
plugins: msgpack codec should use cty tags
schmichael Oct 16, 2018
9c4a1d4
drivers/mock: fix plugin name
schmichael Oct 16, 2018
e026d6e
tr: remove unused DriverHandle interface
schmichael Oct 16, 2018
3a9ed23
driver/docker: rename container logger
nickethier Oct 16, 2018
cb19964
client: remove unused handleproxy
schmichael Oct 16, 2018
7ebe701
changelog: add client refactor feature branch merge
schmichael Oct 16, 2018
cf42289
fix linter errors
schmichael Oct 16, 2018
4cf022c
templates: fix tests
schmichael Oct 16, 2018
2361c19
tests: get tests building if not yet passing
schmichael Oct 16, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
client: remove unused handleproxy
  • Loading branch information
schmichael committed Oct 16, 2018
commit cb1996461e541cf8380c3470ebf0dadaacb71633
49 changes: 0 additions & 49 deletions client/allocrunner/taskrunner/handleproxy.go

This file was deleted.

76 changes: 0 additions & 76 deletions client/allocrunner/taskrunner/handleproxy_test.go

This file was deleted.