1db0fc5818
Merge pull request #19616 from mmorel-35/testifier/tests/integration
...
chore: use testify instead of testing in tests/integration
2025-03-24 15:57:36 +00:00
211f9e52cb
e2e: add upgrade test for clusters set up by promoted members
...
Signed-off-by: Wei Fu <fuweid89@gmail.com >
2025-03-24 09:48:40 -04:00
ee2f4e0e9b
return the string representative of the CurrentVersion value
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com >
2025-03-21 22:00:06 +00:00
29878cf735
minor refactor DowngradeUpgradeMembersByID to not block on waiting for member to be ready
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com >
2025-03-21 17:09:02 +00:00
4ea0bb6e46
dependency: bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc from 1.34.0 to 1.35.0
...
This commit will bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc from 1.34.0 to 1.35.0
Also, it bumps indirect dependency: go.opentelemetry.io/otel/exporters/otlp/otlptrace from 1.34.0 to 1.35.0
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com >
2025-03-19 22:58:07 +05:30
bb855eb570
dependency: bump golang.org/x/time from 0.10.0 to 0.11.0
...
This commit will bump golang.org/x/time from 0.10.0 to 0.11.0
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com >
2025-03-19 22:42:14 +05:30
2e568f6ff6
dependency: bump google.golang.org/grpc from 1.70.0 to 1.71.0
...
This commit will bump google.golang.org/grpc from 1.70.0 to 1.71.0
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com >
2025-03-19 22:30:05 +05:30
040e5ed65c
Merge pull request #19585 from ArkaSaha30/deps_mgmt_10_03_25
...
[2025-02-10] Manual Dependency Bump
2025-03-17 07:41:32 +00:00
b988791c8e
Merge pull request #19594 from ivanvc/rename-robustness-makefile
...
test/robustness: rename makefile.mk to Makefile
2025-03-16 12:59:27 +01:00
d05b8b7611
chore: use testify instead of testing in tests/integration
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2025-03-15 19:29:30 +01:00
b692041b69
Fix wrong error message in loadKeyValueOperations
...
Signed-off-by: Chun-Hung Tseng <henrytseng@google.com >
2025-03-15 13:33:13 +01:00
49b4137746
Update the robustness test README
...
- wordsmithing
- fix broken links
Signed-off-by: Chun-Hung Tseng <henrytseng@google.com >
2025-03-15 10:42:03 +01:00
40f21b203b
dependency: bump github.com/anishathalye/porcupine from v1.0.0 to v1.0.2
...
This commit will bump github.com/anishathalye/porcupine from v1.0.0 to v1.0.2
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com >
2025-03-15 13:32:25 +05:30
5122d43d87
Merge pull request #19596 from mmorel-35/usetesting/tests/robustness
...
tests/robustness: address Go 1.24 usetesting issues
2025-03-14 17:30:04 +00:00
d100da7431
Merge pull request #19595 from mmorel-35/usetesting/tests/framework
...
tests/framework: address Go 1.24 usetesting issues
2025-03-14 17:29:51 +00:00
e31514dc84
Merge pull request #19593 from mmorel-35/usetesting/tests/e2e
...
tests/e2e: address Go 1.24 usetesting issues
2025-03-14 17:29:38 +00:00
be3eee2597
test/robustness: rename makefile.mk to Makefile
...
Allow to execute make targets from the tests/robustness directory.
Signed-off-by: Ivan Valdes <ivan@vald.es >
2025-03-14 09:44:03 -07:00
aedecad09f
dependency: bump github.com/prometheus/client_golang from 1.21.0 to 1.21.1
...
This commit will bump github.com/prometheus/client_golang from 1.21.0 to 1.21.1
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com >
2025-03-14 15:34:42 +05:30
5eeacec087
dependency: bump github.com/alexfalkowski/gocovmerge from 1.4.0 to 1.6.0
...
This commit will bump github.com/alexfalkowski/gocovmerge from 1.4.0 to 1.6.0
As an indirect dependency it also bumps,
- golang.org/x/crypto from 0.35.0 to 0.36.0
- golang.org/x/net from 0.36.0 to 0.37.0
- golang.org/x/sync from 0.11.0 to 0.12.0
- golang.org/x/text from 0.22.0 to 0.23.0
- golang.org/x/mod from 0.23.0 to 0.24.0
- golang.org/x/term from 0.29.0 to 0.30.0
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com >
2025-03-14 15:34:42 +05:30
a72780654d
dependency: bump go.opentelemetry.io/otel/sdk from 1.34.0 to 1.35.0
...
This commit will bump go.opentelemetry.io/otel/sdk from 1.34.0 to 1.35.0
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com >
2025-03-14 15:34:42 +05:30
75742cf025
dependency: bump golang.org/x/sys from 0.30.0 to 0.31.0
...
This commit will bump golang.org/x/sys from 0.30.0 to 0.31.0
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com >
2025-03-14 15:34:29 +05:30
d87cb88d57
tests/common: address Go 1.24 usetesting issues
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2025-03-13 22:03:50 +01:00
175f18ee8e
tests/framework: address Go 1.24 usetesting issues
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2025-03-13 20:18:20 +01:00
b92073d1cb
tests/e2e: address Go 1.24 usetesting issues
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2025-03-13 20:16:52 +01:00
2717859dab
tests/robustness: address Go 1.24 usetesting issues
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2025-03-13 20:11:57 +01:00
a3b17f5ba8
dependency: bump go.opentelemetry.io/otel from 1.34.0 to 1.35.0
...
This commit will bump go.opentelemetry.io/otel from 1.34.0 to 1.35.0
Also bumps,
- go.opentelemetry.io/otel/trace from 1.34.0 to 1.35.0
- go.opentelemetry.io/otel/metric from 1.34.0 to 1.35.0
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com >
2025-03-13 14:45:35 +05:30
890990c32c
Use clientPutCount instead of persistedPutCount as not all client requests are persisted
...
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com >
2025-03-07 10:52:54 +01:00
22b5b78530
Merge pull request #19383 from joshuazh-x/issue-19303
...
fix: skip duplicated puts when calculating put return time
2025-03-07 10:35:15 +01:00
8e4de789e5
Merge pull request #19440 from ivanvc/bump-go-to-1.24.0
...
Bump go toolchain to 1.24.1
2025-03-06 07:51:04 +00:00
f0a1ec501b
Merge pull request #19538 from fuweid/deflaky-TestCompactionHash-in-integration
...
deflakey: TestCompactionHash in integration
2025-03-05 18:56:07 +00:00
028773129a
Bump go toolchain to 1.24.1
...
Signed-off-by: Ivan Valdes <ivan@vald.es >
2025-03-05 09:00:05 -08:00
b58e9f522f
deflakey: TestCompactionHash in integration
...
We should use WithCompactPhysical to wait for compaction to finish,
because 50ms sleep can't guarantee compaction is done.
Based on the log, the defragment is finished before compaction, which is
not expected. This patch is to make sure compaction should be finished
before assertation.
```
=========================== defragment ==============
logger.go:146: 2025-02-27T07:57:18.652Z INFO m0 finished defragment {"member": "m0"}
=====================================================
logger.go:146: 2025-02-27T07:57:18.652Z INFO m0 grpc service status changed {"member": "m0", "service": "", "status": "SERVING"}
logger.go:146: 2025-02-27T07:57:18.653Z INFO grpc [[core] [Channel #1457 ]Channel Connectivity change to SHUTDOWN]
logger.go:146: 2025-02-27T07:57:18.653Z INFO grpc [[core] [Channel #1457 ]Closing the name resolver]
logger.go:146: 2025-02-27T07:57:18.653Z INFO grpc [[core] [Channel #1457 ]ccBalancerWrapper: closing]
logger.go:146: 2025-02-27T07:57:18.653Z INFO grpc [[core] [Channel #1457 SubChannel #1458 ]Subchannel Connectivity change to SHUTDOWN]
logger.go:146: 2025-02-27T07:57:18.653Z INFO grpc [[core] [Channel #1457 SubChannel #1458 ]Subchannel deleted]
logger.go:146: 2025-02-27T07:57:18.654Z INFO grpc [[transport] [client-transport 0xc00237bd48] Closing: rpc error: code = Canceled desc = grpc: the client connection is closing]
logger.go:146: 2025-02-27T07:57:18.654Z INFO grpc [[transport] [client-transport 0xc00237bd48] loopyWriter exiting with error: rpc error: code = Canceled desc = grpc: the client connection is closing]
logger.go:146: 2025-02-27T07:57:18.654Z INFO grpc [[transport] [server-transport 0xc0006bb520] Closing: EOF]
logger.go:146: 2025-02-27T07:57:18.654Z INFO grpc [[core] [Channel #1457 ]Channel deleted]
logger.go:146: 2025-02-27T07:57:18.654Z INFO grpc [[transport] [server-transport 0xc0006bb520] loopyWriter exiting with error: transport closed by client]
hash.go:82:
Error Trace: /home/prow/go/src/github.com/etcd-io/etcd/server/storage/mvcc/testutil/hash.go:82
/home/prow/go/src/github.com/etcd-io/etcd/server/storage/mvcc/testutil/hash.go:44
Error: Not equal:
expected: testutil.KeyValueHash{Hash:0x94694091, CompactRevision:1278, Revision:2507}
actual : testutil.KeyValueHash{Hash:0x58af47dc, CompactRevision:2488, Revision:2507}
Diff:
--- Expected
+++ Actual
@@ -1,4 +1,4 @@
(testutil.KeyValueHash) {
- Hash: (uint32) 2489925777,
- CompactRevision: (int64) 1278,
+ Hash: (uint32) 1487882204,
+ CompactRevision: (int64) 2488,
Revision: (int64) 2507
Test: TestCompactionHash
Messages: hashes do not match on rev 2488
cluster.go:1423: ========= Cluster termination started =====================
logger.go:146: 2025-02-27T07:57:18.655Z INFO grpc [[core] [Channel #1377 ]Channel Connectivity change to SHUTDOWN]
logger.go:146: 2025-02-27T07:57:18.655Z INFO grpc [[core] [Channel #1377 ]Closing the name resolver]
logger.go:146: 2025-02-27T07:57:18.655Z INFO grpc [[core] [Channel #1377 ]ccBalancerWrapper: closing]
logger.go:146: 2025-02-27T07:57:18.656Z INFO grpc [[core] [Channel #1377 SubChannel #1378 ]Subchannel Connectivity change to SHUTDOWN]
logger.go:146: 2025-02-27T07:57:18.656Z INFO grpc [[core] [Channel #1377 SubChannel #1378 ]Subchannel deleted]
logger.go:146: 2025-02-27T07:57:18.656Z INFO grpc [[transport] [client-transport 0xc0025f2248] Closing: rpc error: code = Canceled desc = grpc: the client connection is closing]
logger.go:146: 2025-02-27T07:57:18.656Z INFO grpc [[transport] [client-transport 0xc0025f2248] loopyWriter exiting with error: rpc error: code = Canceled desc = grpc: the client connection is closing]
logger.go:146: 2025-02-27T07:57:18.656Z INFO grpc [[transport] [server-transport 0xc000b56ea0] Closing: EOF]
=========================== compaction ==============
logger.go:146: 2025-02-27T07:57:18.656Z INFO m0 finished scheduled compaction {"member": "m0", "compact-revision": 2488, "took": "129.590742ms", "hash": 2489925777, "current-db-size-bytes": 40960, "current-db-size": "41 kB", "current-db-size-in-use-bytes": 40960, "current-db-size-in-use": "41 kB"}
=====================================================
```
Fixes : #19497
Signed-off-by: Wei Fu <fuweid89@gmail.com >
2025-03-05 11:56:36 -05:00
31ff0a9cc8
dependency: bump github.com/rogpeppe/go-internal from v1.13.1 to v1.14.1
...
This commit will bump inderect dependency(of github.com/golangci/golangci-lint) github.com/rogpeppe/go-internal from v1.13.1 to v1.14.1
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com >
2025-03-05 13:10:52 +05:30
b9ceba8c9f
dependency: bump golang.org/x/net from v0.35.0 to v0.36.0
...
This commit will bump dependency golang.org/x/net from v0.35.0 to v0.36.0
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com >
2025-03-05 13:10:52 +05:30
04710062d1
dependency: bump github.com/prometheus/client_golang from 1.20.5 to 1.21.0
...
This commit will bump dependency github.com/prometheus/client_golang from 1.20.5 to 1.21.0
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com >
2025-03-05 13:10:52 +05:30
7c866508ef
dependency: bump github.com/klauspost/compress from 1.17.9 to 1.18.0
...
This commit will bump dependency github.com/klauspost/compress from 1.17.9 to 1.18.0
which is an indirect dependency of the direct dependency: github.com/prometheus/client_golang
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com >
2025-03-05 13:10:52 +05:30
a9b24c6523
dependency: bump golang.org/x/crypto from 0.33.0 to 0.35.0
...
This commit will bump dependency golang.org/x/crypto from 0.33.0 to 0.35.0
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com >
2025-03-05 13:10:42 +05:30
ceb11b7ce9
dependency: bump github.com/cheggaaa/pb/v3 from 3.1.6 to 3.1.7
...
This commit will bump dependency github.com/cheggaaa/pb/v3 from 3.1.6 to 3.1.7
Signed-off-by: ArkaSaha30 <arkasaha30@gmail.com >
2025-03-05 13:10:42 +05:30
e2459c0323
Bump grpc-gateway to v2.26.3
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com >
2025-03-04 18:00:03 +00:00
65691111dc
Create an e2e test to reproduce the issue of etcdserver crashing on REST watch requests
...
Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com >
2025-03-04 14:00:25 +00:00
3e43e4594e
tests: deflakey TestLeaseGrantKeepAliveOnce
...
Signed-off-by: tcchawla <tc.chawla2000@gmail.com >
2025-03-02 16:53:54 +05:30
a423349c07
Merge pull request #19488 from mmorel-35/golangci-lint/usetesting
...
chore: use usetesting instead of tenv
2025-02-27 07:50:17 +00:00
a8d8c1887f
chore: use usetesting instead of tenv
...
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com >
2025-02-26 07:54:22 +01:00
16b1460b5d
Address Go 1.24 govet errors
...
Signed-off-by: Ivan Valdes <ivan@vald.es >
2025-02-25 17:10:56 -08:00
4a9ab7c380
Merge pull request #19473 from ahrtr/test_lease_20250224
...
Fix flaky `TestLeaseKeepAliveOneSecond`
2025-02-25 18:23:06 +00:00
5e89197c28
dependency: bump honnef.co/go/tools from 0.5.1 to 0.6.0 and bump golang.org/x/net from 0.34.0 to 0.35.0
...
Reference:
- https://github.com/etcd-io/etcd/pull/19434
= https://github.com/etcd-io/etcd/pull/19437
Signed-off-by: Chun-Hung Tseng <henrytseng@google.com >
2025-02-25 14:01:35 +00:00
f1af8b9e92
dependency: bump github.com/spf13/cobra from 1.8.1 to 1.9.1
...
Reference:
- https://github.com/etcd-io/etcd/pull/19438
Signed-off-by: Chun-Hung Tseng <henrytseng@google.com >
2025-02-25 14:01:35 +00:00
8e44d3ac65
Merge pull request #19476 from fuweid/fix-17504
...
tests: deflakey TestLeaseGrantTimeToLiveExpired
2025-02-25 09:40:19 +00:00
c81fb870bb
tests: deflakey TestLeaseGrantTimeToLiveExpired
...
The following change can reproduce the issue #17504 by
`TESTCASE=TestLeaseGrantTimeToLiveExpired/PeerAutoTLS make test-e2e`. We
can retry it to reduce flakey possibility, if there is leader change.
```diff
diff --git a/tests/common/lease_test.go b/tests/common/lease_test.go
index afb27c330..dea8459dc 100644
--- a/tests/common/lease_test.go
+++ b/tests/common/lease_test.go
@@ -16,6 +16,7 @@ package common
import (
"context"
+ "sync"
"testing"
"time"
@@ -139,6 +140,18 @@ func TestLeaseGrantTimeToLiveExpired(t *testing.T) {
require.NoError(t, err)
require.Equal(t, int64(1), getResp.Count)
+ var wg sync.WaitGroup
+ defer wg.Wait()
+
+ wg.Add(1)
+ go func() {
+ defer wg.Done()
+ time.Sleep(1000 * time.Millisecond)
+ clus.(interface {
+ MoveLeader(ctx context.Context, t testing.TB, i int) error
+ }).MoveLeader(ctx, t, (clus.WaitLeader(t)+1)%len(clus.Members()))
+ }()
+
time.Sleep(3 * time.Second)
ttlResp, err := cc.TimeToLive(ctx, leaseResp.ID, config.LeaseOption{})
```
Signed-off-by: Wei Fu <fuweid89@gmail.com >
2025-02-24 18:09:06 -05:00
43df62f6b9
Address issues reported by golangci-lint after bumping the version to v1.64.5
...
Signed-off-by: Chun-Hung Tseng <henrytseng@google.com >
2025-02-24 21:35:34 +00:00