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. 16 Dec, 2018 2 commits
    • Mahmood Ali's avatar
      ci: use gotestsum for running tests · 8b53ff97
      Mahmood Ali authored
      `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.
      8b53ff97
    • Mahmood Ali's avatar
      tests: fix rkt command environment (#5011) · ee652be3
      Mahmood Ali authored
      The environment variables needed for envoking `rkt` command line
      should include host PATH (to access `iptables`).
      
      Given that the command runs outside the VM, untrusted task environment
      variables should NOT be honored here.
      
      We do this already with `rkt`, but the change is quite subtle to miss
      when refactoring.
      ee652be3
  2. 15 Dec, 2018 11 commits
    • Mahmood Ali's avatar
      Merge pull request #5008 from hashicorp/b-docker-test-20181214 · 4a517692
      Mahmood Ali authored
      Fix flakiness in docker tests
      4a517692
    • Mahmood Ali's avatar
      tests: avoid implicitly asserting clean shutdown · 29ef7ecf
      Mahmood Ali authored
      The assertion here is causing many spurious failures that aren't
      actually relevant to the test itself.
      
      We are tracking the cause for this failure independently, and it would
      make more sense to have a dedicated test for clean shutdown.
      29ef7ecf
    • Mahmood Ali's avatar
      testes: remove TestDockerDriver_Kill · 119aabe7
      Mahmood Ali authored
      We already have two other Kill tests (e.g.
      TestDockerDriver_Start_Kill_Wait and
      TestDockerDriver_Start_KillTimeout), so don't need yet another flaky
      test.
      119aabe7
    • Mahmood Ali's avatar
      f248fefd
    • Mahmood Ali's avatar
      tests: assert docker containers start · 2502ffe5
      Mahmood Ali authored
      2502ffe5
    • Mahmood Ali's avatar
      tests: try deflake TestDockerDriver_OOMKilled · 29fc3f77
      Mahmood Ali authored
      Noticed an issue in Docker daemon failing to handle the OOM test case
      failure in build https://travis-ci.org/hashicorp/nomad/jobs/468027848 ,
      and I suspect it's related to the process dying so quickly, and
      potentially the way we are starting the task, so added a start up delay
      and made it more consistent with other tests that don't seem as flaky.
      
      The following is the log line showing Docker returning 500 error condition; while we can probably handle it gracefully without retrying, the retry is very cheap in this case and it's more of an optimization that we can handle in follow up PR.
      
      ```
          testlog.go:32: 2018-12-14T14:57:52.626Z [DEBUG] docker/driver.go:852: docker: setting container startup command: task_name=nc-demo command="/bin/nc -l 127.0.0.1 -p 0"
          testlog.go:32: 2018-12-14T14:57:52.626Z [DEBUG] docker/driver.go:866: docker: setting container name: task_name=nc-demo container_name=724a3e77-8b15-e657-f6aa-84c2d3243b18
          testlog.go:32: 2018-12-14T14:57:52.694Z [INFO ] docker/driver.go:196: docker: created container: container_id=362b6ea183f3c4ce472d7d7571ca47023cea1df0f5eb920827921716f17718be
          testlog.go:32: 2018-12-14T14:57:53.523Z [DEBUG] docker/driver.go:416: docker: failed to start container: container_id=362b6ea183f3c4ce472d7d7571ca47023cea1df0f5eb920827921716f17718be attempt=1 error="API error (500): {"message":"cannot start a stopped process: unknown"}
              "
          testlog.go:32: 2018-12-14T14:57:55.394Z [DEBUG] docker/driver.go:416: docker: failed to start container: container_id=362b6ea183f3c4ce472d7d7571ca47023cea1df0f5eb920827921716f17718be attempt=2 error="API error (500): {"message":"cannot start a stopped process: unknown"}
              "
          testlog.go:32: 2018-12-14T14:57:57.243Z [DEBUG] docker/driver.go:416: docker: failed to start container: container_id=362b6ea183f3c4ce472d7d7571ca47023cea1df0f5eb920827921716f17718be attempt=3 error="API error (500): {"message":"cannot start a stopped process: unknown"}
              "
      ```
      29fc3f77
    • Mahmood Ali's avatar
      tests: pin busybox image to a specific point tag · e3cee532
      Mahmood Ali authored
      Using `:latest` tag is typically a cause of pain, as underlying image
      changes behavior.  Here, I'm switching to using a point release, and
      re-updating the stored tarballs with it.
      
      Sadly, when saving/loading images, the repo digeset is not supported:
      https://github.com/moby/moby/issues/22011 ; but using point releases
      should mitigate the problem.
      
      The motivation here is that docker tests have some flakiness due to
      accidental importing of `busybox:latest` which has `/bin/nc` that no
      longer supports `-p 0`:
      
      ```
      $ docker run -it --rm busybox /bin/nc -l 127.0.0.1 -p 0
      Unable to find image 'busybox:latest' locally
      latest: Pulling from library/busybox
      Digest: sha256:2a03a6059f21e150ae84b0973863609494aad70f0a80eaeb64bddd8d92465812
      Status: Downloaded newer image for busybox:latest
      nc: bad local port '0'
      ```
      
      Looks like older busybox versions (e.g. `busybox:1.24` do honor `-p 0`
      as the test expect, but I would rather update busybox to fix.
      e3cee532
    • Nick Ethier's avatar
      Merge pull request #4961 from hashicorp/f-grpc-executor · 3fb53e87
      Nick Ethier authored
      GRPC Executor
      3fb53e87
    • Nick Ethier's avatar
    • Nick Ethier's avatar
      rawexec: fix misleading log · d0efb728
      Nick Ethier authored
      d0efb728
    • Nick Ethier's avatar
      c8a3c0e9
  3. 14 Dec, 2018 4 commits
  4. 13 Dec, 2018 9 commits
  5. 12 Dec, 2018 10 commits
  6. 11 Dec, 2018 4 commits