Benjamin Wang
5cc9f7f771
Merge pull request #16835 from chaochn47/e2e-livez-readyz
...
add livez readyz e2e tests
2023-10-29 15:54:57 +00:00
Chao Chen
42d9e43e5f
tests/e2e: enhance livez readyz e2e tests
...
Signed-off-by: Chao Chen <chaochn@amazon.com>
2023-10-28 18:00:14 -07:00
Marek Siarkowicz
e8ae83fac4
Add e2e tests for livez readyz
...
Signed-off-by: Chao Chen <chaochn@amazon.com>
2023-10-28 17:57:12 -07:00
Chao Chen
8a6c1335e2
v3rpc: run health notifier to listen on online defrag state change
...
Signed-off-by: Chao Chen <chaochn@amazon.com>
2023-10-28 17:49:24 -07:00
Benjamin Wang
1101655b9f
bump bbolt to 1.3.8 for main branch
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-10-26 16:34:15 +01:00
Chao Chen
913c8258f9
tests: add client failover on defrag test case in e2e
...
Signed-off-by: Chao Chen <chaochn@amazon.com>
2023-10-25 08:59:07 -07:00
Chao Chen
ea035471ce
online defrag notifies gRPC health server to expose NOT_SERVING status
...
Signed-off-by: Chao Chen <chaochn@amazon.com>
2023-10-25 08:58:33 -07:00
Benjamin Wang
ae60b5567a
bump raft to latest commit
...
Signed-off-by: Benjamin Wang <wachao@vmware.com>
2023-10-24 10:17:57 +01:00
James Blair
d2af596a98
depdendency: bump github.com/prometheus/common from 0.44.0 to 0.45.0.
...
Signed-off-by: James Blair <mail@jamesblair.net>
2023-10-24 17:44:01 +13:00
James Blair
e6e740fb80
depdendency: bump google.golang.org/grpc from 1.58.3 to 1.59.0.
...
Signed-off-by: James Blair <mail@jamesblair.net>
2023-10-24 17:39:39 +13:00
Benjamin Wang
44ce4f9280
Merge pull request #16698 from chaochn47/health_check_e2e_test
...
add existing http health check handler e2e test
2023-10-19 10:41:01 +01:00
Marek Siarkowicz
45fb4565e3
Merge pull request #16786 from serathius/robustness-drop-packet
...
Implement random packet dropping
2023-10-19 08:44:23 +02:00
Chao Chen
1324f03254
add existing http health check handler e2e test
...
Signed-off-by: Chao Chen <chaochn@amazon.com>
2023-10-18 12:42:23 -07:00
Benjamin Wang
d8c410ff82
Merge pull request #16791 from chaochn47/remove-deprecated-gRPC-API
...
remove deprecated gRPC API usage
2023-10-18 11:13:09 +01:00
Marek Siarkowicz
aa28a69ce0
Implement random packet dropping
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-10-18 10:14:43 +02:00
Chao Chen
3c6d2e972d
remove deprecated gRPC API usage
...
Signed-off-by: Chao Chen <chaochn@amazon.com>
2023-10-17 15:51:25 -07:00
Wei Fu
aea1cd0077
feat: enable unparam lint
...
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-10-17 21:24:13 +08:00
Marek Siarkowicz
e51b639520
Merge pull request #16766 from serathius/robustness-member-replace
...
Add member replace failpoint to robustness tests
2023-10-17 13:36:21 +02:00
Marek Siarkowicz
5fed813f2e
Merge pull request #16767 from serathius/robustness-main-test
...
Make the main_test the entrypoint and move senario generation to separate file
2023-10-17 13:09:16 +02:00
Sharath Sivakumar
b5622a24ba
dependency: bump github.com/google/go-cmp from 0.5.9 to 0.6.0
...
Signed-off-by: Sharath Sivakumar <mailssr9@gmail.com>
2023-10-17 11:24:25 +02:00
Marek Siarkowicz
7e8bb15ccb
Add member replace failpoint to robustness tests
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-10-17 11:17:49 +02:00
Sharath Sivakumar
447aa33a96
dependency: bump golang.org/x/sync from 0.3.0 to 0.4.0
...
Signed-off-by: Sharath Sivakumar <mailssr9@gmail.com>
2023-10-17 11:15:22 +02:00
Marek Siarkowicz
0d83a72cf5
Split failpoints file
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-10-17 09:51:43 +02:00
Marek Siarkowicz
452e820516
Make the main_test the entrypoint and move senario generation to separate file
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-10-16 22:10:41 +02:00
Marek Siarkowicz
d6e376b6c6
Move failpoints to separate package
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-10-16 20:57:31 +02:00
Marek Siarkowicz
4791964173
Merge pull request #16757 from serathius/minimal-time
...
Use the minimal time event was observed on watch
2023-10-16 11:25:30 +02:00
Marek Siarkowicz
841731bbf0
Fix linearization failure not causing test failure
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-10-13 18:56:22 +02:00
Marek Siarkowicz
4c7b8dbc94
Use the minimal time event was observed on watch
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-10-13 18:17:29 +02:00
Marek Siarkowicz
57d9a7eec6
Merge pull request #16756 from serathius/robustness-reorder-validation
...
Refactor and reorder validation to avoid reporting multiple correlated failures
2023-10-13 18:12:25 +02:00
Marek Siarkowicz
b02798e946
Refactor and reorder validation to avoid reporting multiple corelated failures
...
It doesn't make sense to report watch failure if key value operations
are not linearizable.
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-10-13 14:06:13 +02:00
Benjamin Wang
a92e0de316
Merge pull request #16753 from fuweid/deflake-TestEtcdTLSVersion
...
tests: deflake TestEtcdTLSVersion
2023-10-13 10:28:04 +01:00
Wei Fu
6f95ea04be
tests: deflake TestEtcdTLSVersion
...
The proc.Stop just sends the SIGTERM to etcd server. The etcd server
needs time to teardown. If we don't wait for it, the etcd server will
hold the port and then next test case, like TestGrpcProxyAutoSync, will
fail to listen on the port 20000.
```bash
file_/__w/etcd/etcd/tests/fixtures/server.crt_--peer-key-file_/__w/etcd/etcd/tests/fixtures/server.key.insecure_--cert-file_/__w/etcd/etcd/tests/fixtures/server2.crt_--key-file_/__w/etcd/etcd/tests/fixtures/server2.key.insecure_--tls-min-version_TLS1.2_--tls-max-version_TLS1.3) (32856): {"level":"info","ts":"2023-10-13T06:12:32.718845Z","caller":"embed/etcd.go:394","msg":"closing etcd server","name":"e1","data-dir":"/tmp/TestEtcdTLSVersion284993522/001","advertise-peer-urls":["https://127.0.0.1:20000 "],"advertise-client-urls":["https://0.0.0.0:0 "]}
2023-10-13T06:12:32.7399709Z --- PASS: TestEtcdTLSVersion (1.03s)
2023-10-13T06:12:32.7400181Z === RUN TestGrpcProxyAutoSync
2023-10-13T06:12:32.7401203Z logger.go:130: 2023-10-13T06:12:32.719Z INFO starting server... {"name": "TestGrpcProxyAutoSync-test-0"}
2023-10-13T06:12:32.7408306Z logger.go:130: 2023-10-13T06:12:32.719Z INFO spawning process {"args": ["/__w/etcd/etcd/bin/etcd", "--name=TestGrpcProxyAutoSync-test-0", "--listen-client-urls=http://localhost:20000 ", "--advertise-client-urls=http://localhost:20000 ", "--listen-peer-urls=http://localhost:20001 ", "--initial-advertise-peer-urls=http://localhost:20001 ", "--initial-cluster-token=new", "--data-dir", "/tmp/TestGrpcProxyAutoSync1139610722/001", "--snapshot-count=10000", "--initial-cluster-token=new", "--initial-cluster=TestGrpcProxyAutoSync-test-0=http://localhost:20001 ", "--initial-cluster-state=new"], "working-dir": "/__w/etcd/etcd/tests/e2e", "name": "TestGrpcProxyAutoSync-test-0", "environment-variables": ["ETCD_VERIFY=all", "EXPECT_DEBUG=true", "PATH=/__t/go/1.21.3/x64/bin:/go/bin:/__t/go/1.21.3/x64/bin:/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin", "ETCD_UNSUPPORTED_ARCH=amd64"]}
...
2023-10-13T06:12:32.7559855Z /__w/etcd/etcd/bin/etcd (TestGrpcProxyAutoSync-test-0) (32863): {"level":"fatal","ts":"2023-10-13T06:12:32.735191Z","caller":"etcdmain/etcd.go:181","msg":"discovery failed","error":"listen tcp 127.0.0.1:20000: bind: address already in use","stacktrace":"go.etcd.io/etcd/server/v3/etcdmain.startEtcdOrProxyV2\n\tgo.etcd.io/etcd/server/v3/etcdmain/etcd.go:181\ngo.etcd.io/etcd/server/v3/etcdmain.Main\n\tgo.etcd.io/etcd/server/v3/etcdmain/main.go:40\nmain.main\n\tgo.etcd.io/etcd/server/v3/main.go:31\nruntime.main\n\truntime/proc.go:267"}
```
Signed-off-by: Wei Fu <fuweid89@gmail.com>
2023-10-13 16:48:37 +08:00
Marek Siarkowicz
c34ccfbc06
Dynamically generate flags passed to etcd binary
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-10-12 17:31:56 +02:00
Marek Siarkowicz
2c86103472
Merge pull request #16748 from serathius/test-dynamic-flags-v2
...
Test dynamic flags v2
2023-10-12 17:26:18 +02:00
Marek Siarkowicz
c71f60e797
Remove duplicated test
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-10-12 14:09:31 +02:00
Marek Siarkowicz
05cc60a539
Use contain to make tests clearer and more resilient to changes
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-10-12 14:09:31 +02:00
Marek Siarkowicz
6f63f4b676
Use single string to define a flag allowing for easier testing
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-10-12 14:09:29 +02:00
Marek Siarkowicz
d69378bbbd
Merge pull request #16747 from serathius/test-dynamic-flags
...
Add tests to prepare to dynamic flag generation
2023-10-12 10:47:11 +02:00
Marek Siarkowicz
6d9a0a40b0
Add tests to prepare to dynamic flag generation
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-10-11 23:31:39 +02:00
Allen Ray
e4c0eb7712
bump google.golang.org/grpc to v1.58.3
...
Signed-off-by: Allen Ray <alray@redhat.com>
2023-10-11 10:39:05 -04:00
Allen Ray
3a61187ce3
bump golang.org/x/net to v0.17.0
...
Address CVE-2023-39325 and CVE-2023-44487
Signed-off-by: Allen Ray <alray@redhat.com>
2023-10-11 10:09:14 -04:00
Marek Siarkowicz
9f40116fa0
Return to default write scheduler since golang.org/x/net@v0.11.0 started using round robin
...
Introduction of round robin 120fc906b3
Added in v0.10.0 https://github.com/golang/net/compare/v0.10.0...v0.11.0
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-10-10 16:31:42 +02:00
Sharath Sivakumar
d884580432
dependency: bump go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc from 0.44.0 to 0.45.0
...
Signed-off-by: Sharath Sivakumar <mailssr9@gmail.com>
2023-10-10 11:50:54 +02:00
Sharath Sivakumar
c94deb9511
dependency: bump github.com/prometheus/client_model from 0.4.1-0.20230718164431-9a2bf3000d16 to 0.5.0
...
Signed-off-by: Sharath Sivakumar <mailssr9@gmail.com>
2023-10-10 11:49:36 +02:00
Sharath Sivakumar
1b1c42a7aa
dependency: bump golang.org/x/net from 0.15.0 to 0.16.0
...
Signed-off-by: Sharath Sivakumar <mailssr9@gmail.com>
2023-10-10 11:49:35 +02:00
Marek Siarkowicz
de39c75053
Merge pull request #16711 from serathius/robustness-fix-profile
...
Fix providing profile to robustness tests
2023-10-09 09:52:55 +02:00
Marek Siarkowicz
b4d54922eb
Fix providing profile to robustness tests
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-10-08 21:27:22 +02:00
Marek Siarkowicz
f5e82260da
Fix parsing failpoint names when failpoint has value set
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-10-07 18:20:18 +02:00
Marek Siarkowicz
05a77032fc
Inject sleep during etcd bootstrap to reproduce https://github.com/etcd-io/etcd/issues/16666
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-10-07 12:31:56 +02:00
Marek Siarkowicz
3f859a626b
Merge pull request #16695 from serathius/watch-validation-revision
...
Fix watch validation assuming that client requesting older watch revision
2023-10-05 19:17:51 +02:00