Commit Graph

115 Commits

Author SHA1 Message Date
Mahmood Ali 9a5cfff265
Update macOS image (#10365)
Also, remove protobuf installation: it's not used anymore.
2021-04-12 12:50:12 -04:00
Tim Gross 85e4be997a CI: update homebrew before installing protobuf
"Bottles" have been migrated to GitHub packages, so we need to update homebrew
to point to that new source before installing the `protobuf` formula.
2021-04-12 11:49:08 -04:00
Chris Baker b67a77c4c9 third attempt at fixing circle 2021-04-06 21:29:55 +00:00
Chris Baker 56f15c2536 second attempt at fixing circle 2021-04-06 21:00:45 +00:00
Chris Baker c220a0fba2 refactor enable_race circleci parameter 2021-04-06 20:38:52 +00:00
Chris Baker d0a2e6fc84 documenting test for #10301
enable -race detector for testing api
2021-04-06 17:31:29 +00:00
Bryce Kalow bf70a670ae
fix(circle): change website branch filter to main (#10261) 2021-03-30 10:29:25 -05:00
Mahmood Ali fa721ef285 build: use golang 1.16 2021-03-09 14:20:40 -05:00
Mahmood Ali 8eedd8d3d0
ci: only read/modify `GO_TAGS` field (#9815)
Only lookup GO_TAGS variable, and avoid the false positives where GO_TAGS is a variable suffix.
2021-01-14 08:16:58 -05:00
Mahmood Ali 2fce53b364
build binaries with UI enabled (#9796)
Have the build-binary bundle the UI by default. This eases getting "alpha pre-releases" out for support without compiling locally, and engineer's experience with e2e test clusters.
2021-01-13 10:56:25 -05:00
Michael Schurter 772ab5502d build: upgrade from Go 1.15.5 -> 1.15.6
Also updated scripts/update_golang_version.sh to handle new CircleCI
file layout.
2021-01-04 08:34:00 -08:00
Buck Doyle 736025f5b4
Change to use frozen lockfile for UI in CI (#9652)
As suggested in the CircleCI documentation:
https://circleci.com/docs/2.0/yarn/
2020-12-16 12:05:36 -06:00
Buck Doyle 424a0ef2c3
Remove cache fallback
Co-authored-by: Mahmood Ali <mahmood@hashicorp.com>
2020-12-16 10:57:53 -06:00
Buck Doyle a82f54516f Change cache prefix
Builds on the main branch have been failing, perhaps due to
a corrupt cache.
2020-12-16 10:37:12 -06:00
Mahmood Ali fd420eadec
Tweak early return website workflow (#9593)
* ci: only spin up a docker engine if necessary

Halt the website-docker-image job early if no changes are detected. We
halt early before spinning up the remote docker engine, as the remote
docker engine step can add some delay (seconds to minutes) and is more
likely to suffer circleci instability.

* ci: Only run website workflow in OSS repo

Add a CircleCI conditional to avoid running website worklows on forks.
2020-12-09 17:54:36 -05:00
Kris Hicks c4ae5aab9a
circleci: Allow expanding Makefile in enterpise (#9587)
OSS no longer needs the multi-file config Makefile content, so it was
removed. However, enterprise does benefit from having that around. We
can allow enterprise to expand on OSS' CircleCI Makefile by adding an
include directive in OSS. This will allow the Makefile to be the same on
both OSS and Enterprise, so merge conflicts cannot occur.
2020-12-09 09:53:26 -08:00
Kris Hicks a841e3f7fa
circleci: Remove GO_TAGS from build-binaries job (#9579)
These tags default to the same value in GNUMakefile. This will also help
fix a discrepancy between the build-binaries job in OSS and Ent.
2020-12-09 06:56:56 -08:00
Kris Hicks e97d9d7d00
Remove multi-file CircleCI config (#9571) 2020-12-08 13:18:11 -08:00
Kris Hicks 511c2e9db2
proto: Switch to using buf (#9308)
This replaces all usage of `protoc` with `buf`. See `tools/buf/README.md` for more.
2020-11-17 07:01:48 -08:00
Michael Schurter 65175d15cc build: upgrade from Go 1.15.4 to 1.15.5
Despite being a security release for Go, we do not believe Nomad is
impacted.
2020-11-12 14:19:26 -08:00
Michael Schurter 447ec6389e go: update from 1.15.1 to 1.15.4
1.15.5 is due in a couple days but we may release before then.
2020-11-10 08:35:25 -08:00
Michael Lange 59626344be Use Node v12 for UI development 2020-11-04 09:04:22 -08:00
Russell Rollins 538aa90d92
Use Dockerhub Mirror. (#9220)
Dockerhub is going to rate limit unauthenticated pulls.

Use our HashiCorp internal mirror for builds run through CircleCI.

Co-authored-by: Mahmood Ali <mahmood@hashicorp.com>
2020-11-02 09:28:02 -05:00
Tim Gross 5dd77d1dc8
ci: make split between e2e and integration tests explicit (#9091)
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.
2020-10-14 14:53:21 -04:00
Tim Gross 7023f59ca3
ci: don't run UI tests for e2e branches (#8956) 2020-09-24 08:59:56 -04:00
Tim Gross e78fc7ff93
ci: reduce merge conflict potential in CircleCI config (#8951)
We currently have two jobs commented out in ENT because we don't have the test
target configured there. So having the filter attached to one of those jobs
means changes to filters always create a merge conflict.
2020-09-23 09:35:23 -04:00
Tim Gross c8ce887fb2
ci: exclude unit test runs from e2e branches (#8909)
Branches for the e2e code base can't have impact on the unit tests, so running
those tests just extends the time it takes to ship e2e updates. This changeset
updates the CircleCI config so that e2e branches run linting, build the
binary, and run the e2e unit tests (currently just vault compatibility).
2020-09-18 09:25:29 -04:00
Mahmood Ali d4f385d6e1
Upgrade to golang 1.15 (#8858)
Upgrade to golang 1.15

Starting with golang 1.5, setting Ctty value result in `Setctty set but Ctty not valid in child` error, as part of https://github.com/golang/go/issues/29458 .
This commit lifts the fix in https://github.com/creack/pty/pull/97 .
2020-09-09 15:59:29 -04:00
Seth Hoenig d6b0f43f3f consul/connect: update consul version used in circleci 2020-08-24 08:21:27 -05:00
Michael Schurter c7c603eda5 build: update from Go 1.14.6 to Go 1.14.7
Go 1.14.7 fixes CVE-2020-16845 which is not believed to impact Nomad.
2020-08-06 11:50:29 -07:00
Mahmood Ali 522560add2 Use golang 1.14.6
Pick up fixes [golang 1.14.6 bug fixes](https://github.com/golang/go/issues?q=milestone%3AGo1.14.6+label%3ACherryPickApproved), specially the one where reflect.DeepEqual returns true even if values don't match, affecting our tests integrity.
2020-07-20 12:04:38 -04:00
Michael Schurter db14a4d19c build: update from Go 1.14.4 to Go 1.14.5
Go 1.14.4 contains two CVEs which are fixed in 1.14.5:

 - [CVE-2020-15586](https://golang.org/issue/34902)
 - [CVE-2020-14039](https://golang.org/issue/39360)

Upon consideration with HashiCorp security these CVEs are considered low
severity for Nomad and no new security fix binary will be released.
2020-07-15 09:49:06 -07:00
Mahmood Ali 2c5d4f86cb use node 12 2020-06-24 21:16:15 -04:00
Mahmood Ali 15b84be0e6 Tweak algolia scripts
Avoid running algolia job in forks or enterprise private repositories
2020-06-24 15:28:57 -04:00
Kevin Pruett eba5ada40b
Update job and config via make 2020-06-23 22:56:29 -04:00
Kevin Pruett 81c6c7d65f
Utilize Next.js env variable conventions 2020-06-23 22:40:37 -04:00
Kevin Pruett 04f2e673ba
Setup Algolia indexing job in CI 2020-06-23 22:40:17 -04:00
Michael Schurter c078155cf0 build: update from Go 1.14.3 to Go 1.14.4 2020-06-16 10:07:05 -07:00
Buck Doyle 1cca7abcab
Add Ember ESLint plugin (#8134)
This is extracted from #8094, where I have run into some snags. Since
these ESLint fixes aren’t actually connected to the Ember 3.16 update
but involve changes to many files, we might as well address them
separately. Where possible I fixed the problems but in cases where
a fix seemed too involved, I added per-line or -file exceptions.
2020-06-09 16:03:28 -05:00
Mahmood Ali 396f776aa5 ci: run static generators as part of CI
These are used by release process, so add them to CI to notice if we
break release scripts.
2020-06-04 18:23:29 -04:00
Seth Hoenig 435c0d9fc8 deps: Switch to Go modules for dependency management
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.
2020-06-02 14:30:36 -05:00
Michael Schurter ca9907a967 build: update from Go 1.14.1 to Go 1.14.3 2020-05-16 10:41:20 -04:00
Mahmood Ali bbb341ec66 quiet unzip 2020-05-15 13:19:21 -04:00
Mahmood Ali 3441cdf00e Predownload image before tests start 2020-05-15 12:55:53 -04:00
Mahmood Ali a1e0715912 remove unused gotestsum installation script 2020-05-15 12:45:39 -04:00
Mahmood Ali 42c65eb87a colocate test-windows by darwin target
Mostly to ease conflict resolution with Enterprise fork, as Enterprise
CI doesn't support windows.
2020-05-15 12:33:31 -04:00
Mahmood Ali e50fb91557 Few Windows CI changes:
Always install go and vault: the check may accidentally use the CircleCI
pre-installed go version instead of the cached version.

Also, always install from sources without caching.  Go/vault
installation is basically a tarball download.  That's equivalent to
CirleCI caching without the complexity.  These steps don't add much time
either.

Lastly, infer the OS when downloading tarball to avoid managing them in
the job spec.
2020-05-15 12:22:15 -04:00
Michele 99e6dc8a3b Update cache 2020-05-15 10:15:37 -04:00
Michele f756efdcb1 Adding a fix 2020-05-15 10:15:37 -04:00
Michele 0150fc4c54 Move appveyor tests to circle 2020-05-15 10:15:37 -04:00