This project is mirrored from https://gitee.com/mirrors/nomad.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
  1. 02 Apr, 2019 2 commits
  2. 01 Apr, 2019 1 commit
  3. 25 Mar, 2019 1 commit
    • Michael Schurter's avatar
      tests: port pre-0.9 task env tests · 2dbc06de
      Michael Schurter authored
      I chose to make them more of integration tests since there's a lot more
      plumbing involved. The internal implementation details of how we craft
      task envs can now change and these tests will still properly assert the
      task runtime environment is setup properly.
      2dbc06de
  4. 04 Mar, 2019 1 commit
    • Michael Schurter's avatar
      client: test logmon cleanup · 8d409a6e
      Michael Schurter authored
      The test is sadly quite complicated and peeks into things (logmon's
      reattach config) AR doesn't normally have access to.
      
      However, I couldn't find another way of asserting logmon got cleaned up
      without resorting to smaller unit tests. Smaller unit tests risk
      re-implementing dependencies in an unrealistic way, so I opted for an
      ugly integration test.
      8d409a6e
  5. 01 Mar, 2019 1 commit
    • Michael Schurter's avatar
      client: ensure task is cleaned up when terminal · db9daf66
      Michael Schurter authored
      This commit is a significant change. TR.Run is now always executed, even
      for terminal allocations. This was changed to allow TR.Run to cleanup
      (run stop hooks) if a handle was recovered.
      
      This is intended to handle the case of Nomad receiving a
      DesiredStatus=Stop allocation update, persisting it, but crashing before
      stopping AR/TR.
      
      The commit also renames task runner hook data as it was very easy to
      accidently set state on Requests instead of Responses using the old
      field names.
      db9daf66
  6. 22 Feb, 2019 7 commits
  7. 21 Feb, 2019 3 commits
  8. 20 Feb, 2019 2 commits
  9. 14 Feb, 2019 2 commits
  10. 12 Feb, 2019 4 commits
  11. 22 Jan, 2019 3 commits
    • Michael Schurter's avatar
      test: port TestTaskRunner_CheckWatcher_Restart · 06119e25
      Michael Schurter authored
      Added ability to adjust the number of events the TaskRunner keeps as
      there's no way to observe all events otherwise.
      
      Task events differ slightly from 0.8 because 0.9 emits Terminated every
      time a task exits instead of only when it exits on its own (not due to
      restart or kill).
      
      0.9 does not emit Killing/Killed for restarts like 0.8 which seems fine
      as `Restart Signaled/Terminated/Restarting` is more descriptive.
      
      Original v0.8 events emitted:
      ```
      	expected := []string{
      		"Received",
      		"Task Setup",
      		"Started",
      		"Restart Signaled",
      		"Killing",
      		"Killed",
      		"Restarting",
      		"Started",
      		"Restart Signaled",
      		"Killing",
      		"Killed",
      		"Restarting",
      		"Started",
      		"Restart Signaled",
      		"Killing",
      		"Killed",
      		"Not Restarting",
      	}
      ```
      06119e25
    • Michael Schurter's avatar
      test: port RestartTask from 0.8 · 81334cd3
      Michael Schurter authored
      81334cd3
    • Michael Schurter's avatar
      test: port SignalFailure test from 0.8 · 418d360d
      Michael Schurter authored
      Also fix signal error handling in mock_driver.
      418d360d
  12. 18 Jan, 2019 1 commit
  13. 15 Jan, 2019 1 commit
  14. 14 Jan, 2019 1 commit
  15. 07 Jan, 2019 1 commit
  16. 19 Dec, 2018 2 commits
    • Nick Ethier's avatar
    • Nick Ethier's avatar
      client/drivermananger: add driver manager · 39ca1b00
      Nick Ethier authored
      The driver manager is modeled after the device manager and is started by the client.
      It's responsible for handling driver lifecycle and reattachment state, as well as
      processing the incomming fingerprint and task events from each driver. The mananger
      exposes a method for registering event handlers for task events that is used by the
      task runner to update the server when a task has been updated with an event.
      
      Since driver fingerprinting has been implemented by the driver manager, it is no
      longer needed in the fingerprint mananger and has been removed.
      39ca1b00
  17. 28 Nov, 2018 2 commits
    • Michael Schurter's avatar
      client: properly support hook env vars · a13607f2
      Michael Schurter authored
      The old approach was incomplete. Hook env vars are now:
      
       * persisted and restored between agent restarts
       * deterministic (LWW if 2 hooks set the same key)
      a13607f2
    • Alex Dadgar's avatar
      Device hook and devices affect computed node class · 429c5bb8
      Alex Dadgar authored
      This PR introduces a device hook that retrieves the device mount
      information for an allocation. It also updates the computed node class
      computation to take into account devices.
      
      TODO Fix the task runner unit test. The environment variable is being
      lost even though it is being properly set in the prestart hook.
      429c5bb8
  18. 20 Nov, 2018 1 commit
  19. 16 Nov, 2018 3 commits
  20. 13 Nov, 2018 1 commit