Commit Graph

176 Commits

Author SHA1 Message Date
Neil Twigg
d08eeee94d Use Go 1.21 for nightlies, Dockerfile, code coverage, bump go.mod version to Go 1.20
Signed-off-by: Neil Twigg <neil@nats.io>
2023-08-31 09:02:20 +01:00
Waldemar Quevedo
4eedcecf78 Run tests using Go 1.21
Signed-off-by: Waldemar Quevedo <wally@nats.io>
2023-08-30 16:24:08 -07:00
Derek Collison
dd4cdfd2fd Specify latest go 1.19 version
Signed-off-by: Derek Collison <derek@nats.io>
2023-08-21 15:59:30 -07:00
Waldemar Quevedo
8b7dfe7d74 monitoring: track slow consumers per connection type
Signed-off-by: Waldemar Quevedo <wally@nats.io>
2023-08-09 05:57:42 -07:00
Sylvain Rabot
64b2f5b364 Add Go 1.20 to Travis
- Use golang-ci in go test workflow

Signed-off-by: Sylvain Rabot <sylvain@abstraction.fr>
Signed-off-by: Waldemar Quevedo <wally@nats.io>
2023-08-07 17:12:20 -07:00
Derek Collison
8079495903 Merge branch 'main' into dev
Signed-off-by: Derek Collison <derek@nats.io>
2023-08-04 10:15:35 -07:00
Byron Ruth
af52adb1ee Bump Go to 1.19.12
Signed-off-by: Byron Ruth <byron@nats.io>
2023-08-03 11:24:58 -04:00
Derek Collison
c6c5358513 Merge branch 'main' into dev
Signed-off-by: Derek Collison <derek@nats.io>
2023-07-20 13:21:35 -07:00
Derek Collison
8e49fcc6df Undo branch build restrictions, quote go version
Signed-off-by: Derek Collison <derek@nats.io>
2023-07-20 11:17:19 -07:00
Derek Collison
ecf0fff411 Merge branch 'main' into dev 2023-07-17 10:41:51 -07:00
Byron Ruth
94c1988ed8 Limit branch builds to main and dev
Signed-off-by: Byron Ruth <byron@nats.io>
2023-07-15 07:01:24 -04:00
Byron Ruth
4e6a09400a Bump to Go 1.19.11
Signed-off-by: Byron Ruth <byron@nats.io>
2023-07-13 14:00:38 -04:00
Derek Collison
19eba1b8c8 Merge branch 'main' into dev 2023-06-08 09:34:41 -07:00
Byron Ruth
3ca99adcca Update Go to 1.19.10
Signed-off-by: Byron Ruth <byron@nats.io>
2023-06-08 07:10:27 -04:00
Derek Collison
ee87df250c Merge branch 'main' into dev 2023-05-17 19:27:58 -07:00
Byron Ruth
3a152a0e40 Update to Go 1.19.9
Signed-off-by: Byron Ruth <byron@nats.io>
2023-05-17 20:57:10 -04:00
Derek Collison
09afcee9d9 Merge branch 'main' into dev 2023-04-17 08:43:08 -07:00
Byron Ruth
dea68595fd Update to Go 1.19.8
Signed-off-by: Byron Ruth <byron@nats.io>
2023-04-16 15:33:13 -04:00
Derek Collison
60fe0a995f Merge branch 'main' into dev 2023-03-01 06:43:56 -08:00
Byron Ruth
4c2efe8c25 Bump to Go 1.19.6 2023-03-01 09:27:31 -05:00
Phil Pennock
2ac72d92bf YAML engineering: quote go version string
We're currently using Go 1.19; we'll switch to 1.20 when the NATS Maintainers
make the call to switch.  Prepare by making sure that 1.20 won't turn into 1.2
instead, by quoting the string to be updated and adding a warning.
2023-02-07 17:32:20 -05:00
Byron Ruth
163743ab3f Bump to Go 1.19.5
Signed-off-by: Byron Ruth <byron@nats.io>
2023-01-31 15:43:16 -05:00
Byron Ruth
b19f0205e4 Bump Travis to use Go 1.19.4
Signed-off-by: Byron Ruth <b@devel.io>
2022-12-08 11:16:19 -05:00
Ivan Kozlovic
3fadccab38 Move new test to new jetstream_cluster_3_test.go file
Since the second batch was already past the 5min mark and a bit
longer than the first batch, it is a good opportunity to add
this new test in a new file. Updated runTestsOnTravis and travis.yml
accordingly.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-09-15 12:13:00 -06:00
Ivan Kozlovic
29224c8ea9 Split more tests to speed up Travis run
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-09-09 12:45:48 -06:00
Ivan Kozlovic
3c9a7cc6e5 Move to Go 1.19, remote io/util, fix data race and a flapper
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-08-05 09:55:37 -06:00
Derek Collison
b0580cdfc2 Fix some spellings
Signed-off-by: Derek Collison <derek@nats.io>
2022-06-28 18:45:33 -07:00
Derek Collison
a7bb479339 For older versions just check we did not break build step
Signed-off-by: Derek Collison <derek@nats.io>
2022-06-24 10:54:02 -07:00
Derek Collison
cc197771ec Allow compile and staticheck to pass.
Signed-off-by: Derek Collison <derek@nats.io>
2022-06-24 09:17:12 -07:00
Derek Collison
6b6a2202c7 Bump CI to Go 1.18
Signed-off-by: Derek Collison <derek@nats.io>
2022-06-24 08:45:55 -07:00
Ivan Kozlovic
06ff4b2b29 Split JS cluster and super clusters tests and compile only on 1.16
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-04-26 16:24:05 -06:00
Ivan Kozlovic
0e2ab5eeea Changes to tests that run on Travis
- Remove code coverage from Travis and add it to a GitHub Action
that will be run as a nightly.
- Use tag builds to exclude some tests, such as the "norace" or
JS tests. Since "go test" does not support "negative" regexs, there
is no other way.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-04-26 14:11:31 -06:00
Ivan Kozlovic
34650e9dd5 Fixed data race and some flappers
Data race that has been seen:
```
Read at 0x00c00134bec0 by goroutine 159:
  github.com/nats-io/nats-server/v2/server.(*client).msgHeaderForRouteOrLeaf()
      /home/travis/gopath/src/github.com/nats-io/nats-server/server/client.go:2935 +0x254
  github.com/nats-io/nats-server/v2/server.(*client).processMsgResults()
      /home/travis/gopath/src/github.com/nats-io/nats-server/server/client.go:4364 +0x2147
(...)
Previous write at 0x00c00134bec0 by goroutine 201:
  github.com/nats-io/nats-server/v2/server.(*Server).addRoute()
      /home/travis/gopath/src/github.com/nats-io/nats-server/server/route.go:1475 +0xdb4
  github.com/nats-io/nats-server/v2/server.(*client).processRouteInfo()
      /home/travis/gopath/src/github.com/nats-io/nats-server/server/route.go:641 +0x1704
```

Also fixed some flappers and removed use of `s.js.` since we have
already captured `js` in Jsz monitoring.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-03-31 10:05:34 -06:00
Ivan Kozlovic
e9b9c39853 Ping staticcheck to previous release since getting:
```
go: downloading golang.org/x/mod v0.6.0-dev.0.20220106191415-9b9b3d81d5e3
../../../../pkg/mod/honnef.co/go/tools@v0.3.0/go/ir/builder.go:36:2: //go:build comment without // +build comment
The command "go install honnef.co/go/tools/cmd/staticcheck@latest" failed and exited with 1 during
```

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-03-29 19:11:00 -06:00
Ivan Kozlovic
70b1f5c950 Fix goreleaser script invocation - bump to rc2
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-01-13 16:58:19 -07:00
Ivan Kozlovic
59eef192cd Prepare for release v2.7.0, start with v2.7.0-rc1
Since we have never released with goreleaser and GO111MODULE=on
and have removed vendor directory, we are going to push a
v2.7.0-rc1 tag. If the goreleaser process works fine and submit
the draft release correctly, we will not do an actual v2.7.0-rc1
release. Instead, we will follow up immediately with the v2.7.0
tag and the proper release.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2022-01-13 16:15:51 -07:00
Ivan Kozlovic
aaf6d82c10 Remove version for misspell and staticcheck tools
Since with Go 1.17, we also get following notice:
```
go get: installing executables with 'go get' in module mode is deprecated.
...
```
Switching to `go install` and add `@latest` for the version.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2021-11-16 09:06:17 -07:00
Ivan Kozlovic
f805f23d6e Travis updates
- Add Go 1.17
- Fix go fmt from Go 1.17 (build directives)
- Download version of misspell and staticcheck instead of doing
"go get" since current staticcheck would be broken without go.mod

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2021-11-15 17:23:08 -07:00
Ivan Kozlovic
d154d646d4 Run coverage, but push to coverall only after_success
This will ensure that we get the matrix run green before pushing
results to coveralls, but also that if for some reason coveralls
has a problem, this is not making our build status red.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2021-09-20 12:02:14 -06:00
Derek Collison
2b2c4ba4a6 Bump Go test timeout
Signed-off-by: Derek Collison <derek@nats.io>
2021-09-07 08:20:54 -07:00
Derek Collison
c94a5cc30c Tweak travis vm size
Signed-off-by: Derek Collison <derek@nats.io>
2021-08-14 08:35:18 -07:00
Ivan Kozlovic
5bb236cef0 Update travis
- For tags, only run the version check test.
- Ping goreleaser to last version that works with vendor for now.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2021-03-26 11:24:48 -06:00
Derek Collison
91a63505a6 Re-enable tests post release process
Signed-off-by: Derek Collison <derek@nats.io>
2021-03-15 09:05:24 -07:00
Ivan Kozlovic
0d5b037fc3 Release v2.2.0
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2021-03-14 19:51:14 -06:00
Derek Collison
8fe8b835fe Fixes for flapping tests
Signed-off-by: Derek Collison <derek@nats.io>
2021-02-23 14:08:17 -08:00
Derek Collison
095a83bc2a Make sure to suppress duplicate create/delete audit events
Signed-off-by: Derek Collison <derek@nats.io>
2021-01-31 09:16:16 -08:00
Waldemar Quevedo
f0c144203b Add Go 1.15 version to CI
Signed-off-by: Waldemar Quevedo <wally@synadia.com>
2020-09-09 07:21:32 -07:00
Ivan Kozlovic
b329215af3 Release v2.1.7
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2020-05-13 19:40:49 -06:00
Ivan Kozlovic
182e30adb6 Update dependencies
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2020-03-30 18:23:43 -06:00
Ivan Kozlovic
2e2f94edea Release 2.1.4
Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
2020-01-29 16:35:59 -07:00