Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update go to 1.18 #1266

Closed
wants to merge 20 commits into from
Closed

Update go to 1.18 #1266

wants to merge 20 commits into from

Conversation

xzfc
Copy link
Contributor

@xzfc xzfc commented Apr 23, 2022

#1264

  • In GitHub workflow yamls, update go to 1.18 and golangci-lint to 1.45.2.
  • Update go.mod files to use go 1.18.
  • Replace deprecated linters: golint -> revive, scopelint -> exportloopref`.
  • Fix goheader linting rule configuration.
  • Fix linter issues introduced by the new golangci-lint version.

edwarnicke and others added 20 commits March 14, 2022 04:33
Also improved greatly documentation in various places

Should resolve #1234

Signed-off-by: Ed Warnicke <hagbard@gmail.com>
…1236)

Bumps [github.com/nats-io/nats-streaming-server](https://github.com/nats-io/nats-streaming-server) from 0.24.1 to 0.24.3.
- [Release notes](https://github.com/nats-io/nats-streaming-server/releases)
- [Changelog](https://github.com/nats-io/nats-streaming-server/blob/main/.goreleaser.yml)
- [Commits](nats-io/nats-streaming-server@v0.24.1...v0.24.3)

---
updated-dependencies:
- dependency-name: github.com/nats-io/nats-streaming-server
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* add forwarder matching

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* use path index instead of magic number

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* minor fixes for tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* make samples

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix heal tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change iter count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix timeout value

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change iter count again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase timeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply suggestions

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add debug info

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* forwarder health check after nsmgr restart

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable traces

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework health check

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase timeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework forwarder health check again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add simple sleep

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase sleep time

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add healing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add delete

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable race

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* revert 'add delete' commit

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add client conn delete

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* delete registry restart

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with forwarder health check

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* remove health check + increase sleep

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change iter count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add forwarder registration

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable all tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with health check again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run only one test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add forwarder register

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with clientconn delete again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* revert last commit

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase timeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add log

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with forwarder register again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase forwarder count

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add race flag + disable tracing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* move test to heal_test.go file

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add clientconn.Delete(ctx) again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test only local case

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with registry restart

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test retry patch

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add logs

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* wake CI

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with 100 ms

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test with 1s

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test without retry

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add manual forwarder heal

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add remote test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* reduce tryTimeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add nse reregistration

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable all tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply suggestions

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
Signed-off-by: Lionel Jouin <lionel.jouin@est.tech>
* add unit test for mutually aware nses use-case

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add getFullURL func

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add awarenessGroups option for client

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* implement awarenessGroups check in excludeprefixesClient

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* improve unit test

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* modify Close method

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issue

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework unit test + fix match_selector

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix tests

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply comments

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add more usecases for awarenessgroups decoder

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* refactor awarenessGroups

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix linter issues

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* use atomic.LoadInt32 func

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
* delete label matching (for ci)

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_AwareNSEs

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix Test_AwareNSEs timeout

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
* Add cleanup chain element

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>

* Rename option

Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
* add vl3 chain elements and vl3ipam

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

* fix typos

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>
* add cmd-ipam-vl3 for update

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>

* subscribe cmd-map-ip-k8s on updates from sdk

Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>
* try to reproduce bug

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* test only local case

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add logs

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* change order of forwarders

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add more test launches

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run test 100 times

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run test 50 times

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* enable trace logs again

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* disable healing

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* launch test 80 times

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* launch 90 times

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* launch 99 times

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* rework node client

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* fix cii

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* apply comments

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
* don't spawn logs if context has cancelled gracefully

Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>

* fix linter

Signed-off-by: denis-tingaikin <denis.tingajkin@xored.com>
Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
Signed-off-by: Denis Tingaikin <denis.tingajkin@xored.com>
Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
Signed-off-by: Artem Glazychev <artem.glazychev@xored.com>
* run test 100 times

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* add logs

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase testWait for require.Eventually

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run test 300 times

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run test 2000 times

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run test 1500 times

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run test 1000 times

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run test 10000 times

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* increase testWait

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* run test 100000 times

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>

* cleanup

Signed-off-by: Nikita Skrynnik <nikita.skrynnik@xored.com>
Signed-off-by: Albert Safin <albert.safin@xored.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants