7f70b8cf76
tests: Separate retries count from failure trigger count
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-12-03 11:21:07 +01:00
df2d075e1a
tests: Sleep between failpoint failure
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-12-03 11:21:07 +01:00
11711fc007
tests: Recreate cluster for every failpoint trigger
...
This shortens operation history and avoids having to many failed requests.
Failed requests are problematic as too many of them can cause linearizability
verification complexity to become exponential.
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-12-03 11:21:07 +01:00
5503a9484a
test: cleanup go.mod and go.sum files
...
Executed commands below,
1. Removed go.etcd.io/raft/v3 => ../raft;
2. go get go.etcd.io/raft/v3@eaa6808e1f7ab2247c13778250f70520b0527ff1;
3. go mod tidy
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-12-02 13:36:05 +08:00
7ce21519fb
test: update test to use the new raft module go.etcd.io/raft/v3
...
Just replaced all go.etcd.io/etcd/raft/v3 with go.etcd.io/raft/v3
under directory test.
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-12-02 13:32:47 +08:00
ccf5d3c1af
Cleanup comment
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-12-01 09:49:33 -08:00
eef1fb9246
Record delete request errors
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-12-01 09:49:22 -08:00
6be22d84ef
Updated as per review feedback.
...
Signed-off-by: Geeta Gharpure <geetagh@amazon.com >
2022-12-01 09:39:26 -08:00
de991a9f2d
linearizability tests - Add support for delete api
...
Signed-off-by: Geeta Gharpure <geetagh@amazon.com >
2022-12-01 09:39:26 -08:00
3f86db5e53
bump golang.org/x imports to address CVEs
...
Reference: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-32149
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-11-30 05:03:43 +08:00
7b19ee6396
test: add integration test to cover the multiple member corruption case
...
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-11-26 19:35:38 +08:00
a3197102e9
test: rollback the change in PR pull/14824
...
The change did in https://github.com/etcd-io/etcd/pull/14824 fixed
the test instead of the product code. It isn't correct. After we
fixed the product code in this PR, we can revert the change in
that PR.
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-11-26 19:35:38 +08:00
285e44378f
bump github.com/stretchr/testify from v1.7.2 to v1.8.1
...
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-11-26 10:51:32 +08:00
cd15507c65
test: enhance case TestEndpointHashKV to check both hash and hashRevision
...
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-11-25 18:49:16 +08:00
f18ac02e0f
Merge pull request #14834 from fuweid/bump-grpc-1.51
...
bump grpc to v1.51.0 from v1.47.0
2022-11-24 09:07:56 +01:00
dbfe42bbd2
comments: fix comments as per goword in go _test pkg files
...
Comments fixed as per goword in go _test package files that
shell function go_srcs_in_module lists as per changes on #14827
Helps in #14827
Signed-off-by: Bhargav Ravuri <bhargav.ravuri@infracloud.io >
2022-11-24 00:03:00 +05:30
2feec4fe68
comments: fix comments as per goword in go test files
...
Comments fixed as per goword in go test files that shell
function go_srcs_in_module lists as per changes on #14827
Helps in #14827
Signed-off-by: Bhargav Ravuri <bhargav.ravuri@infracloud.io >
2022-11-23 23:05:42 +05:30
cf285ea3c7
bump grpc to v1.51.0 from v1.47.0
...
Signed-off-by: Wei Fu <fuweid89@gmail.com >
2022-11-23 22:16:22 +08:00
51c0b4dff3
Merge pull request #14825 from clarkfw/EtcdProcessClusterConfig-antipattern-name
...
tests: fix anti-pattern name in `NewEtcdProcessCluster`
2022-11-23 15:11:36 +01:00
f656fa0f49
add missing copyright headers
...
Signed-off-by: Andrew Sims <andrew.cameron.sims@gmail.com >
2022-11-23 19:13:43 +11:00
b298c85a34
tests: fix anti-pattern name in NewEtcdProcessCluster
...
Signed-off-by: Clark <fwyongxing@gmail.com >
2022-11-23 00:32:10 +08:00
0b30e83b1d
tests/integration: deflake Corruption cases
...
If the corrupted member has been elected as leader, the memberID in alert
response won't be the corrupted one. It will be a smaller follower ID since
the raftCluster.Members always sorts by ID. We should check the leader
ID and decide to use which memberID.
Fixes : #14823
Signed-off-by: Wei Fu <fuweid89@gmail.com >
2022-11-22 22:19:55 +08:00
c26dabacbd
release: build with consistent paths
...
This changes the builds to always add -trimpath which removes specific
build time paths from the binary (like current directories etc).
Improves build reproducability to make the final binary independent from
the specific build path.
Lastly, when stripping debug symbols, also add -w to strip DWARF symbols
as well which aren't needed in that case either.
Signed-off-by: Dirkjan Bussink <d.bussink@gmail.com >
2022-11-21 15:06:11 +01:00
ebfcaaed34
test: fix the test failures in e2e/warning_logging_test.go
...
1. Fixed the test failures which are caused by recent test framework rafactoring;
2. renamed the file to promote_experimental_flag_test.go.
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-11-19 01:51:06 +08:00
7e8ebf7727
server: added duplicate warning-unary-request-duration flag
...
--warning-unary-request-duration is a duplicate of --experimental-warning-unary-request-duration
experimental-warning-unary-request-duration will be removed in v3.7.
fixes https://github.com/etcd-io/etcd/issues/13783
Signed-off-by: Bogdan Kanivets <bkanivets@apple.com >
2022-11-18 18:06:00 +08:00
6d8139dcea
Merge pull request #14788 from sashamelentyev/imports
...
all: goimports -w .
2022-11-18 09:03:43 +08:00
2742bdc32a
Merge pull request #14752 from serathius/linearizability-raftBeforeLeaderSend
...
Linearizability raft before leader send
2022-11-18 08:56:11 +08:00
c3b6cbdb73
all: goimports -w .
...
Signed-off-by: Sasha Melentyev <sasha@melentyev.io >
2022-11-17 19:07:04 +03:00
9b3bfcdfeb
Merge pull request #14798 from tjungblu/fix_locking_tests
...
Fix TestCtlV3Lock/Elect flakes
2022-11-17 15:40:47 +01:00
371179e292
tests: Trigger raftBeforeLeaderSend
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-11-17 14:17:16 +01:00
eebfd15983
Fix TestCtlV3Lock/Elect flakes
...
waiting for a proper exit after a signal should ensure the goroutines
don't leak.
Signed-off-by: Thomas Jungblut <tjungblu@redhat.com >
2022-11-17 10:59:22 +01:00
bf3eea8831
tests: Allow creating client for EtcdProcess
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-11-17 10:48:14 +01:00
0c1901466f
test: add test case to cover the CommonName based authentication
...
Refer to https://github.com/etcd-io/etcd/issues/14764
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-11-16 18:34:34 +08:00
585054e448
test: add certificate with root CommonName
...
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-11-16 18:31:53 +08:00
7180267d56
tests: refactor EtcdProcessClusterConfig
with Functional Options Pattern
...
remove `cfg *EtcdProcessClusterConfig` param from `NewEtcdProcessCluster` function
Signed-off-by: Clark <fwyongxing@gmail.com >
2022-11-16 15:05:29 +08:00
9406de0033
tests: refactor EtcdProcessClusterConfig
with Functional Options Pattern
...
replace all initialisations with `DefaultConfig`, `NewConfig` and `EPClusterOption`
Signed-off-by: Clark <fwyongxing@gmail.com >
2022-11-16 15:05:28 +08:00
8438ddae3e
Merge pull request #14767 from sashamelentyev/print
...
all: Change Printf and friends to Print if there is no formatting
2022-11-16 10:38:20 +08:00
2c9c209eb6
all: Changing Printf and friends to Print if there is no formatting
...
Signed-off-by: Sasha Melentyev <sasha@melentyev.io >
2022-11-15 22:11:23 +03:00
8ae4420c4c
tests: Add compact failpoints
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-11-15 15:00:18 +01:00
39ca876f38
Merge pull request #14757 from ahrtr/add_failpoint_20221115
...
etcdserver: add failpoints for backend
2022-11-15 17:14:14 +08:00
cf190fb5b0
test: apply backend failpoints into the linearizablity test
...
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2022-11-15 16:36:56 +08:00
f8162919f9
Merge pull request #14744 from clarkfw/functional-options-pattern-EtcdProcessClusterConfig-2-1
...
tests: refactor `EtcdProcessClusterConfig` using Functional Options Pattern
2022-11-15 09:27:24 +01:00
f49d96f8b7
Merge pull request #14756 from sashamelentyev/time
...
all: Change time unit
2022-11-15 15:54:30 +08:00
d62e018495
Merge pull request #14755 from serathius/linearizability-traffic
...
tests: Make linearizability traffic extendable
2022-11-15 09:11:40 +08:00
006e747a44
all: Change time unit
...
Signed-off-by: Sasha Melentyev <sasha@melentyev.io >
2022-11-15 01:15:01 +03:00
2fc1485f29
tests: Make linearizability traffic extendable
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-11-14 23:14:10 +01:00
855aa4f7a7
all: Use ReplaceAll instead of Replace with -1 pos
...
Signed-off-by: Sasha Melentyev <sasha@melentyev.io >
2022-11-15 00:06:09 +03:00
ca8baeb308
Merge pull request #14685 from serathius/linearizability-revision
...
Revision inconsistency caused by panic during defrag
2022-11-14 12:49:22 +01:00
77cd6a660f
Merge pull request #14742 from fuweid/deflake-issue-14694
...
tests/e2e: disable testShellCompletion if enable cov flag
2022-11-14 12:41:40 +01:00
ff6c93f630
tests: Add revision to etcd linearizability model
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2022-11-14 12:20:55 +01:00