1. 29 Nov, 2019 2 commits
  2. 06 Nov, 2019 2 commits
  3. 04 Nov, 2019 1 commit
    • Steve Azzopardi's avatar
      Use cached IP for google driver · bd580896
      Steve Azzopardi authored
      `GetIP` gets called every time `GetSSHHostname` is called which is
      called to run every ssh command to the machine. `GetIP` is sending a
      request to the API every time we request it.
      Check if the in-memory IP is available before sending a request to the
      API, and save it at the end as well if it's not present.
      Adding tests is quite difficult here since the client for accessing the
      Google API is created within `GetIP` so it's not something that can be
      mocked easily. To make it testable we require a lot of changes to the
      google driver which will be riskier the not adding tests.
      Below are some metrics on how many times we used to call the API for the
      IP address when creating and removing a machine:
      **Before Patch:**
      Number of `GetIP` Calls: 21
      Number of `Instance.Get` Calls: 21
      **After Patch:**
      Number of `GetIP` Calls: 21
      Number of `Instance.Get` Calls: 1
  4. 21 Oct, 2019 1 commit
  5. 08 Oct, 2019 2 commits
  6. 07 Oct, 2019 1 commit
    • Steve Azzopardi's avatar
      Release binaries on S3 bucket · 82589801
      Steve Azzopardi authored
      Create a new release job to release the binaries for each commit,
      master, and tag created into their respective bucket.
      The s3 bucket information are stored inside of **Settings > CI/CD >
  7. 02 Oct, 2019 2 commits
    • Steve Azzopardi's avatar
      Add merge request pipelines · 5c5661ad
      Steve Azzopardi authored
      Dogfood merge request pipelines to this small project.
    • Steve Azzopardi's avatar
      Create new image for CI · d922f816
      Steve Azzopardi authored
      Create a new image to be used for CI, this will be used for testing,
      building and uploading to s3.
      Put the extra files inside of the `.gitlab` directory to prevent any
      conflicts since this is a fork of a project.
  8. 01 Oct, 2019 6 commits
  9. 02 Sep, 2019 1 commit
  10. 30 Aug, 2019 1 commit
  11. 18 Jul, 2019 2 commits
  12. 14 May, 2019 1 commit
  13. 02 Mar, 2019 1 commit
  14. 24 Jan, 2019 2 commits
  15. 18 Jan, 2019 1 commit
  16. 17 Jan, 2019 1 commit
  17. 15 Jan, 2019 1 commit
  18. 14 Jan, 2019 1 commit
  19. 13 Jan, 2019 7 commits
  20. 09 Jan, 2019 1 commit
  21. 08 Jan, 2019 3 commits
    • Albin Gustavsson's avatar
      Add AWS region eu-north-1 · 8300259a
      Albin Gustavsson authored
      Signed-off-by: Albin Gustavsson's avatarAlbin Gustavsson <git@gustavsson.online>
    • Cezar Sá Espinola's avatar
      plugin/localbinary: Exit output stream goroutines when plugin closes · 55bfb59b
      Cezar Sá Espinola authored
      This commit ensures that when a plugin instance is closed the goroutines
      responsible for streaming stdout and stderr of the called binary will
      also exit, preventing a goroutines leak.
      Before this commit these goroutines could stay blocked forever if
      Close() was called while the binary still had some pending output.
      I found this bug after debugging a real world goroutine leak, the
      goroutines dump would show thousands of goroutines at:
      github.com/tsuru/tsuru/vendor/github.com/docker/machine/libmachine/drivers/plugin/localbinary.stream(0xc023013d80, 0xc0000aad20)
      	/home/travis/gopath/src/github.com/tsuru/tsuru/vendor/github.com/docker/machine/libmachine/drivers/plugin/localbinary/plugin.go:177 +0x7c
      created by github.com/tsuru/tsuru/vendor/github.com/docker/machine/libmachine/drivers/plugin/localbinary.(*Plugin).AttachStream
      	/home/travis/gopath/src/github.com/tsuru/tsuru/vendor/github.com/docker/machine/libmachine/drivers/plugin/localbinary/plugin.go:183 +0x67
      Signed-off-by: Cezar Sá Espinola's avatarCezar Sa Espinola <cezarsa@gmail.com>
    • Jade Auer's avatar
      use CPUID instead of shelling out for VT-d detection · 5a8ce1ae
      Jade Auer authored
      Signed-off-by: default avatarJade Auer <jda@tapodi.net>