Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: Implement network delay and blackholing in linearizability tests #15048

Merged
merged 1 commit into from
Jan 9, 2023

Conversation

serathius
Copy link
Member

@codecov-commenter
Copy link

codecov-commenter commented Dec 26, 2022

Codecov Report

Merging #15048 (47a592f) into main (de8b914) will decrease coverage by 0.08%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main   #15048      +/-   ##
==========================================
- Coverage   74.72%   74.64%   -0.09%     
==========================================
  Files         415      415              
  Lines       34273    34273              
==========================================
- Hits        25611    25583      -28     
- Misses       7026     7046      +20     
- Partials     1636     1644       +8     
Flag Coverage Δ
all 74.64% <ø> (-0.09%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
client/v3/namespace/watch.go 87.87% <0.00%> (-6.07%) ⬇️
client/pkg/v3/testutil/leak.go 62.83% <0.00%> (-4.43%) ⬇️
client/v3/concurrency/session.go 85.10% <0.00%> (-4.26%) ⬇️
server/proxy/grpcproxy/watch.go 92.48% <0.00%> (-4.05%) ⬇️
client/v3/leasing/txn.go 88.09% <0.00%> (-3.18%) ⬇️
server/etcdserver/api/v3rpc/interceptor.go 74.47% <0.00%> (-3.13%) ⬇️
client/v3/experimental/recipes/key.go 75.34% <0.00%> (-2.74%) ⬇️
server/etcdserver/api/v3rpc/auth.go 79.34% <0.00%> (-2.18%) ⬇️
server/etcdserver/metrics.go 80.85% <0.00%> (-2.13%) ⬇️
server/etcdserver/api/v3rpc/maintenance.go 73.50% <0.00%> (-1.33%) ⬇️
... and 9 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@@ -56,6 +56,8 @@ var (
CompactBeforeCommitBatchPanic Failpoint = goPanicFailpoint{"compactBeforeCommitBatch", triggerCompact, AnyMember}
CompactAfterCommitBatchPanic Failpoint = goPanicFailpoint{"compactAfterCommitBatch", triggerCompact, AnyMember}
RaftBeforeLeaderSendPanic Failpoint = goPanicFailpoint{"raftBeforeLeaderSend", nil, Leader}
BlackholePeerNetwork Failpoint = blackholePeerNetworkFailpoint{duration: time.Second}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: have you considered adding target (Leader, Follower, Quorum, All)? Similar to current functional test cases

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now I focused on getting proxy integrated into e2e. There are definitely couple of important cases in network functional failpoints that we should implement. Will add it to #14045

tests/linearizability/failpoints.go Show resolved Hide resolved
tests/linearizability/failpoints.go Show resolved Hide resolved
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
@serathius serathius merged commit acf3782 into etcd-io:main Jan 9, 2023
@serathius serathius deleted the linearizability-network branch June 15, 2023 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants