Commit Graph

111 Commits (Amier3-patch-1)

Author SHA1 Message Date
Daniel Nephin e8312d6b5a testing: remove unnecessary calls to freeport
3 years ago
Daniel Nephin 5a61893642 testing: use httptest with freeport
3 years ago
Daniel Nephin d795a73f78 testing: use the new freeport interfaces
3 years ago
Daniel Nephin d2274df53f lib/decode: fix hook to work with embedded squash struct
3 years ago
Daniel Nephin baa2b8628e consul: fix data race in leader CA tests
3 years ago
Dhia Ayachi f785c5b332
RPC Timeout/Retries account for blocking requests (#8978)
4 years ago
Matt Keeler da31e0449e Move some things around to allow for license updating via config reload
4 years ago
Daniel Nephin 3782e31a03 lib/ttlcache: never decrease the expiry on update
4 years ago
Daniel Nephin f9cf2ec9ab lib/retry: allow jitter to exceed max wait.
4 years ago
Daniel Nephin 931023fc70
Merge pull request #8698 from pierreca/fix-iserreof
4 years ago
Daniel Nephin 28736e60fd lib/mutex: add mutex with TryLock and update vendor
4 years ago
Daniel Nephin b9e60c0775 testing: skip slow tests with -short
4 years ago
Kit Patella bd0c7c2cd6 add note about deleting TelemetryConfig.MergeDefaults in the future
4 years ago
Kit Patella ad4cebc1d8 fix some tests that were broken from the TelemetryConfig change
4 years ago
Kit Patella 49f017bd42 prometheussink has the same number of params again
4 years ago
Kit Patella b81edac7bb use the MetricsPrefix to set the service name and provide as slice literal to avoid bugs from append modifying its first arg
4 years ago
Kit Patella 5e0e4098c9 push prometheus sink definiitons into prometheus.PrometheusOpts
4 years ago
Kit Patella 24a2471029 first pass on agent-configured prometheusDefs and adding defs for every consul metric
4 years ago
Kit Patella 8993fea163 remove definitions for consul.runtime... metrics - they're prepended with hostnames and won't init
4 years ago
Kit Patella 1c4885c44a add definitions for key metrics. This will not build until we have the definitions patch to go-metrics
4 years ago
Daniel Nephin 0d4fa882b3 lib/ttlcache: unexport key and additional godoc
4 years ago
Daniel Nephin c17baadbf8 lib/ttlcache: add a constant for NotIndexed
4 years ago
Daniel Nephin 6c09ab3dd8 cache: fix a bug with Prepopulate
4 years ago
Daniel Nephin bbb816aa8a lib/ttlcache: extract package from agent/cache
4 years ago
Kit Patella adeabf2399
Merge pull request #8877 from hashicorp/mkcp/telemetry/consul.api.http
4 years ago
Matt Keeler 38f5ddce2a
Add per-agent reconnect timeouts (#8781)
4 years ago
Kit Patella 7fe2f80b4b add config flag to disable 1.9 metrics backwards compatibility. Add warnings on start and reload on default value
4 years ago
Daniel Nephin e54567223b lib/retry: Refactor to reduce the interface surface
4 years ago
Daniel Nephin 7b4aca2088 lib/retry: export fields
4 years ago
Daniel Nephin ca26dfb4a2 lib/retry: extract a new package from lib
4 years ago
Pierre Cauchois f85fec6365 use errors.As() for wrapped ServerError
4 years ago
Pierre Cauchois 352cf930fc ServerError type check before EOF string comparison
4 years ago
Pierre Cauchois aa1875c3c7 remove t.Parallel()
4 years ago
Pierre Cauchois 0e64d73f83 Add unit tests for isErrEOF()
4 years ago
Pierre Cauchois 012f31fc2d Use errors.Is() in IsErrEOF()
4 years ago
Daniel Nephin 63bad36de7 testing: disable global metrics sink in tests
4 years ago
Daniel Nephin a891ee8428
Merge pull request #8176 from hashicorp/dnephin/add-linter-unparam-1
4 years ago
Daniel Nephin 010a609912 Fix a bunch of unparam lint issues
4 years ago
Matt Keeler 1093212176
Add test to ensure the StopChannelContext works properly
4 years ago
Daniel Nephin 5afcf5c1bc
Merge pull request #8034 from hashicorp/dnephin/add-linter-staticcheck-4
5 years ago
Daniel Nephin d345cd8d30 ci: Add ineffsign linter
5 years ago
Daniel Nephin a9851e1812
Merge pull request #8070 from hashicorp/dnephin/add-gofmt-simplify
5 years ago
Matt Keeler 9f7b22a5eb
Agent Auto Configuration: Configuration Syntax Updates (#8003)
5 years ago
Daniel Nephin 068b43df90 Enable gofmt simplify
5 years ago
Daniel Nephin d11674dbb7 decode: do not modify the source data in HookTranslateKeys
5 years ago
Daniel Nephin 66b72039d4 decode: Only recursively unslice when the target is an interface{}
5 years ago
Daniel Nephin a46ce3d841 decode: recursively unslice opaque config
5 years ago
Daniel Nephin 75cbbe2702 config: add HookWeakDecodeFromSlice
5 years ago
Daniel Nephin 99eb583ebc
Replace goe/verify.Values with testify/require.Equal (#7993)
5 years ago
Daniel Nephin 4f2bff174d
Merge pull request #7963 from hashicorp/dnephin/replace-lib-translate-keys
5 years ago