etcd-io / etcd-io/etcd

Reduce the time e2e tests take

Open
#18,983 34 comments 0 reactions 1 assignee Claimed by @yagikota View on GitHub
area/testing help wanted type/feature
Dominant language
Go
Stars
52.3k
Forks
10.5k
Avg merge
2d 21h
Merged PRs (30d)
43

Description

### What would you like to be added?

E2e tests are taking over 40 minutes now, we should keep them unver 30 minutes or even lower.

For the top test candidates to optimize use https://testgrid.k8s.io/sig-etcd-periodics#ci-etcd-e2e-amd64&graph-metrics=test-duration-minutes

Current state
* go.etcd.io/etcd/tests/v3/common.TestMemberAdd > 5 minutes
* go.etcd.io/etcd/tests/v3/common.TestMemberRemove > 2 minutes
* go.etcd.io/etcd/tests/v3/e2e.TestAuthority > 1.5 minutes
* go.etcd.io/etcd/tests/v3/e2e.TestRuntimeReconfigGrowClusterSize > 1 minute
* go.etcd.io/etcd/tests/v3/common.TestUserAdd_Simple > 1 minute
* go.etcd.io/etcd/tests/v3/common.TestLeaseGrantAndList ~ 50 seconds
* go.etcd.io/etcd/tests/v3/e2e.TestVerifyHashKVAfterCompact ~50 seconds
* go.etcd.io/etcd/tests/v3/e2e.TestMixVersionsSnapshotByMockingPartition ~ 40 seconds
* go.etcd.io/etcd/tests/v3/common.TestKVDelete ~ 40 seconds
* go.etcd.io/etcd/tests/v3/common.TestLeaseGrantTimeToLiveExpired ~ 35 seconds
* go.etcd.io/etcd/tests/v3/e2e.TestWatchDelayForManualProgressNotification ~ 35 seconds
...

Looking for someone to take a look at the top tests and propose improvements to reduce runtime

![image](https://github.com/user-attachments/assets/18681f39-28e1-4447-a27b-2d682c626e4d)

### Why is this needed?

We should keep the test execution time low to ensure good contributor expirience.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.