a7e94c4843
security: bump golang.org/x/net to v0.7.0 to address CVE GO-2023-1571
...
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2023-02-17 11:29:47 +08:00
c24ba4d3e8
Merge pull request #15320 from chaochn47/migrate_auth_tests_to_common
...
migrate 6 auth test cases to common #3
2023-02-16 11:40:34 +01:00
e603d92727
Merge pull request #15325 from serathius/linearizability-refactor-report
...
tests: Refactor file structure
2023-02-16 11:23:56 +01:00
ee6781bf6f
Bump to go 1.19.6
...
go 1.19.6 (released 2023-02-14) includes important security and bug fixes.
Signed-off-by: James Blair <mail@jamesblair.net >
2023-02-16 17:12:59 +08:00
c36ea3fdcf
migrate auto tests to common #3
...
Signed-off-by: Chao Chen <chaochn@amazon.com >
2023-02-15 11:08:01 -08:00
a36951ad18
tests: Extract report related functions and clean up main file
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2023-02-15 16:13:43 +01:00
116a3150c0
Merge pull request #15282 from serathius/linearizability-report-watch
...
test: Report watch histories
2023-02-15 16:00:10 +01:00
edfc963302
tests: Detect duplicate watch event
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2023-02-15 13:59:03 +01:00
0cd5c9ca37
tests: Refactor reporting results
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2023-02-15 13:02:42 +01:00
d99b1dbdaf
tests: Move results reporting to top and add reporting watch histories
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2023-02-15 13:02:42 +01:00
58d74e2b73
test: Refactor TestLinearizability function
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2023-02-15 13:02:42 +01:00
a64263cf49
tests: Refactor persisting single member dir
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2023-02-15 13:02:42 +01:00
d0e5c44f67
tests: Refactor getting test results directory
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2023-02-15 13:02:42 +01:00
2afaddd5b7
tests: Refactor getting longest history
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2023-02-15 13:02:42 +01:00
a806d155eb
Merge pull request #15323 from lavacat/main-mono-clock
...
tests: use monotonic clock for linearizability test history
2023-02-15 11:38:44 +01:00
25eb025fc0
Merge pull request #15293 from serathius/linearizability-bookmark
...
Codify kubernetes using response header revision as bookmark
2023-02-15 11:36:03 +01:00
d0c3112d5a
dependency: bump go.opentelemetry.io/otel from 1.11.2 to 1.13.0
...
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2023-02-15 18:33:00 +08:00
d2ccb12f36
tests: use monotonic clock for linearizability test history
...
Problem: time.Now() uses wall clock reading. See https://github.com/golang/go/blob/master/src/time/time.go#L17
"later time-telling operations use the wall clock reading, but later time-measuring operations, specifically comparisons and subtractions, use the monotonic clock reading."
This can cause 'Return' to be before 'Call' and wrong order of operations from different clients.
Solution: use same base time for all clients and only use 'time-measuring' operations to record timestamps for history.
Signed-off-by: Bogdan Kanivets <bkanivets@apple.com >
2023-02-15 01:37:21 -08:00
b55dbe88ca
tests: Codify kubernetes using response header revision as bookmark
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2023-02-15 10:26:34 +01:00
04ba936ea6
tests: Implement multi operation Txn
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2023-02-14 17:57:52 +01:00
b4f9bb45fc
tests: Allow multiple operations with same mod revisions, but forbid those operations to be spread between multiple responses
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2023-02-14 14:36:51 +01:00
6c439aa9e2
Merge pull request #15283 from serathius/linearizability-blackhole-refactor
...
tests: Refactor blackholing and add separate BlackholePeerUntilSnapsh…
2023-02-14 11:56:37 +01:00
1d8fe11ad9
dependency: bump golang.org/x/net from 0.5.0 to 0.6.0
...
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2023-02-14 17:40:47 +08:00
cc47f7bc7c
dependency: bump gopkg.in/natefinch/lumberjack.v2 from 2.0.0 to 2.2.1
...
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2023-02-14 17:40:47 +08:00
e569217a6d
tests: Refactor blackholing
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2023-02-14 09:38:10 +01:00
ed30d5415a
Merge pull request #15284 from serathius/funtional-remove
...
tests: Remove functional testing as they were replaced by linearizabi…
2023-02-13 12:32:04 +01:00
b4dfa9d34f
test: correct the logic of comparing revision in linearizablity/watch.go
...
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2023-02-13 19:22:31 +08:00
5f68ecc1ef
tests: Remove functional testing as they were replaced by linearizability tests
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2023-02-11 13:20:44 +01:00
87e271701b
test: enhance the test case TestV3WatchProgressOnMemberRestart
...
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2023-02-10 20:09:26 +08:00
36fc3cae65
clientv3: correct the nextRev on receving progress notification response
...
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2023-02-10 09:09:19 +08:00
3c64ae4b79
Merge pull request #15239 from jmhbnz/main
...
Adjust time resolution to microseconds
2023-02-09 13:45:00 +01:00
d0575e4f18
Merge pull request #15268 from lavacat/main-before-follower-send-failpoint
...
tests: trigger raftBeforeFollowerSend failpoint in linearizability test
2023-02-09 09:45:58 +01:00
4b91ae2800
tests: trigger raftBeforeFollowerSend failpoint in linearizability test
...
raftBeforeFollowerSend can only be triggered on Follower and won't work on 1 node cluster.
Had to split RandomFailpoint into RandomOneNodeClusterFailpoint and RandomMultiNodeClusterFailpoint
Signed-off-by: Bogdan Kanivets <bkanivets@apple.com >
2023-02-08 23:28:23 -08:00
39d98522d6
tests: Enable progress notify in linearizability tests
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2023-02-09 07:32:54 +08:00
189d90ab7b
tests: Validate watch responses in linearizability tests
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2023-02-06 16:58:17 +01:00
91b056968d
tests linearizability: trigger snapshot related failpoints
...
Signed-off-by: Bogdan Kanivets <bkanivets@apple.com >
2023-02-05 00:03:39 -08:00
2183a55b47
tests: forcestop member procs with signal kill
...
When the linearizability test cases run with three members, it might take
7-8s to stop three members, especially stopping the leader. The leader
will transfer the leadership and it might take more time to stop peer
listener.
In order to reduce the runtime, this commit is using signal kill to force
stop members instead of graceful shutdown.
REF: #15086
Signed-off-by: Wei Fu <fuweid89@gmail.com >
2023-02-03 23:06:40 +08:00
fa527c5e54
tests: support to stop the multiple members concurrently
...
Signed-off-by: Wei Fu <fuweid89@gmail.com >
2023-02-03 22:23:06 +08:00
5f27af9bb8
Fix regression in timestamp resolution
...
Historic capnslog timestamps are in microsecond resolution. We need to match that when we migrate to the zap logger.
Signed-off-by: James Blair <mail@jamesblair.net >
2023-02-03 21:42:01 +13:00
5a249fb3e2
tests/linearizability: remove PeerProxy for ClusterSize=1
...
Skip the peer traffic failpoint.
Signed-off-by: Wei Fu <fuweid89@gmail.com >
2023-02-01 18:04:11 +08:00
d814adbf94
Merge pull request #15227 from serathius/linearizability-trigger-fail
...
Linearizability disable defragment request in traffic to remove flakes
2023-02-01 09:26:08 +01:00
90b839dda7
tests: Disable defrag command as it caused problems with defragBeforeCopy failpoint
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2023-01-31 12:48:23 +01:00
f4cc163190
Merge pull request #15156 from Nordix/add-minmax-allow-tls13
...
Add TLSv1.3 support.
2023-01-31 10:11:38 +01:00
5ae405e646
Merge pull request #15202 from serathius/linearizability-logger
...
tests: Propagage logger through linearizability tests
2023-01-31 08:46:28 +01:00
23e89b98a3
bump bbolt to v1.3.7
...
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2023-01-31 07:04:29 +08:00
588b98d085
Add TLSv1.3 support.
...
Added optional TLS min/max protocol version and command line switches to set
versions for the etcd server.
If max version is not explicitly set by the user, let Go select the max
version which is currently TLSv1.3. Previously max version was set to TLSv1.2.
Signed-off-by: Tero Saarni <tero.saarni@est.tech >
2023-01-30 16:16:53 +02:00
0c004a6ce4
tests: Propagage logger through linearizability tests
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2023-01-30 14:30:21 +01:00
a8b6b05564
Merge pull request #15191 from serathius/linearizability-failpoints-timeout
...
tests: Increase failpoint timeout and add more logs
2023-01-30 14:05:23 +01:00
535ade8eb2
tests: Increase failpoint timeout and add more logs
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2023-01-30 13:26:33 +01:00
3d3cb460a0
test: reorder the import items in linearizability/model/model.go
...
Signed-off-by: Benjamin Wang <wachao@vmware.com >
2023-01-29 06:12:03 +08:00