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.
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
- 26 Oct, 2020 1 commit
-
-
Seth Hoenig authored
-
- 15 Oct, 2020 1 commit
-
-
Ben Buzbee authored
-I ../../.. is meant to navigate from `GOPATH/src/github.com/hashicorp/nomad` to `GOPATH/src` This is fine but it assumes a few things about how the dev has setup nomad, which is also fine if that is the expected dev environment, however the `../../..` is not as explicit as "GOPATH/src" and it would also enable a few more scenarios so it seems strictly better to me. Random example: nomad is a subrepo of ours, but with this change we can symlink from GOPATH/src/github.com/hashicorp/nomad and `make proto` will work.
-
- 14 Oct, 2020 2 commits
-
-
Tim Gross authored
Currently we compile (but don't run) the e2e tests as part of `test-other`, which is skipped for branches named `e2e-*`. Move this check into the `test-e2e` job. Split out the vault compatibility integration check as its own makefile target for clarity.
-
Tim Gross authored
* rename vault API compatibility test for clarity * exercise vault secrets lease renewal
-
- 31 Aug, 2020 1 commit
-
-
Mahmood Ali authored
-
- 27 Aug, 2020 1 commit
-
-
Tim Gross authored
-
- 01 Jul, 2020 2 commits
-
-
Drew Bailey authored
* use specific sha * use submodule version
-
Drew Bailey authored
* add hclog vet to check step * ...
-
- 18 Jun, 2020 1 commit
-
-
Seth Hoenig authored
With Go modules, `go mod tidy` supplants `vendorfmt`. Unfortunately, `tidy` will try to reach out to the network and download modules, and there is no way to disable that behavior (e.g. the -mod=vendor) option does not apply. This means we cannot use the `tidy` target in nomad enterprise, which will be unable to reach private repositories like consul-enterprise. This isn't a big deal, since `vendorfmt` served the purpose of rewriting the output of `govendor`, wheras `tidy` is a part of the `sync` target that is required to be run when modifying dependencies anyway.
-
- 04 Jun, 2020 1 commit
-
-
Mahmood Ali authored
go-bindata released tags are very old, few years old, so ensure we use the latest master as of now.
-
- 03 Jun, 2020 1 commit
-
-
Mahmood Ali authored
Point to gopsutil fork with shirou/gopsutil#889 changes. I used hashicorp/gopsutil rather than pointing to https://github.com/Lomanic/gopsutil/tree/issue832 directly just in case..
-
- 02 Jun, 2020 1 commit
-
-
Seth Hoenig authored
This PR switches the Nomad repository from using govendor to Go modules for managing dependencies. Aspects of the Nomad workflow remain pretty much the same. The usual Makefile targets should continue to work as they always did. The API submodule simply defers to the parent Nomad version on the repository, keeping the semantics of API versioning that currently exists.
-
- 24 May, 2020 1 commit
-
-
Seth Hoenig authored
We have been using fatih/hclfmt which is long abandoned. Instead, switch to HashiCorp's own hclfmt implementation. There are some trivial changes in behavior around whitespace.
-
- 15 May, 2020 1 commit
-
-
Mahmood Ali authored
-
- 13 May, 2020 1 commit
-
-
Drew Bailey authored
-
- 28 Apr, 2020 1 commit
-
-
Mahmood Ali authored
Use v1.1.5 of go-msgpack/codec/codecgen, so go-msgpack codecgen matches the library version. We branched off earlier to pick up https://github.com/hashicorp/go-msgpack/commit/f51b5189210768cf0d476580cf287620374d4f02 , but apparently that's not needed as we could customize the package via `-c` argument.
-
- 24 Apr, 2020 1 commit
-
-
Seth Hoenig authored
Examples for HTTP based task-group service healthchecks are covered by the `countdash` demo, but gRPC checks currently have no runnable examples. This PR adds a trivial gRPC enabled application that provides a Service implementing the standard gRPC healthcheck interface.
-
- 23 Apr, 2020 2 commits
-
-
Tim Gross authored
Running `make dev` runs `hclfmt`, but this isn't checked as part of CI. That makes it possible to merge un-formatted HCL and Nomad jobspecs that later will make for dirty git staging areas when developers pull master. This changeset adds HCL linting to the `make check` target.
-
Tim Gross authored
-
- 08 Apr, 2020 1 commit
-
-
Mahmood Ali authored
Use go mod for github.com/hashicorp/go-bindata/go-bindata and github.com/elazarl/go-bindata-assetfs/go-bindata-assetfs but use `@master` to pull the latest master. These packages don't have release tags so `@master` worksaround it.
-
- 07 Apr, 2020 2 commits
-
-
Tim Gross authored
Adding `-trimpath` to builds removes the local working directory from the goroutine stack traces, which makes our builds more reproducible and doesn't leak information about our local development workstations or CI environment.
-
Mahmood Ali authored
-
- 01 Apr, 2020 1 commit
-
-
Mahmood Ali authored
These dep tools aren't tagged properly so shouldn't be installed with go mod
-
- 31 Mar, 2020 1 commit
-
-
Mahmood Ali authored
This allows using https download and go mod cache proxies, over using git and downloading entire dependencies git history, hopefully, resulting into a faster installation process.
-
- 12 Mar, 2020 1 commit
-
-
JohnnyB authored
IBM testing.
-
- 09 Mar, 2020 1 commit
-
-
Mahmood Ali authored
This check fails the lint-go CI job if nomad references a package that is not vendored.
-
- 03 Mar, 2020 2 commits
- 06 Feb, 2020 1 commit
-
-
Jeff Escalante authored
-
- 03 Feb, 2020 1 commit
-
-
Mahmood Ali authored
Emit a slightly helpful message when /api depends on nomad internal packages.
-
- 14 Jan, 2020 2 commits
-
-
Michael Schurter authored
-
Michael Schurter authored
Modernize Vault integration/e2e test a bit: - Download from releases.hashicorp.com instead of using a hardcoded list - Remove old unused make target e2e-test - Use NOMAD_E2E env var instead of -integration flag - Add a README On my machine with ~250 Mbps internet it takes ~400s to download all Vault binaries.
-
- 10 Jan, 2020 1 commit
-
-
Lang Martin authored
-
- 06 Dec, 2019 2 commits
-
-
Seth Hoenig authored
You'd think since golangci-lint embeds misspell we could use that, but it fails to run if it finds no Go source files, which is the case in our website/ directory that we want to check.
-
Danielle Lancashire authored
gometalinter has been deprecated, with golangci-lint as its spiritual and recommended successor. Here we switch to using it with an equivalent configuration, albeit with newer versions of some linters. To maintain compatibility with existing settings, we have a couple of things disabled here, specifically: - tests We have a lot of unused code in our tests that choke deadcode. We should attempt to clean these up soon so that we can lint our testcode. - govet.check-shadowing = false This breaks on redefining `err` which we do all over the nomad codebase.
-
- 12 Nov, 2019 2 commits
-
-
Mahmood Ali authored
-
Mahmood Ali authored
-
- 11 Oct, 2019 1 commit
-
-
Danielle Lancashire authored
-
- 06 Sep, 2019 2 commits
-
-
Mahmood Ali authored
Co-Authored-By:
Danielle <dani@hashicorp.com>
-
Mahmood Ali authored
This is an attempt to ease dependency management for external driver plugins, by avoiding requiring them to compile ugorji/go generated files. Plugin developers reported some pain with the brittleness of ugorji/go dependency in particular, specially when using go mod, the default go mod manager in golang 1.13. Context -------- Nomad uses msgpack to persist and serialize internal structs, using ugorji/go library. As an optimization, we use ugorji/go code generation to speedup process and aovid the relection-based slow path. We commit these generated files in repository when we cut and tag the release to ease reproducability and debugging old releases. Thus, downstream projects that depend on release tag, indirectly depends on ugorji/go generated code. Sadly, the generated code is brittle and specific to the version of ugorji/go being used. When go mod picks another version of ugorji/go then nomad (go mod by default uses release according to semver), downstream projects face compilation errors. Interestingly, downstream projects don't commonly serialize nomad internal structs. Drivers and device plugins use grpc instead of msgpack for the most part. In the few cases where they use msgpag (e.g. decoding task config), they do without codegen path as they run on driver specific structs not the nomad internal structs. Also, the ugorji/go serialization through reflection is generally backward compatible (mod some ugorji/go regression bugs that get introduced every now and then :( ). Proposal --------- The proposal here is to keep committing ugorji/go codec generated files for releases but to use a go tag for them. All nomad development through the makefile, including releasing, CI and dev flow, has the tag enabled. Downstream plugin projects, by default, will skip these files and life proceed as normal for them. The downside is that nomad developers who use generated code but avoid using make must start passing additional go tag argument. Though this is not a blessed configuration.
-