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: Add triggering random go failpoints to linearizability tests #14687

Merged
merged 1 commit into from
Nov 7, 2022

Conversation

serathius
Copy link
Member

@serathius serathius force-pushed the random-failpoint branch 3 times, most recently from 316baa8 to 37b5ddc Compare November 4, 2022 14:02
@codecov-commenter
Copy link

Codecov Report

Merging #14687 (37b5ddc) into main (e614eec) will increase coverage by 0.07%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main   #14687      +/-   ##
==========================================
+ Coverage   75.44%   75.52%   +0.07%     
==========================================
  Files         457      457              
  Lines       37299    37299              
==========================================
+ Hits        28141    28169      +28     
+ Misses       7382     7361      -21     
+ Partials     1776     1769       -7     
Flag Coverage Δ
all 75.52% <ø> (+0.07%) ⬆️

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

Impacted Files Coverage Δ
server/proxy/grpcproxy/watch.go 92.48% <0.00%> (-4.05%) ⬇️
client/v3/leasing/cache.go 87.77% <0.00%> (-3.89%) ⬇️
client/v3/leasing/txn.go 88.09% <0.00%> (-3.18%) ⬇️
client/v3/leasing/kv.go 89.03% <0.00%> (-1.67%) ⬇️
server/auth/store.go 84.23% <0.00%> (-1.15%) ⬇️
pkg/schedule/schedule.go 80.45% <0.00%> (-1.15%) ⬇️
server/storage/mvcc/watchable_store.go 85.14% <0.00%> (-1.09%) ⬇️
server/proxy/grpcproxy/lease.go 88.23% <0.00%> (-0.91%) ⬇️
client/v3/experimental/recipes/key.go 75.34% <0.00%> (ø)
client/v3/watch.go 93.82% <0.00%> (+0.19%) ⬆️
... and 18 more

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

@@ -130,7 +130,7 @@ func triggerFailpoints(ctx context.Context, clus *e2e.EtcdProcessCluster, config
for successes < config.count && failures < config.count {
err = config.failpoint.Trigger(ctx, clus)
if err != nil {
fmt.Printf("Failed to trigger failpoint %q, err: %v\n", config.failpoint.Name(), err)
t.Logf("Failed to trigger failpoint %q, err: %v\n", config.failpoint.Name(), err)
Copy link
Member

Choose a reason for hiding this comment

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

You need to pass t *testing.T to the function.

Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
@serathius
Copy link
Member Author

ping @ahrtr

Copy link
Member

@ahrtr ahrtr left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks @serathius

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants